1 | # |
---|
2 | # emacs like keybindings for HTML Editor |
---|
3 | # |
---|
4 | |
---|
5 | binding "gtkhtml-bindings-emacs" |
---|
6 | { |
---|
7 | bind "Home" { "cursor_move" (up, all) } |
---|
8 | bind "End" { "cursor_move" (down, all) } |
---|
9 | bind "<Alt>less" { "cursor_move" (up, all) } |
---|
10 | bind "<Alt>greater" { "cursor_move" (down, all) } |
---|
11 | bind "<Ctrl>a" { "cursor_move" (left, all) } |
---|
12 | bind "<Ctrl>e" { "cursor_move" (right, all) } |
---|
13 | bind "<Ctrl>b" { "cursor_move" (left, one) } |
---|
14 | bind "<Ctrl>f" { "cursor_move" (right, one) } |
---|
15 | bind "<Alt>b" { "cursor_move" (left, word) } |
---|
16 | bind "<Alt>f" { "cursor_move" (right, word) } |
---|
17 | bind "<Ctrl>p" { "cursor_move" (up, one) } |
---|
18 | bind "<Ctrl>n" { "cursor_move" (down, one) } |
---|
19 | |
---|
20 | bind "<Alt>v" { "cursor_move" (up, page) } |
---|
21 | bind "<Ctrl>v" { "cursor_move" (down, page) } |
---|
22 | |
---|
23 | bind "<Shift>Up" { "command" (selection-move-up) } |
---|
24 | bind "<Shift>Down" { "command" (selection-move-down) } |
---|
25 | bind "<Shift>Left" { "command" (selection-move-left) } |
---|
26 | bind "<Shift>Right" { "command" (selection-move-right) } |
---|
27 | bind "<Ctrl><Shift>Left" { "command" (selection-move-prev-word) } |
---|
28 | bind "<Ctrl><Shift>Right" { "command" (selection-move-next-word) } |
---|
29 | bind "<Alt><Shift>Left" { "command" (selection-move-prev-word) } |
---|
30 | bind "<Alt><Shift>Right" { "command" (selection-move-next-word) } |
---|
31 | |
---|
32 | bind "<Shift>Home" { "command" (selection-move-bol) } |
---|
33 | bind "<Shift>End" { "command" (selection-move-eol) } |
---|
34 | |
---|
35 | bind "<Shift>Page_Up" { "command" (selection-move-pageup) } |
---|
36 | bind "<Shift>KP_Page_Up" { "command" (selection-move-pageup) } |
---|
37 | bind "<Shift>Page_Down" { "command" (selection-move-pagedown) } |
---|
38 | bind "<Shift>KP_Page_Down" { "command" (selection-move-pagedown) } |
---|
39 | |
---|
40 | bind "<Ctrl><Shift>Home" { "command" (selection-move-bod) } |
---|
41 | bind "<Ctrl><Shift>End" { "command" (selection-move-eod) } |
---|
42 | |
---|
43 | bind "<Ctrl>Insert" { "command" (copy) } |
---|
44 | bind "<Ctrl>KP_Insert" { "command" (copy) } |
---|
45 | |
---|
46 | bind "<Shift>Delete" { "command" (cut) } |
---|
47 | bind "<Shift>KP_Delete" { "command" (cut) } |
---|
48 | |
---|
49 | bind "<Shift>Insert" { "command" (paste) } |
---|
50 | bind "<Shift>KP_Insert" { "command" (paste) } |
---|
51 | |
---|
52 | bind "<Ctrl>d" { "command" (delete) } |
---|
53 | bind "<Ctrl>g" { "command" (disable-selection) } |
---|
54 | bind "<Ctrl>m" { "command" (insert-paragraph) } |
---|
55 | bind "<Ctrl>j" { "command" (insert-paragraph) } |
---|
56 | bind "<Ctrl>w" { "command" (cut) } |
---|
57 | bind "<Alt>w" { "command" (copy-and-disable-selection) } |
---|
58 | bind "<Ctrl>y" { "command" (paste) } |
---|
59 | |
---|
60 | bind "<Ctrl>k" { "command" (cut-line) } |
---|
61 | |
---|
62 | bind "<Ctrl>slash" { "command" (undo) } |
---|
63 | |
---|
64 | bind "<Ctrl><Alt>b" { "command" (bold-toggle) } |
---|
65 | bind "<Ctrl><Alt>i" { "command" (italic-toggle) } |
---|
66 | bind "<Ctrl><Alt>u" { "command" (underline-toggle) } |
---|
67 | bind "<Ctrl><Alt>s" { "command" (strikeout-toggle) } |
---|
68 | |
---|
69 | bind "<Ctrl><Alt>l" { "command" (align-left) } |
---|
70 | bind "<Ctrl><Alt>c" { "command" (align-center) } |
---|
71 | bind "<Ctrl><Alt>r" { "command" (align-right) } |
---|
72 | |
---|
73 | bind "Tab" { "command" (insert-tab-or-next-cell) } |
---|
74 | bind "ISO_Left_Tab" { "command" (insert-tab-or-next-cell) } |
---|
75 | bind "<Ctrl>Tab" { "command" (indent-more) } |
---|
76 | bind "<Ctrl>ISO_Left_Tab" { "command" (indent-more) } |
---|
77 | bind "<Ctrl><Shift>Tab" { "command" (indent-less) } |
---|
78 | bind "<Ctrl><Shift>ISO_Left_Tab" { "command" (indent-less) } |
---|
79 | bind "<Shift>Tab" { "command" (indent-less-or-prev-cell) } |
---|
80 | bind "<Shift>ISO_Left_Tab" { "command" (indent-less-or-prev-cell) } |
---|
81 | |
---|
82 | bind "<Alt>1" { "command" (size-minus-2) } |
---|
83 | bind "<Alt>2" { "command" (size-minus-1) } |
---|
84 | bind "<Alt>3" { "command" (size-plus-0) } |
---|
85 | bind "<Alt>4" { "command" (size-plus-1) } |
---|
86 | bind "<Alt>5" { "command" (size-plus-2) } |
---|
87 | bind "<Alt>6" { "command" (size-plus-3) } |
---|
88 | bind "<Alt>7" { "command" (size-plus-4) } |
---|
89 | |
---|
90 | bind "<Alt>c" { "command" (capitalize-word) } |
---|
91 | bind "<Alt>l" { "command" (downcase-word) } |
---|
92 | bind "<Alt>u" { "command" (upcase-word) } |
---|
93 | |
---|
94 | bind "<Ctrl><Shift>s" { "command" (spell-suggest) } |
---|
95 | bind "<Ctrl><Shift>p" { "command" (spell-personal-add) } |
---|
96 | bind "<Ctrl><Shift>n" { "command" (spell-session-add) } |
---|
97 | |
---|
98 | bind "<Ctrl><Shift>r" { "command" (insert-rule) } |
---|
99 | |
---|
100 | bind "<Ctrl>s" { "command" (isearch-forward) } |
---|
101 | bind "<Ctrl>r" { "command" (isearch-backward) } |
---|
102 | |
---|
103 | bind "<Alt>space" { "command" (popup-menu) } |
---|
104 | bind "<Alt>Return" { "command" (property-dialog) } |
---|
105 | bind "<Alt>KP_Enter" { "command" (property-dialog) } |
---|
106 | |
---|
107 | bind "<Alt>q" { "command" (indent-paragraph) } |
---|
108 | |
---|
109 | bind "<Ctrl><Shift>t" { "command" (insert-table-1-1) } |
---|
110 | |
---|
111 | bind "<Ctrl><Shift>c" { "command" (insert-col-after) } |
---|
112 | bind "<Ctrl><Alt>c" { "command" (insert-col-before) } |
---|
113 | bind "<Alt><Shift>c" { "command" (delete-col) } |
---|
114 | |
---|
115 | bind "<Ctrl><Shift>r" { "command" (insert-row-after) } |
---|
116 | bind "<Ctrl><Alt>r" { "command" (insert-row-before) } |
---|
117 | bind "<Alt><Shift>r" { "command" (delete-row) } |
---|
118 | |
---|
119 | bind "<Ctrl><Shift>b" { "command" (inc-border) } |
---|
120 | bind "<Ctrl><Alt>b" { "command" (dec-border) } |
---|
121 | bind "<Alt><Shift>b" { "command" (zero-border) } |
---|
122 | |
---|
123 | bind "<Alt>d" { "command" (kill-word) } |
---|
124 | bind "<Alt>BackSpace" { "command" (backward-kill-word) } |
---|
125 | |
---|
126 | bind "<Ctrl>o" { "command" (text-color-apply) } |
---|
127 | |
---|
128 | bind "F12" { "command" (redo) } |
---|
129 | bind "F14" { "command" (undo) } |
---|
130 | bind "F16" { "command" (copy) } |
---|
131 | bind "F18" { "command" (paste) } |
---|
132 | bind "F20" { "command" (cut) } |
---|
133 | |
---|
134 | # no bindings for these right now |
---|
135 | # bind "F11" { "command" (stop) } |
---|
136 | # bind "F13" { "command" (props) } |
---|
137 | # bind "F17" { "command" (open) } |
---|
138 | # bind "F15" { "command" (front) } |
---|
139 | # bind "F19" { "command" (find) } |
---|
140 | } |
---|