1 | # |
---|
2 | # emacs like keybindings for HTML Editor |
---|
3 | # |
---|
4 | |
---|
5 | binding "gtkhtml-bindings-emacs" |
---|
6 | { |
---|
7 | bind "Home" { "cursor_move" (left, all) } |
---|
8 | bind "End" { "cursor_move" (right, 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><Alt>b" { "command" (bold-toggle) } |
---|
63 | bind "<Ctrl><Alt>i" { "command" (italic-toggle) } |
---|
64 | bind "<Ctrl><Alt>u" { "command" (underline-toggle) } |
---|
65 | bind "<Ctrl><Alt>s" { "command" (strikeout-toggle) } |
---|
66 | |
---|
67 | bind "<Ctrl><Alt>l" { "command" (align-left) } |
---|
68 | bind "<Ctrl><Alt>c" { "command" (align-center) } |
---|
69 | bind "<Ctrl><Alt>r" { "command" (align-right) } |
---|
70 | |
---|
71 | bind "Tab" { "command" (insert-tab-or-next-cell) } |
---|
72 | bind "<Ctrl>Tab" { "command" (indent-more) } |
---|
73 | bind "<Ctrl><Shift>Tab" { "command" (indent-less) } |
---|
74 | bind "<Shift>Tab" { "command" (indent-less-or-prev-cell) } |
---|
75 | |
---|
76 | bind "<Alt>1" { "command" (size-minus-2) } |
---|
77 | bind "<Alt>2" { "command" (size-minus-1) } |
---|
78 | bind "<Alt>3" { "command" (size-plus-0) } |
---|
79 | bind "<Alt>4" { "command" (size-plus-1) } |
---|
80 | bind "<Alt>5" { "command" (size-plus-2) } |
---|
81 | bind "<Alt>6" { "command" (size-plus-3) } |
---|
82 | bind "<Alt>7" { "command" (size-plus-4) } |
---|
83 | |
---|
84 | bind "<Alt>c" { "command" (capitalize-word) } |
---|
85 | bind "<Alt>l" { "command" (downcase-word) } |
---|
86 | bind "<Alt>u" { "command" (upcase-word) } |
---|
87 | |
---|
88 | bind "<Ctrl><Shift>s" { "command" (spell-suggest) } |
---|
89 | bind "<Ctrl><Shift>p" { "command" (spell-personal-add) } |
---|
90 | bind "<Ctrl><Shift>n" { "command" (spell-session-add) } |
---|
91 | |
---|
92 | bind "<Ctrl><Shift>r" { "command" (insert-rule) } |
---|
93 | |
---|
94 | bind "<Ctrl>s" { "command" (isearch-forward) } |
---|
95 | bind "<Ctrl>r" { "command" (isearch-backward) } |
---|
96 | |
---|
97 | bind "<Ctrl>space" { "command" (selection-mode) } |
---|
98 | bind "<Alt>space" { "command" (popup-menu) } |
---|
99 | bind "<Alt>Return" { "command" (property-dialog) } |
---|
100 | bind "<Alt>KP_Enter" { "command" (property-dialog) } |
---|
101 | |
---|
102 | bind "<Alt>q" { "command" (indent-paragraph) } |
---|
103 | |
---|
104 | bind "<Ctrl><Shift>t" { "command" (insert-table-1-1) } |
---|
105 | |
---|
106 | bind "<Ctrl><Shift>c" { "command" (insert-col-after) } |
---|
107 | bind "<Ctrl><Alt>c" { "command" (insert-col-before) } |
---|
108 | bind "<Alt><Shift>c" { "command" (delete-col) } |
---|
109 | |
---|
110 | bind "<Ctrl><Shift>r" { "command" (insert-row-after) } |
---|
111 | bind "<Ctrl><Alt>r" { "command" (insert-row-before) } |
---|
112 | bind "<Alt><Shift>r" { "command" (delete-row) } |
---|
113 | |
---|
114 | bind "<Ctrl><Shift>b" { "command" (inc-border) } |
---|
115 | bind "<Ctrl><Alt>b" { "command" (dec-border) } |
---|
116 | bind "<Alt><Shift>b" { "command" (zero-border) } |
---|
117 | |
---|
118 | bind "<Alt>d" { "command" (kill-word) } |
---|
119 | bind "<Alt>BackSpace" { "command" (backward-kill-word) } |
---|
120 | |
---|
121 | bind "<Ctrl>o" { "command" (text-color-apply) } |
---|
122 | |
---|
123 | bind "F12" { "command" (redo) } |
---|
124 | bind "F14" { "command" (undo) } |
---|
125 | bind "F16" { "command" (copy) } |
---|
126 | bind "F18" { "command" (paste) } |
---|
127 | bind "F20" { "command" (cut) } |
---|
128 | |
---|
129 | # no bindings for these right now |
---|
130 | # bind "F11" { "command" (stop) } |
---|
131 | # bind "F13" { "command" (props) } |
---|
132 | # bind "F17" { "command" (open) } |
---|
133 | # bind "F15" { "command" (front) } |
---|
134 | # bind "F19" { "command" (find) } |
---|
135 | } |
---|