enable openmotif-2.3.1 and link on phoenix host
[nedit-bw.git] / tab_detach_move_keys.patch
blobb1b18d64bab0a08230d0222421da9da8f392be22
1 Subject: tab detach/move keys
3 Alt+Insert Move the active document to an other window.
4 Alt+Delete Detach the active document from the window.
6 ---
8 doc/help.etx | 11 ++++++++---
9 source/menu.c | 2 +-
10 source/nedit.c | 4 ++++
11 3 files changed, 13 insertions(+), 4 deletions(-)
13 diff --quilt old/source/menu.c new/source/menu.c
14 --- old/source/menu.c
15 +++ new/source/menu.c
16 @@ -1270,11 +1270,11 @@ Widget CreateMenuBar(Widget parent, Wind
17 XtVaSetValues(window->closePaneItem, XmNuserData, PERMANENT_MENU_ITEM,NULL);
18 XtSetSensitive(window->closePaneItem, False);
20 btn = createMenuSeparator(menuPane, "sep01", SHORT);
21 XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
22 - window->detachDocumentItem = createMenuItem(menuPane, "detachBuffer",
23 + window->detachDocumentItem = createMenuItem(menuPane, "detachDocument",
24 "Detach Tab", 'D', doActionCB, "detach_document", SHORT);
25 XtSetSensitive(window->detachDocumentItem, False);
27 window->moveDocumentItem = createMenuItem(menuPane, "moveDocument",
28 "Move Tab To...", 'M', doActionCB, "move_document_dialog", SHORT);
29 diff --quilt old/source/nedit.c new/source/nedit.c
30 --- old/source/nedit.c
31 +++ new/source/nedit.c
32 @@ -352,10 +352,14 @@ static char *fallbackResources[] = {
33 "*windowsMenu.mnemonic: W",
34 "*windowsMenu.splitPane.accelerator: Ctrl<Key>2",
35 "*windowsMenu.splitPane.acceleratorText: Ctrl+2",
36 "*windowsMenu.closePane.accelerator: Ctrl<Key>1",
37 "*windowsMenu.closePane.acceleratorText: Ctrl+1",
38 + "*windowsMenu.detachDocument.accelerator: Alt<Key>Delete",
39 + "*windowsMenu.detachDocument.acceleratorText: Alt+Delete",
40 + "*windowsMenu.moveDocument.accelerator: Alt<Key>Insert",
41 + "*windowsMenu.moveDocument.acceleratorText: Alt+Insert",
42 "*helpMenu.mnemonic: H",
43 "nedit.help.helpForm.sw.helpText*baseTranslations: #override\
44 <Key>Tab:help-focus-buttons()\\n\
45 <Key>Return:help-button-action(\"close\")\\n\
46 Ctrl<Key>F:help-button-action(\"find\")\\n\
47 diff --quilt old/doc/help.etx new/doc/help.etx
48 --- old/doc/help.etx
49 +++ new/doc/help.etx
50 @@ -688,10 +688,14 @@ Keyboard Shortcuts
52 F10 Make the menu bar active for keyboard
53 input (Arrow Keys, Return, Escape,
54 and the Space Bar)
56 + Alt+Insert Move the active document to an other window.
58 + Alt+Delete Detach the active document from the window.
60 Alt+Home Switch to the previously active document.
62 Ctrl+PageUp Switch to the previous document.
64 Ctrl+PageDown Switch to the next document.
65 @@ -803,13 +807,14 @@ Tabbed Editing
66 interface are found under Preferences -> Default Settings -> Tabbed Editing
67 (cf. "Preferences_", also "NEdit_Command_Line_").
69 Notice that you can re-group tabs at any time by detaching and attaching them,
70 or moving them, to other windows. This can be done using the Windows menu, or
71 - using the context menu, which pops up when right clicking on a tab. You can
72 - also reorder the current tab by switching it with the left or right neighbor
73 - using the actions switch_next_document() or switch_previous_document().
74 + using the context menu, which pops up when right clicking on a tab (cf.
75 + "Keyboard_Shortcuts_"). You can also reorder the current tab by switching it
76 + with the left or right neighbor using the actions switch_next_document() or
77 + switch_previous_document().
79 You can switch to a tab by simply clicking on it, or you can use the keyboard.
80 The default keybindings to switch tabs (which are Ctrl+PageUp/-Down and Alt+Home,
81 see "Keyboard_Shortcuts_") can be changed using the actions previous_document(),
82 next_document() and last_document().