vimamsa 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +139 -89
- data/custom_example.rb +18 -6
- data/doc/TODO.md +327 -110
- data/doc/action_names_plan.md +442 -0
- data/doc/bundling_plan.md +2 -1
- data/doc/delta_syntax_plan.md +293 -0
- data/doc/demo_recording_plan.md +288 -0
- data/doc/design_goals.md +27 -0
- data/doc/intro_page_plan.md +266 -0
- data/doc/key_bindings_report_plan.md +45 -0
- data/doc/line_tree_plan.md +89 -0
- data/doc/missing_vim_bindings.md +34 -44
- data/doc/modules_settings_plan.md +1 -1
- data/doc/registries_plan.md +202 -0
- data/doc/startup_speed_plan.md +97 -0
- data/doc/treap_visualizer.html +585 -0
- data/doc/vim_compatibility_plan.md +186 -31
- data/doc/vimlike_vim_conflicts.md +236 -228
- data/doc/vm_snapshots_plan.md +4 -4
- data/doc/wysiwyg_plan.md +231 -0
- data/exe/run_tests.rb +8 -1
- data/exe/vimamsa +49 -6
- data/help/intro.txt +30 -0
- data/help/vim_intro.txt +31 -0
- data/img/demo.gif +0 -0
- data/img/demo.mp4 +0 -0
- data/lang/hyperplaintext.lang +1 -1
- data/lib/vimamsa/ack.rb +2 -0
- data/lib/vimamsa/actions.rb +381 -36
- data/lib/vimamsa/bookmarks.rb +8 -8
- data/lib/vimamsa/buffer.rb +83 -37
- data/lib/vimamsa/buffer_changetext.rb +58 -36
- data/lib/vimamsa/buffer_list.rb +2 -2
- data/lib/vimamsa/buffer_manager.rb +6 -6
- data/lib/vimamsa/cli_help.rb +75 -0
- data/lib/vimamsa/clipboard.rb +6 -3
- data/lib/vimamsa/conf.rb +9 -0
- data/lib/vimamsa/crash_handler.rb +2 -2
- data/lib/vimamsa/debug.rb +2 -2
- data/lib/vimamsa/demo_player.rb +458 -0
- data/lib/vimamsa/demo_recorder.rb +277 -0
- data/lib/vimamsa/diff_buffer.rb +1 -1
- data/lib/vimamsa/dot_repeat.rb +104 -0
- data/lib/vimamsa/easy_jump.rb +54 -3
- data/lib/vimamsa/editor.rb +89 -46
- data/lib/vimamsa/file_history.rb +1 -1
- data/lib/vimamsa/file_manager.rb +23 -23
- data/lib/vimamsa/form_input.rb +388 -0
- data/lib/vimamsa/gui.rb +83 -13
- data/lib/vimamsa/gui_command_line.rb +44 -5
- data/lib/vimamsa/gui_form_generator.rb +17 -6
- data/lib/vimamsa/gui_key_hint.rb +165 -0
- data/lib/vimamsa/gui_keylog_panel.rb +164 -2
- data/lib/vimamsa/gui_menu.rb +69 -50
- data/lib/vimamsa/gui_select_window.rb +77 -43
- data/lib/vimamsa/gui_settings.rb +9 -5
- data/lib/vimamsa/gui_sourceview.rb +15 -81
- data/lib/vimamsa/gui_theme.rb +11 -2
- data/lib/vimamsa/hook.rb +2 -0
- data/lib/vimamsa/intro_page.rb +368 -0
- data/lib/vimamsa/key_actions.rb +315 -225
- data/lib/vimamsa/key_binding_tree.rb +228 -61
- data/lib/vimamsa/key_bindings_notepad.rb +18 -16
- data/lib/vimamsa/key_bindings_report.rb +290 -67
- data/lib/vimamsa/key_bindings_vim.rb +47 -297
- data/lib/vimamsa/key_bindings_vimlike.rb +347 -339
- data/lib/vimamsa/key_names.rb +80 -0
- data/lib/vimamsa/line_tree.rb +367 -0
- data/lib/vimamsa/macro.rb +20 -3
- data/lib/vimamsa/rbvma.rb +15 -0
- data/lib/vimamsa/registers.rb +125 -0
- data/lib/vimamsa/run_ruby.rb +64 -0
- data/lib/vimamsa/search_replace.rb +4 -4
- data/lib/vimamsa/string_util.rb +17 -3
- data/lib/vimamsa/tests.rb +8 -8
- data/lib/vimamsa/text_objects.rb +11 -54
- data/lib/vimamsa/text_transforms.rb +4 -0
- data/lib/vimamsa/tmp_user_dir.rb +39 -0
- data/lib/vimamsa/user_dirs.rb +83 -0
- data/lib/vimamsa/version.rb +1 -1
- data/lib/vimamsa/vim_core.rb +355 -0
- data/lib/vimamsa/vim_operators.rb +365 -0
- data/modules/calculator/calculator.rb +5 -5
- data/modules/color_highlight/color_highlight.rb +3 -3
- data/modules/dictation/dictation.rb +32 -32
- data/modules/ollama/ollama.rb +5 -5
- data/modules/terminal/terminal.rb +5 -5
- data/modules/tts/tts.rb +10 -10
- data/run_e2e_vm.sh +3 -3
- data/run_tests_vm.rb +138 -0
- data/scripts/demo/demo_easyjump_steps.txt +60 -0
- data/scripts/demo/demo_files_steps.txt +52 -0
- data/scripts/demo/demo_steps.txt +9 -1
- data/scripts/demo/notes.txt +6 -0
- data/scripts/demo/record_demo.rb +60 -81
- data/scripts/demo/report.rb +7 -0
- data/scripts/demo/shapes.rb +1 -0
- data/scripts/demo/square/shapes.rb +29 -0
- data/scripts/demo/square/steps.txt +185 -0
- data/scripts/lib/perf_startup.rb +138 -0
- data/scripts/lib/script_helpers.rb +53 -0
- data/scripts/perf_compare.rb +34 -0
- data/scripts/profile_startup.rb +72 -0
- data/tests/test_action_ids.rb +232 -0
- data/tests/test_auto_format.rb +2 -2
- data/tests/test_autocomplete.rb +1 -1
- data/tests/test_basic_editing.rb +18 -18
- data/tests/test_bookmarks.rb +6 -6
- data/tests/test_bracket_match.rb +3 -0
- data/tests/test_cli_help.rb +64 -0
- data/tests/test_color_highlight.rb +2 -2
- data/tests/test_command_line.rb +1 -1
- data/tests/test_context_menu_file.rb +18 -0
- data/tests/test_copy_paste.rb +33 -33
- data/tests/test_custom_two_phase.rb +1 -1
- data/tests/test_demo_player.rb +301 -0
- data/tests/test_demo_recorder.rb +202 -0
- data/tests/test_dictation.rb +16 -16
- data/tests/test_dot_repeat.rb +88 -0
- data/tests/test_easy_jump.rb +93 -0
- data/tests/test_extract_file_links.rb +3 -3
- data/tests/test_file_panel.rb +2 -2
- data/tests/test_flash.rb +1 -1
- data/tests/test_fold.rb +1 -1
- data/tests/test_form_input.rb +203 -0
- data/tests/test_func_panel.rb +2 -2
- data/tests/test_gtk_sync.rb +7 -7
- data/tests/test_intro_page.rb +437 -0
- data/tests/test_key_categories.rb +163 -0
- data/tests/test_keylog_panel.rb +163 -3
- data/tests/test_line_ends.rb +51 -0
- data/tests/test_line_tree.rb +86 -0
- data/tests/test_lsp_clangd.rb +2 -2
- data/tests/test_macro.rb +2 -2
- data/tests/test_module_interface.rb +9 -9
- data/tests/test_notepad_bindings.rb +5 -5
- data/tests/test_perf_startup.rb +28 -0
- data/tests/test_random_edit.rb +27 -27
- data/tests/test_registers.rb +122 -0
- data/tests/test_run_ruby.rb +77 -0
- data/tests/test_startup_file.rb +1 -1
- data/tests/test_text_objects.rb +1 -1
- data/tests/test_text_transforms.rb +12 -0
- data/tests/test_tmp_user_dir.rb +79 -0
- data/tests/test_tts.rb +10 -10
- data/tests/test_undo.rb +34 -34
- data/tests/test_user_dirs.rb +122 -0
- data/tests/test_vim_bindings.rb +107 -6
- data/tests/test_vim_conflicts.rb +41 -4
- data/tests/test_vim_operators.rb +116 -0
- data/tests/test_window_layout.rb +83 -0
- data/vimamsa.gemspec +1 -1
- data/vm_guest_run.sh +22 -2
- metadata +58 -3
- data/run_tests_vm.sh +0 -130
|
@@ -44,407 +44,415 @@ def insert_move(op)
|
|
|
44
44
|
_insert_move(op)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
add_keys "intro", {
|
|
48
|
-
"VCX up" => "
|
|
49
|
-
"VCX down" => "
|
|
50
|
-
"VCX right" => "
|
|
51
|
-
"VCX left" => "
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"C , '" => :bookmark_list,
|
|
55
|
-
"VC l" => :e_move_forward_char,
|
|
56
|
-
"VC , , s" => :search_actions,
|
|
57
|
-
"C , n b" => :buf_new,
|
|
58
|
-
"C y y" => :copy_cur_line,
|
|
59
|
-
"C P" => :paste_before_cursor,
|
|
60
|
-
"C p" => :paste_after_cursor,
|
|
61
|
-
"C v" => :start_visual_mode,
|
|
62
|
-
"C ctrl-r" => :redo,
|
|
63
|
-
"C u" => :undo,
|
|
64
|
-
"VC O" => :jump_end_of_line,
|
|
47
|
+
add_keys "intro cat:motion", {
|
|
48
|
+
"VCX up" => "move.line.prev",
|
|
49
|
+
"VCX down" => "move.line.next",
|
|
50
|
+
"VCX right" => "move.char.next",
|
|
51
|
+
"VCX left" => "move.char.prev",
|
|
52
|
+
"VC l" => "move.char.next",
|
|
53
|
+
"VC O" => "move.line.end",
|
|
65
54
|
# NOTE: "G(condition)" need to be defined before "G"
|
|
66
|
-
"VC G(vma.kbd.next_command_count!=nil)" => "
|
|
67
|
-
"VC G" =>
|
|
68
|
-
"VC g
|
|
69
|
-
"VC
|
|
70
|
-
"VC
|
|
71
|
-
"VC
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
55
|
+
"VC G(vma.kbd.next_command_count!=nil)" => "move.line.goto",
|
|
56
|
+
"VC G" => "move.buf.end",
|
|
57
|
+
"VC g g" => "move.buf.start",
|
|
58
|
+
"VC e" => "move.word.end",
|
|
59
|
+
"VC b" => "move.word.prev",
|
|
60
|
+
"VC w" => "move.word.next",
|
|
61
|
+
"IX alt-b" => "move.word.prev",
|
|
62
|
+
"IX alt-f" => "move.word.next",
|
|
63
|
+
"IX ctrl-e" => "move.line.end",
|
|
64
|
+
"IX ctrl-p" => "move.line.prev",
|
|
65
|
+
"IX ctrl-n" => "move.line.next",
|
|
66
|
+
"IX ctrl-b" => "move.char.prev",
|
|
67
|
+
"IX ctrl-a" => "move.line.start",
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
add_keys "intro cat:search", {
|
|
71
|
+
"VC , , s" => "search.actions",
|
|
72
|
+
"VC g ;" => "jump.edit.prev",
|
|
73
|
+
"C g f" => "jump.file",
|
|
74
|
+
"I ctrl-l" => "search.buf",
|
|
75
|
+
"I ctrl-g" => "search.next",
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
add_keys "intro cat:insert", {
|
|
79
|
+
"C ctrl!" => "mode.insert",
|
|
80
|
+
"C i" => "mode.insert",
|
|
80
81
|
# Guarded esc must be defined before the unguarded one: on multiple
|
|
81
82
|
# matches the first-registered state with an action wins
|
|
82
83
|
# "I esc(vma.buf.view.autocp_active)" => "vma.buf.view.hide_completions",
|
|
83
|
-
"I esc || I ctrl!" =>
|
|
84
|
-
"IX alt-b" => :jump_prev_word_start,
|
|
85
|
-
"IX alt-f" => :jump_next_word_start,
|
|
86
|
-
"IX ctrl-e" => :jump_end_of_line,
|
|
87
|
-
"IX ctrl-p" => :move_prev_line,
|
|
88
|
-
"IX ctrl-n" => :move_next_line,
|
|
89
|
-
"IX ctrl-b" => :move_backward_char,
|
|
90
|
-
"IX ctrl-a" => :jump_beginning_of_line,
|
|
91
|
-
|
|
92
|
-
"CI ctrl-v" => :paste_before_cursor,
|
|
93
|
-
"I ctrl-c" => :copy_selection, #TODO: in control mode also?
|
|
94
|
-
"CI ctrl-x" => :cut_selection,
|
|
95
|
-
"CI ctrl-z" => :undo,
|
|
96
|
-
"CI ctrl-w" => :close_current_buffer,
|
|
97
|
-
"I ctrl-y" => :redo,
|
|
98
|
-
"CI backspace" => :insert_backspace,
|
|
99
|
-
"CI ctrl-o" => :open_file_dialog,
|
|
100
|
-
"C g f" => :open_file_under_cursor,
|
|
101
|
-
"I ctrl-l" => :find_in_buffer,
|
|
102
|
-
"I ctrl-g" => :find_next,
|
|
103
|
-
|
|
104
|
-
"I shift-up" => :insert_select_up,
|
|
105
|
-
"I shift-down" => :insert_select_down,
|
|
84
|
+
"I esc || I ctrl!" => "mode.prev",
|
|
106
85
|
}
|
|
107
86
|
|
|
108
|
-
add_keys "intro
|
|
109
|
-
"C
|
|
110
|
-
"C
|
|
87
|
+
add_keys "intro cat:edit", {
|
|
88
|
+
"C y y" => "edit.line.copy",
|
|
89
|
+
"C P" => "edit.paste.before",
|
|
90
|
+
"C p" => "edit.paste.after",
|
|
91
|
+
"CI ctrl-v" => "edit.paste.before",
|
|
92
|
+
"CI backspace" => "edit.backspace",
|
|
111
93
|
}
|
|
112
94
|
|
|
95
|
+
add_keys "intro cat:visual", {
|
|
96
|
+
"C v" => "mode.visual",
|
|
97
|
+
"V esc" => "mode.visual.exit",
|
|
98
|
+
"V ctrl!" => "mode.visual.exit",
|
|
99
|
+
"V tab" => "sel.indent.more",
|
|
100
|
+
"V shift-tab" => "sel.indent.less",
|
|
101
|
+
"I ctrl-c" => "sel.copy", #TODO: in control mode also?
|
|
102
|
+
"CI ctrl-x" => "sel.cut",
|
|
103
|
+
"I shift-up" => "sel.line.prev",
|
|
104
|
+
"I shift-down" => "sel.line.next",
|
|
105
|
+
}
|
|
113
106
|
|
|
114
|
-
add_keys "
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
# Buffer handling
|
|
121
|
-
# "C B" => "bufs.switch",
|
|
122
|
-
"C tab" => "bufs.switch_to_last_buf",
|
|
123
|
-
# prev/next file in file panel order (no-op while the panel is hidden)
|
|
124
|
-
"C alt-h" => :file_panel_prev_file,
|
|
125
|
-
"C alt-l" => :file_panel_next_file,
|
|
126
|
-
# label the file panel rows, jump to a file by typing its label
|
|
127
|
-
"C g s" => :file_panel_easy_jump,
|
|
128
|
-
# 'C , s'=> 'gui_select_buffer',
|
|
129
|
-
"C , r v b" => :buf_revert,
|
|
130
|
-
"C , c b" => "bufs.close_current_buffer",
|
|
131
|
-
# "C , , ." => "backup_all_buffers()",
|
|
132
|
-
|
|
133
|
-
# MOVING
|
|
134
|
-
|
|
135
|
-
"VCI pagedown" => :page_down,
|
|
136
|
-
"VCI pageup" => :page_up,
|
|
137
|
-
|
|
138
|
-
# "I down(vma.buf.view.autocp_active)" => "vma.buf.view.autocp_select_next",
|
|
139
|
-
"I tab(vma.buf.view.autocp_active)" => "vma.buf.view.autocp_select_next",
|
|
140
|
-
# "I up(vma.buf.view.autocp_active)" => "vma.buf.view.autocp_select_previous",
|
|
141
|
-
"I shift-tab(vma.buf.view.autocp_active)" => "vma.buf.view.autocp_select_previous",
|
|
142
|
-
"I shift!(vma.buf.view.autocp_active)" => "vma.buf.view.autocp_select",
|
|
143
|
-
|
|
144
|
-
# Typing a character. Reached both from a key press and from an input method
|
|
145
|
-
# commit (AltGr, dead keys, compose — those produce no key press at all, see
|
|
146
|
-
# VSourceView#register_buffer_signals), so insertion lives here rather than in
|
|
147
|
-
# the GUI layer.
|
|
148
|
-
"I <char>" => "buf.insert_txt(<char>)",
|
|
149
|
-
|
|
150
|
-
"I tab" => "buf.insert_tab",
|
|
151
|
-
"I shift-tab" => "buf.unindent",
|
|
107
|
+
add_keys "intro cat:undo", {
|
|
108
|
+
"C ctrl-r" => "undo.redo",
|
|
109
|
+
"C u" => "undo.last",
|
|
110
|
+
"CI ctrl-z" => "undo.last",
|
|
111
|
+
"I ctrl-y" => "undo.redo",
|
|
112
|
+
}
|
|
152
113
|
|
|
153
|
-
|
|
114
|
+
add_keys "intro cat:marks", {
|
|
115
|
+
"C , M" => "mark.add",
|
|
116
|
+
"C , '" => "mark.list",
|
|
117
|
+
}
|
|
154
118
|
|
|
119
|
+
add_keys "intro cat:file", {
|
|
120
|
+
"CI ctrl-o" => "file.open",
|
|
121
|
+
}
|
|
155
122
|
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
|
|
123
|
+
add_keys "intro cat:buffer", {
|
|
124
|
+
"C , b" => "buf.manager",
|
|
125
|
+
"C , n b" => "buf.new",
|
|
126
|
+
"CI ctrl-w" => "buf.close",
|
|
127
|
+
}
|
|
161
128
|
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
"I pagedown" => "insert_move(:pagedown)",
|
|
167
|
-
"I pageup" => "insert_move(:pageup)",
|
|
129
|
+
add_keys "intro delete", {
|
|
130
|
+
"C x" => "edit.delete.char",
|
|
131
|
+
"C d d" => ["edit.delete.line", proc { buf.delete_line }, "Delete current line"]
|
|
132
|
+
}
|
|
168
133
|
|
|
169
|
-
# 'C '=> 'buf.jump_word(BACKWARD,END)',#TODO
|
|
170
|
-
"VC f <char>" => "buf.jump_to_next_instance_of_char(<char>)",
|
|
171
|
-
"VC F <char>" => "buf.jump_to_next_instance_of_char(<char>,BACKWARD)",
|
|
172
|
-
"VC f space" => "buf.jump_to_next_instance_of_char(' ')",
|
|
173
|
-
"VC F space" => "buf.jump_to_next_instance_of_char(' ',BACKWARD)",
|
|
174
134
|
|
|
175
|
-
|
|
135
|
+
add_keys "core cat:motion", {
|
|
136
|
+
"VCI pagedown" => "move.page.next",
|
|
137
|
+
"VCI pageup" => "move.page.prev",
|
|
138
|
+
"I left" => "move.char.prev.unselect",
|
|
139
|
+
"I right" => "move.char.next.unselect",
|
|
140
|
+
"I down" => "move.line.next.unselect",
|
|
141
|
+
"I up" => "move.line.prev.unselect",
|
|
142
|
+
"I pagedown" => "move.page.next.unselect",
|
|
143
|
+
"I pageup" => "move.page.prev.unselect",
|
|
144
|
+
"VC /[1-9]/" => "kbd.count.digit",
|
|
176
145
|
# 'VC number=/[0-9]/+ g'=> 'jump_to_line(<number>)',
|
|
177
146
|
# 'VC X=/[0-9]/+ * Y=/[0-9]/+ '=> 'x_times_y(<X>,<Y>)',
|
|
178
|
-
"VC 0(vma.kbd.next_command_count!=nil)" => "
|
|
179
|
-
"VC 0(vma.kbd.next_command_count==nil)" => "
|
|
147
|
+
"VC 0(vma.kbd.next_command_count!=nil)" => "kbd.count.digit",
|
|
148
|
+
"VC 0(vma.kbd.next_command_count==nil)" => "move.line.start",
|
|
180
149
|
# 'C 0'=> 'buf.jump(BEGINNING_OF_LINE)',
|
|
181
|
-
"VC ^" => "
|
|
182
|
-
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"VC
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
"C N" => "$search.jump_to_previous()",
|
|
196
|
-
|
|
197
|
-
"C C" => :content_search,
|
|
198
|
-
|
|
199
|
-
"C , c s" => "bufs.close_scrap_buffers",
|
|
200
|
-
|
|
201
|
-
"VC $" => "buf.jump(END_OF_LINE)",
|
|
202
|
-
|
|
203
|
-
"C o" => 'buf.jump(END_OF_LINE);buf.insert_txt("\n");vma.kbd.set_mode(:insert)',
|
|
204
|
-
"C X" => 'buf.jump(END_OF_LINE);buf.insert_txt("\n");',
|
|
205
|
-
"C A" => "buf.jump(END_OF_LINE);vma.kbd.set_mode(:insert)",
|
|
206
|
-
"C I" => "buf.jump(FIRST_NON_WHITESPACE);vma.kbd.set_mode(:insert)",
|
|
207
|
-
"C a" => "buf.move(FORWARD_CHAR);vma.kbd.set_mode(:insert)",
|
|
208
|
-
"C J" => "buf.join_lines()",
|
|
150
|
+
"VC ^" => "move.line.start",
|
|
151
|
+
"VC $" => "move.line.end",
|
|
152
|
+
"C ^" => "move.line.start",
|
|
153
|
+
"VC j" => "move.line.next",
|
|
154
|
+
"VC k" => "move.line.prev",
|
|
155
|
+
# Insert and Replace modes: Moving
|
|
156
|
+
"IX ctrl-f" => "move.char.next",
|
|
157
|
+
"VC h" => "move.char.prev",
|
|
158
|
+
"B s" => "move.page.prev",
|
|
159
|
+
"B d" => "move.page.next",
|
|
160
|
+
"B i" => "move.buf.start",
|
|
161
|
+
"B o" => "move.buf.end",
|
|
162
|
+
"C , j r" => "move.random",
|
|
163
|
+
}
|
|
209
164
|
|
|
210
|
-
|
|
211
|
-
#
|
|
165
|
+
add_keys "core cat:search", {
|
|
166
|
+
# 'C '=> 'buf.jump_word(BACKWARD,END)',#TODO
|
|
167
|
+
"VC f <char>" => "jump.char.next",
|
|
168
|
+
"VC F <char>" => "jump.char.prev",
|
|
169
|
+
"VC f space" => "jump.space.next",
|
|
170
|
+
"VC F space" => "jump.space.prev",
|
|
171
|
+
# 'VC z z' => 'center_on_current_line',
|
|
172
|
+
"VC *" => "search.word.next",
|
|
173
|
+
"VC /" => "search.buf",
|
|
174
|
+
"C n" => "search.next",
|
|
175
|
+
"C N" => "search.prev",
|
|
176
|
+
# "C ." => "repeat_last_action", # TODO
|
|
177
|
+
"VC ;" => "jump.char.repeat",
|
|
178
|
+
"B ;" => "jump.edit.prev",
|
|
179
|
+
"B q" => "jump.edit.prev",
|
|
180
|
+
"B w" => "jump.edit.next",
|
|
181
|
+
"VC , r r" => "search.replace",
|
|
182
|
+
"VC s" => "jump.easy",
|
|
183
|
+
"I alt-s" => "jump.easy",
|
|
184
|
+
"C enter || C return" => ["jump.line", proc { buf.handle_line_action() }, "Line action"],
|
|
185
|
+
}
|
|
212
186
|
|
|
187
|
+
add_keys "core cat:insert", {
|
|
188
|
+
# "I down(vma.buf.view.autocp_active)" => "vma.buf.view.autocp_select_next",
|
|
189
|
+
"I tab(vma.buf.view.autocp_active)" => "edit.complete.next",
|
|
190
|
+
# "I up(vma.buf.view.autocp_active)" => "vma.buf.view.autocp_select_previous",
|
|
191
|
+
"I shift-tab(vma.buf.view.autocp_active)" => "edit.complete.prev",
|
|
192
|
+
"I shift!(vma.buf.view.autocp_active)" => "edit.complete.accept",
|
|
193
|
+
# Typing a character. Reached both from a key press and from an input method
|
|
194
|
+
# commit (AltGr, dead keys, compose — those produce no key press at all, see
|
|
195
|
+
# VSourceView#register_buffer_signals), so insertion lives here rather than in
|
|
196
|
+
# the GUI layer.
|
|
197
|
+
"I <char>" => "edit.insert.char",
|
|
198
|
+
"I tab" => "edit.tab",
|
|
199
|
+
"I shift-tab" => "edit.untab",
|
|
200
|
+
"C o" => "mode.insert.line.below",
|
|
201
|
+
"C X" => "edit.line.below",
|
|
202
|
+
"C A" => "mode.insert.line.end",
|
|
203
|
+
"C I" => "mode.insert.line.start",
|
|
204
|
+
"C a" => "mode.insert.after",
|
|
213
205
|
# Command mode only:
|
|
214
|
-
"C space <char>" => "
|
|
215
|
-
"C space space" => "
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
|
|
206
|
+
"C space <char>" => "edit.insert.char",
|
|
207
|
+
"C space space" => "edit.insert.space",
|
|
208
|
+
"I <char>" => "edit.insert.char",
|
|
209
|
+
"I ctrl-j" => "edit.complete.hide",
|
|
210
|
+
"I space" => "edit.insert.space",
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
add_keys "core cat:edit", {
|
|
214
|
+
"I enter" => "edit.newline",
|
|
215
|
+
"C J" => "edit.line.join",
|
|
216
|
+
"C y O" => "edit.copy.line.end",
|
|
217
|
+
"C y 0" => "edit.copy.line.start",
|
|
218
|
+
"C y e" => "edit.copy.word.end", # TODO
|
|
219
|
+
"C y ' <char>" => "edit.copy.mark",
|
|
220
220
|
#### Deleting
|
|
221
221
|
# "C x" => "buf.delete(CURRENT_CHAR_FORWARD)",
|
|
222
222
|
# 'C d k'=> 'delete_line(BACKWARD)', #TODO
|
|
223
223
|
# 'C d j'=> 'delete_line(FORWARD)', #TODO
|
|
224
224
|
# 'C d d'=> 'buf.delete_cur_line',
|
|
225
|
-
"C d e" => "
|
|
226
|
-
"C d O" => "
|
|
227
|
-
"C d $" => "
|
|
225
|
+
"C d e" => "edit.delete.word.end",
|
|
226
|
+
"C d O" => "edit.delete.eol",
|
|
227
|
+
"C d $" => "edit.delete.eol",
|
|
228
228
|
# 'C d e'=> 'buf.delete_to_next_word_end',
|
|
229
|
-
"C d <num> e" => "
|
|
230
|
-
"C d ' <char>" => "
|
|
231
|
-
"C d f <char>" => "
|
|
232
|
-
"C d F <char>" => "
|
|
233
|
-
"C d f space" => "
|
|
234
|
-
"C d F space" => "
|
|
235
|
-
"C r <char>" => "
|
|
236
|
-
"C r space" => "
|
|
237
|
-
"C ,
|
|
238
|
-
"C ,
|
|
239
|
-
|
|
240
|
-
"C
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
"
|
|
250
|
-
|
|
251
|
-
"V g U" => :selection_upcase,
|
|
252
|
-
"V g u" => :selection_downcase,
|
|
253
|
-
"V g c" => :selection_capitalize,
|
|
254
|
-
"V g s" => :selection_swapcase,
|
|
255
|
-
"V g r" => :selection_reverse,
|
|
256
|
-
"V g i" => :selection_remove_indent,
|
|
257
|
-
"V g I" => :selection_remove_common_indent,
|
|
258
|
-
"V U" => :selection_upcase,
|
|
259
|
-
"V u" => :selection_downcase,
|
|
260
|
-
"V ~" => :selection_swapcase,
|
|
261
|
-
"C ~" => :vim_toggle_case,
|
|
262
|
-
"C g U w" => :word_upcase,
|
|
263
|
-
"C g u w" => :word_downcase,
|
|
264
|
-
"C g ~ w" => :word_swapcase,
|
|
265
|
-
"C g U U" => :line_upcase,
|
|
266
|
-
"C g u u" => :line_downcase,
|
|
267
|
-
"C g ~ ~" => :line_swapcase,
|
|
268
|
-
"V g w" => :remove_extra_spaces,
|
|
269
|
-
"C g w" => :remove_extra_spaces,
|
|
270
|
-
"C g i" => :selection_remove_indent,
|
|
271
|
-
"C g I" => :selection_remove_common_indent,
|
|
272
|
-
|
|
273
|
-
"VC j" => :forward_line,
|
|
274
|
-
"VC k" => :backward_line,
|
|
275
|
-
|
|
276
|
-
"V x" => "buf.delete(SELECTION)",
|
|
277
|
-
# "V ctrl-c" => "buf.comment_selection",
|
|
278
|
-
"V ctrl-x" => "buf.comment_selection(:uncomment)",
|
|
229
|
+
"C d <num> e" => "edit.delete.word.end", # d 3 e: repeated by the count
|
|
230
|
+
"C d ' <char>" => "edit.delete.mark",
|
|
231
|
+
"C d f <char>" => "edit.delete.find.next",
|
|
232
|
+
"C d F <char>" => "edit.delete.find.prev",
|
|
233
|
+
"C d f space" => "edit.delete.space.next",
|
|
234
|
+
"C d F space" => "edit.delete.space.prev",
|
|
235
|
+
"C r <char>" => "edit.replace.char", # TODO
|
|
236
|
+
"C r space" => "edit.replace.space", # TODO
|
|
237
|
+
"C , r <char>" => "edit.register", # TODO
|
|
238
|
+
"C , p <char>" => "edit.paste.register", # TODO
|
|
239
|
+
# Switch to another mode
|
|
240
|
+
"C R" => "mode.replace",
|
|
241
|
+
# Replace mode
|
|
242
|
+
"X esc || X ctrl!" => "mode.prev",
|
|
243
|
+
# "X p" => "edit.paste.over.after", #TODO
|
|
244
|
+
"X ctrl-v" => "edit.paste.over.before",
|
|
245
|
+
"X <char>" => "edit.replace.char.next",
|
|
246
|
+
"I ctrl-d" => "edit.delete.word.end",
|
|
247
|
+
"C d w" => "edit.delete.word.next",
|
|
248
|
+
"C d 0" => "edit.delete.line.start",
|
|
249
|
+
"C , ; a c" => "edit.complete.toggle",
|
|
250
|
+
}
|
|
279
251
|
|
|
252
|
+
add_keys "core cat:case", {
|
|
253
|
+
"V g U" => "case.sel.upper",
|
|
254
|
+
"V g u" => "case.sel.lower",
|
|
255
|
+
"V g c" => "case.sel.capitalize",
|
|
256
|
+
"V g s" => "case.sel.swap",
|
|
257
|
+
"V U" => "case.sel.upper",
|
|
258
|
+
"V u" => "case.sel.lower",
|
|
259
|
+
"V ~" => "case.sel.swap",
|
|
260
|
+
"C ~" => "case.char.toggle",
|
|
261
|
+
"C g U w" => "case.word.upper",
|
|
262
|
+
"C g u w" => "case.word.lower",
|
|
263
|
+
"C g ~ w" => "case.word.swap",
|
|
264
|
+
"C g U U" => "case.line.upper",
|
|
265
|
+
"C g u u" => "case.line.lower",
|
|
266
|
+
"C g ~ ~" => "case.line.swap",
|
|
267
|
+
}
|
|
280
268
|
|
|
281
|
-
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
|
|
269
|
+
add_keys "core cat:visual", {
|
|
270
|
+
"V J" => "sel.join",
|
|
271
|
+
"I shift-left" => "sel.char.prev",
|
|
272
|
+
"I shift-right" => "sel.char.next",
|
|
273
|
+
"I shift-down" => "sel.line.next",
|
|
274
|
+
"I shift-pagedown" => "sel.page.next",
|
|
275
|
+
"I shift-pageup" => "sel.page.prev",
|
|
276
|
+
"V y" => "sel.copy",
|
|
277
|
+
"V a y" => "sel.copy.append",
|
|
278
|
+
"V g r" => "sel.reverse",
|
|
279
|
+
"V g i" => "sel.unindent",
|
|
280
|
+
"V g I" => "sel.unindent.common",
|
|
281
|
+
"V g w" => "sel.convert.remove_extra_spaces",
|
|
282
|
+
"C g w" => "sel.convert.remove_extra_spaces",
|
|
283
|
+
"C g i" => "sel.unindent",
|
|
284
|
+
"C g I" => "sel.unindent.common",
|
|
285
|
+
"V x" => "sel.cut",
|
|
286
|
+
"V d" => "sel.delete",
|
|
287
|
+
"V a d" => "sel.delete.append",
|
|
288
|
+
}
|
|
285
289
|
|
|
286
|
-
|
|
287
|
-
|
|
290
|
+
add_keys "core cat:marks", {
|
|
291
|
+
# Marks
|
|
292
|
+
"CV m <char>" => "mark.set",
|
|
293
|
+
'CV \' <char>' => "mark.jump",
|
|
294
|
+
}
|
|
288
295
|
|
|
289
|
-
|
|
290
|
-
"
|
|
291
|
-
# "X p" => :paste_over_after, #TODO
|
|
292
|
-
"X ctrl-v" => :paste_over_before,
|
|
293
|
-
"X <char>" => "buf.replace_with_char(<char>);buf.move(FORWARD_CHAR)",
|
|
294
|
-
|
|
295
|
-
# Macros
|
|
296
|
-
# (experimental, may not work correctly)
|
|
297
|
-
# "C q a" => 'vma.macro.start_recording("a")',
|
|
298
|
-
|
|
299
|
-
"macro q" => "vma.kbd.to_previous_mode; vma.macro.end_recording",
|
|
300
|
-
# "macro q z" => "vma.kbd.to_previous_mode; vma.macro.end_recording",
|
|
301
|
-
|
|
296
|
+
add_keys "core cat:macro", {
|
|
297
|
+
"macro q" => "macro.record.stop",
|
|
302
298
|
# "VC q(vma.macro.is_recording==true)" => "vma.macro.end_recording", # TODO: does not work
|
|
303
299
|
# "VC o(vma.macro.is_recording==true)" => "vma.macro.end_recording", # TODO: does not work
|
|
304
300
|
# "VC q q(vma.macro.is_recording==true)" => "vma.macro.end_recording",
|
|
305
|
-
"VC q <char>" => "
|
|
306
|
-
# 'C q'=> 'vma.macro.end_recording', #TODO
|
|
307
|
-
|
|
308
|
-
# "C q v" => "vma.kbd.to_previous_mode; vma.macro.end_recording", #TODO
|
|
309
|
-
|
|
301
|
+
"VC q <char>" => "macro.record",
|
|
310
302
|
# 'C v'=> 'vma.macro.end_recording',
|
|
311
303
|
# "C M" => 'vma.macro.run_last_macro',
|
|
312
|
-
"C @ <char>" => "
|
|
313
|
-
"C , m S" =>
|
|
314
|
-
"C , m s" => "
|
|
315
|
-
"
|
|
304
|
+
"C @ <char>" => "macro.run",
|
|
305
|
+
"C , m S" => "macro.save.a",
|
|
306
|
+
"C , m s" => "macro.save",
|
|
307
|
+
"VC , m f" => ["macro.find", proc { vma.macro.find_macro_gui }, "Find named macro"],
|
|
308
|
+
"C , m n" => ["macro.name", proc { vma.macro.gui_name_macro }, "Name last macro"],
|
|
309
|
+
}
|
|
316
310
|
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
"
|
|
311
|
+
add_keys "core cat:file", {
|
|
312
|
+
"C , , f" => "file.finder",
|
|
313
|
+
"C , , u" => "file.finder.reindex",
|
|
314
|
+
"C , , c b" => "file.path.copy", #TODO: better binding or remove?,
|
|
315
|
+
"C , f" => "file.finder",
|
|
316
|
+
"C , h" => "file.history",
|
|
317
|
+
"C , z" => "file.finder",
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
add_keys "core cat:buffer", {
|
|
321
|
+
# File handling
|
|
322
|
+
"C ctrl-s" => "buf.save",
|
|
323
|
+
# Buffer handling
|
|
324
|
+
# "C B" => "bufs.switch",
|
|
325
|
+
"C tab" => "buf.switch.last",
|
|
326
|
+
# 'C , s'=> 'gui_select_buffer',
|
|
327
|
+
"C , r v b" => "buf.revert",
|
|
328
|
+
"C , c s" => "buf.close.scrap",
|
|
329
|
+
"C , l b" => "buf.list.load",
|
|
330
|
+
"C , l l" => "buf.list.save",
|
|
321
331
|
# "I ctrl!" => "vma.kbd.to_previous_mode",
|
|
322
332
|
"C shift! s" => "buf.save",
|
|
323
333
|
"I ctrl-s" => "buf.save",
|
|
324
|
-
"
|
|
334
|
+
"C , , ." => "buf.backup.all",
|
|
335
|
+
"C z " => "mode.browse",
|
|
336
|
+
"B h" => "buf.history.prev",
|
|
337
|
+
"B l" => "buf.history.next",
|
|
338
|
+
"B z" => "mode.browse.center",
|
|
339
|
+
"B enter || B return || B esc || B j || B ctrl!" => "mode.browse.exit",
|
|
340
|
+
"B r" => "move.page.next.quarter",
|
|
341
|
+
"B e" => "move.page.prev.quarter",
|
|
342
|
+
"B c" => "buf.close",
|
|
343
|
+
"C , s a" => "buf.save.as",
|
|
344
|
+
"C , , e" => "buf.encrypt", #TODO: better binding,
|
|
345
|
+
"C , ; u" => "buf.encrypt.off", #TODO: better binding,
|
|
346
|
+
"C , c b" => "buf.close",
|
|
347
|
+
}
|
|
325
348
|
|
|
326
|
-
|
|
349
|
+
add_keys "core cat:view", {
|
|
350
|
+
# prev/next file in file panel order (no-op while the panel is hidden)
|
|
351
|
+
"C alt-h" => "panel.files.prev",
|
|
352
|
+
"C alt-l" => "panel.files.next",
|
|
353
|
+
# label the file panel rows, jump to a file by typing its label
|
|
354
|
+
"C g s" => "panel.files.jump",
|
|
355
|
+
"B p" => "panel.files.prev",
|
|
356
|
+
"B n" => "panel.files.next",
|
|
357
|
+
"C , w" => "view.columns.switch",
|
|
358
|
+
"C , , w" => "view.columns.toggle",
|
|
359
|
+
}
|
|
327
360
|
|
|
328
|
-
|
|
329
|
-
"
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
"
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
"
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
"
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
"
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
"
|
|
356
|
-
|
|
357
|
-
"B c" => :close_current_buffer,
|
|
358
|
-
"B ;" => :jump_last_edit,
|
|
359
|
-
"B q" => :jump_to_last_edit,
|
|
360
|
-
"B w" => :jump_to_next_edit,
|
|
361
|
-
"C , v" => :auto_indent_buffer,
|
|
362
|
-
"C , , u" => :update_file_index,
|
|
363
|
-
"C , s a" => :buf_save_as,
|
|
364
|
-
"VC , r r" => :gui_search_replace,
|
|
365
|
-
"C , w" => :toggle_active_window,
|
|
366
|
-
"C , , w" => :toggle_two_column,
|
|
367
|
-
"C , ; a c" => :toggle_autocomplete,
|
|
368
|
-
"C , R" => :restart_editor,
|
|
369
|
-
|
|
370
|
-
"VC s" => :easy_jump,
|
|
371
|
-
"I alt-s" => :easy_jump,
|
|
372
|
-
"VC , m f" => [:find_macro_gui, proc { vma.macro.find_macro_gui }, "Find named macro"],
|
|
373
|
-
"C , m n" => [:gui_name_macro, proc { vma.macro.gui_name_macro }, "Name last macro"],
|
|
374
|
-
"C , j r" => :jump_to_random,
|
|
375
|
-
"C , ; s k" => :show_key_bindings, #TODO: better binding,
|
|
376
|
-
"C , , c b" => :put_file_path_to_clipboard, #TODO: better binding or remove?,
|
|
377
|
-
"C , , e" => :encrypt_file, #TODO: better binding,
|
|
378
|
-
"C , ; u" => :set_unencrypted, #TODO: better binding,
|
|
379
|
-
"C , c b" => :close_current_buffer,
|
|
380
|
-
"V ctrl-c" => :comment_selection,
|
|
381
|
-
"C , f" => :gui_file_finder,
|
|
382
|
-
"C , h" => :gui_file_history_finder,
|
|
383
|
-
"C , z" => :gui_file_finder,
|
|
384
|
-
|
|
385
|
-
"C enter || C return" => [:line_action, proc { buf.handle_line_action() }, "Line action"],
|
|
386
|
-
"V d" => [:delete_selection, proc { buf.delete(SELECTION) }, ""],
|
|
387
|
-
"V a d" => [:delete_append_selection, proc { buf.delete(SELECTION, :append) }, "Delete and append selection"]
|
|
361
|
+
add_keys "core cat:grep", {
|
|
362
|
+
"C C" => "grep.files",
|
|
363
|
+
"C , a" => "ack.search",
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
add_keys "core cat:code", {
|
|
367
|
+
"C ctrl-c" => "edit.comment.line",
|
|
368
|
+
"C ctrl-x" => "edit.comment.line.off",
|
|
369
|
+
# "V ctrl-c" => "buf.comment_selection",
|
|
370
|
+
"V ctrl-x" => "edit.comment.off",
|
|
371
|
+
"C , v" => "edit.indent.buf",
|
|
372
|
+
"V ctrl-c" => "edit.comment",
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
add_keys "core cat:app", {
|
|
376
|
+
"C , e" => "mode.cmdline",
|
|
377
|
+
"C :" => "mode.cmdline",
|
|
378
|
+
# "CV Q" => "app.quit",
|
|
379
|
+
"CV ctrl-q" => "app.quit",
|
|
380
|
+
"C , R" => "app.restart",
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
add_keys "core cat:help", {
|
|
384
|
+
"C , m h" => "help.messages",
|
|
385
|
+
"C , ; s k" => "help.keys", #TODO: better binding,
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
add_keys "core cat:internal", {
|
|
389
|
+
"R <char>" => "readchar_new_char(<char>)",
|
|
388
390
|
}
|
|
389
391
|
|
|
390
392
|
add_keys "hyperplaintext", {
|
|
391
|
-
"V , t b" =>
|
|
392
|
-
"V , t l" =>
|
|
393
|
-
"V , t i" =>
|
|
394
|
-
"V , t c" =>
|
|
395
|
-
"C , t h" =>
|
|
396
|
-
"C , t 1" =>
|
|
397
|
-
"C , t 2" =>
|
|
398
|
-
"C , t 3" =>
|
|
399
|
-
"C , t 4" =>
|
|
400
|
-
"C , t b" =>
|
|
401
|
-
"C , t t" =>
|
|
402
|
-
"C , t i" =>
|
|
403
|
-
"C , t c" =>
|
|
393
|
+
"V , t b" => "style.bold",
|
|
394
|
+
"V , t l" => "style.link",
|
|
395
|
+
"V , t i" => "style.italic",
|
|
396
|
+
"V , t c" => "style.clear",
|
|
397
|
+
"C , t h" => "style.line.heading",
|
|
398
|
+
"C , t 1" => "style.line.h1",
|
|
399
|
+
"C , t 2" => "style.line.h2",
|
|
400
|
+
"C , t 3" => "style.line.h3",
|
|
401
|
+
"C , t 4" => "style.line.h4",
|
|
402
|
+
"C , t b" => "style.line.bold",
|
|
403
|
+
"C , t t" => "style.line.title",
|
|
404
|
+
"C , t i" => "style.line.italic",
|
|
405
|
+
"C , t c" => "style.line.clear",
|
|
404
406
|
}
|
|
405
407
|
|
|
406
|
-
bindkey ["VCB M", "B m"],
|
|
408
|
+
bindkey ["VCB M", "B m"], "macro.run.last"
|
|
407
409
|
|
|
408
410
|
add_keys "experimental", {
|
|
409
|
-
"C ` k" =>
|
|
410
|
-
"C ` j" =>
|
|
411
|
-
"C ` r" =>
|
|
412
|
-
"C , u s" =>
|
|
411
|
+
"C ` k" => "lsp.debug",
|
|
412
|
+
"C ` j" => "lsp.definition",
|
|
413
|
+
"C ` r" => "lsp.restart",
|
|
414
|
+
"C , u s" => "audio.stop",
|
|
413
415
|
|
|
414
|
-
"C , t r" => "
|
|
416
|
+
"C , t r" => "debug.tests",
|
|
415
417
|
# "CV , R" => "restart_application", #TODO: does not work
|
|
416
|
-
"I ctrl-h" =>
|
|
417
|
-
"I ctrl-space" =>
|
|
418
|
-
"C , d m" =>
|
|
419
|
-
"C , ; ." =>
|
|
420
|
-
"C , d d" => "
|
|
421
|
-
"C , d c" => "
|
|
422
|
-
"C , d b" => "
|
|
423
|
-
"C , D" => "
|
|
424
|
-
"C , d o" => "
|
|
418
|
+
"I ctrl-h" => "edit.complete",
|
|
419
|
+
"I ctrl-space" => "edit.complete",
|
|
420
|
+
"C , d m" => "debug.kbd",
|
|
421
|
+
"C , ; ." => "edit.word.increment",
|
|
422
|
+
"C , d d" => "debug.deltas",
|
|
423
|
+
"C , d c" => "debug.clipboard",
|
|
424
|
+
"C , d b" => "debug.buf.print",
|
|
425
|
+
"C , D" => "debug.buf.print",
|
|
426
|
+
"C , d o" => "debug.overlay.clear",
|
|
425
427
|
# Debug
|
|
426
|
-
"C , d r p" =>
|
|
428
|
+
"C , d r p" => "debug.pry", #TODO
|
|
427
429
|
#bindkey 'C , g', proc{invoke_grep_search}
|
|
428
|
-
# bindkey "C , d",
|
|
429
|
-
"C , , d" =>
|
|
430
|
-
"C , m a" => "
|
|
431
|
-
"audio s" =>
|
|
430
|
+
# bindkey "C , d", "buf.diff"
|
|
431
|
+
"C , , d" => "debug.save",
|
|
432
|
+
"C , m a" => "mode.audio",
|
|
433
|
+
"audio s" => "audio.stop",
|
|
432
434
|
}
|
|
433
435
|
|
|
434
436
|
|
|
435
|
-
bindkey "audio f || audio right", [
|
|
436
|
-
bindkey "audio left", [
|
|
437
|
+
bindkey "audio f || audio right", ["audio.forward", proc { Audio.seek_forward }, "Seek forward in audio stream"]
|
|
438
|
+
bindkey "audio left", ["audio.backward", proc { Audio.seek_forward(-5.0) }, "Seek backward in audio stream"]
|
|
437
439
|
|
|
438
|
-
bindkey "audio space",
|
|
439
|
-
bindkey "audio q || audio esc", "
|
|
440
|
+
bindkey "audio space", "audio.stop"
|
|
441
|
+
bindkey "audio q || audio esc", "mode.prev"
|
|
440
442
|
|
|
441
443
|
|
|
442
|
-
bindkey "C , i p", "
|
|
444
|
+
bindkey "C , i p", "edit.insert.password", keywords: "cat:edit"
|
|
443
445
|
|
|
444
446
|
# default_keys.each { |key, value|
|
|
445
447
|
# bindkey(key, value)
|
|
446
448
|
# }
|
|
447
449
|
|
|
448
|
-
#
|
|
449
|
-
|
|
450
|
+
# vimlike's own motion O (end of line) also works after the Vim operators
|
|
451
|
+
# (c O, g U O, > O, ...; vim_operators.rb)
|
|
452
|
+
vma.kbd.key_set_add(:motion, "O" => :line_end)
|
|
453
|
+
|
|
454
|
+
# Vim bindings from the shared table (vim_core.rb) that don't conflict with
|
|
455
|
+
# the bindings above; the rest are listed in doc/vimlike_vim_conflicts.md.
|
|
456
|
+
# Keep this last, so every vimlike binding counts as taken.
|
|
457
|
+
bind_vim_bindings(only_free: true)
|
|
450
458
|
end # module Vimamsa
|