Allow '>' and '@' to appear in menu items
[nedit-bw.git] / tab_detach_move_keys.patch
blobdf49a2c2df35d70b7c6f01bc4d79eeb08ab6aae5
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 @@ -1272,7 +1272,7 @@ Widget CreateMenuBar(Widget parent, Wind
18 btn = createMenuSeparator(menuPane, "sep01", SHORT);
19 XtVaSetValues(btn, XmNuserData, PERMANENT_MENU_ITEM, NULL);
20 - window->detachDocumentItem = createMenuItem(menuPane, "detachBuffer",
21 + window->detachDocumentItem = createMenuItem(menuPane, "detachDocument",
22 "Detach Tab", 'D', doActionCB, "detach_document", SHORT);
23 XtSetSensitive(window->detachDocumentItem, False);
25 diff --quilt old/source/nedit.c new/source/nedit.c
26 --- old/source/nedit.c
27 +++ new/source/nedit.c
28 @@ -354,6 +354,10 @@ static char *fallbackResources[] = {
29 "*windowsMenu.splitPane.acceleratorText: Ctrl+2",
30 "*windowsMenu.closePane.accelerator: Ctrl<Key>1",
31 "*windowsMenu.closePane.acceleratorText: Ctrl+1",
32 + "*windowsMenu.detachDocument.accelerator: Alt<Key>Delete",
33 + "*windowsMenu.detachDocument.acceleratorText: Alt+Delete",
34 + "*windowsMenu.moveDocument.accelerator: Alt<Key>Insert",
35 + "*windowsMenu.moveDocument.acceleratorText: Alt+Insert",
36 "*helpMenu.mnemonic: H",
37 "nedit.help.helpForm.sw.helpText*baseTranslations: #override\
38 <Key>Tab:help-focus-buttons()\\n\
39 diff --quilt old/doc/help.etx new/doc/help.etx
40 --- old/doc/help.etx
41 +++ new/doc/help.etx
42 @@ -690,6 +690,10 @@ Keyboard Shortcuts
43 input (Arrow Keys, Return, Escape,
44 and the Space Bar)
46 + Alt+Insert Move the active document to an other window.
48 + Alt+Delete Detach the active document from the window.
50 Alt+Home Switch to the previously active document.
52 Ctrl+PageUp Switch to the previous document.
53 @@ -805,9 +809,10 @@ Tabbed Editing
55 Notice that you can re-group tabs at any time by detaching and attaching them,
56 or moving them, to other windows. This can be done using the Windows menu, or
57 - using the context menu, which pops up when right clicking on a tab. You can
58 - also reorder the current tab by switching it with the left or right neighbor
59 - using the actions switch_next_document() or switch_previous_document().
60 + using the context menu, which pops up when right clicking on a tab (cf.
61 + "Keyboard_Shortcuts_"). You can also reorder the current tab by switching it
62 + with the left or right neighbor using the actions switch_next_document() or
63 + switch_previous_document().
65 You can switch to a tab by simply clicking on it, or you can use the keyboard.
66 The default keybindings to switch tabs (which are Ctrl+PageUp/-Down and Alt+Home,