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