vimamsa 0.1.26 → 0.1.27
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/.github/workflows/appimage.yml +93 -0
- data/.gitignore +4 -1
- data/Dockerfile +7 -4
- data/README.md +62 -16
- data/custom_example.rb +43 -13
- data/doc/TODO.md +461 -0
- data/doc/bundling_plan.md +569 -0
- data/doc/key_bindings_report_plan.md +168 -0
- data/doc/missing_vim_bindings.md +71 -0
- data/doc/modules_settings_plan.md +433 -0
- data/doc/refactor_dedup_plan.md +117 -0
- data/doc/unused_code_plan.md +120 -0
- data/doc/vim_compatibility_plan.md +296 -0
- data/doc/vimlike_vim_conflicts.md +254 -0
- data/doc/vm_snapshots_plan.md +146 -0
- data/exe/run_tests.rb +117 -3
- data/exe/vimamsa +24 -4
- data/fonts/OFL-Oxanium.txt +93 -0
- data/fonts/Oxanium[wght].ttf +0 -0
- data/icon.png +0 -0
- data/img/demo.gif +0 -0
- data/lang/hyperplaintext.lang +6 -0
- data/lib/vimamsa/ack.rb +11 -1
- data/lib/vimamsa/actions.rb +4 -1
- data/lib/vimamsa/appimage_env.rb +35 -0
- data/lib/vimamsa/audio.rb +2 -5
- data/lib/vimamsa/bookmarks.rb +302 -0
- data/lib/vimamsa/buffer.rb +593 -82
- data/lib/vimamsa/buffer_changetext.rb +102 -42
- data/lib/vimamsa/buffer_cursor.rb +7 -0
- data/lib/vimamsa/buffer_list.rb +4 -0
- data/lib/vimamsa/buffer_manager.rb +4 -1
- data/lib/vimamsa/bundled_fonts.rb +32 -0
- data/lib/vimamsa/clipboard.rb +3 -0
- data/lib/vimamsa/conf.rb +59 -3
- data/lib/vimamsa/constants.rb +3 -0
- data/lib/vimamsa/crash_handler.rb +149 -0
- data/lib/vimamsa/debug.rb +4 -1
- data/lib/vimamsa/desktop_install.rb +96 -0
- data/lib/vimamsa/diff_buffer.rb +39 -10
- data/lib/vimamsa/easy_jump.rb +3 -0
- data/lib/vimamsa/editor.rb +263 -57
- data/lib/vimamsa/encrypt.rb +78 -29
- data/lib/vimamsa/file_finder.rb +4 -19
- data/lib/vimamsa/file_history.rb +3 -0
- data/lib/vimamsa/file_manager.rb +30 -15
- data/lib/vimamsa/fold.rb +226 -0
- data/lib/vimamsa/gui.rb +520 -106
- data/lib/vimamsa/gui_command_line.rb +208 -0
- data/lib/vimamsa/gui_dialog.rb +94 -42
- data/lib/vimamsa/gui_file_panel.rb +356 -25
- data/lib/vimamsa/gui_form_generator.rb +59 -35
- data/lib/vimamsa/gui_func_panel.rb +67 -22
- data/lib/vimamsa/gui_image.rb +3 -0
- data/lib/vimamsa/gui_keylog_panel.rb +246 -0
- data/lib/vimamsa/gui_menu.rb +23 -11
- data/lib/vimamsa/gui_select_window.rb +19 -48
- data/lib/vimamsa/gui_settings.rb +78 -37
- data/lib/vimamsa/gui_sourceview.rb +273 -19
- data/lib/vimamsa/gui_sourceview_autocomplete.rb +319 -90
- data/lib/vimamsa/gui_text.rb +63 -2
- data/lib/vimamsa/gui_theme.rb +606 -0
- data/lib/vimamsa/hook.rb +3 -0
- data/lib/vimamsa/hyper_plain_text.rb +3 -0
- data/lib/vimamsa/key_actions.rb +112 -13
- data/lib/vimamsa/key_binding_tree.rb +242 -215
- data/lib/vimamsa/key_bindings_notepad.rb +43 -0
- data/lib/vimamsa/key_bindings_report.rb +261 -0
- data/lib/vimamsa/key_bindings_vim.rb +354 -0
- data/lib/vimamsa/key_bindings_vimlike.rb +65 -9
- data/lib/vimamsa/langservp.rb +271 -54
- data/lib/vimamsa/macro.rb +3 -0
- data/lib/vimamsa/main.rb +14 -8
- data/lib/vimamsa/rbvma.rb +26 -1
- data/lib/vimamsa/search.rb +3 -0
- data/lib/vimamsa/search_replace.rb +11 -10
- data/lib/vimamsa/string_util.rb +120 -40
- data/lib/vimamsa/terminal.rb +3 -0
- data/lib/vimamsa/test_framework.rb +28 -2
- data/lib/vimamsa/tests.rb +3 -0
- data/lib/vimamsa/text_objects.rb +353 -0
- data/lib/vimamsa/text_transforms.rb +14 -0
- data/lib/vimamsa/util.rb +46 -7
- data/lib/vimamsa/version.rb +1 -1
- data/lib/vimamsa.rb +0 -1
- data/modules/color_highlight/color_highlight.rb +118 -0
- data/modules/color_highlight/color_highlight_info.rb +3 -0
- data/modules/dictation/dictation.rb +1054 -0
- data/modules/dictation/dictation_info.rb +3 -0
- data/modules/dictation/whisper_worker.py +273 -0
- data/modules/ollama/ollama.rb +107 -0
- data/modules/ollama/ollama_info.rb +3 -0
- data/modules/tts/tts.rb +119 -0
- data/modules/tts/tts_info.rb +3 -0
- data/run_e2e_vm.sh +28 -0
- data/run_tests_vm.sh +130 -0
- data/scripts/appimage/AppRun +54 -0
- data/scripts/appimage/Dockerfile +18 -0
- data/scripts/appimage/build.sh +19 -0
- data/scripts/appimage/build_in_container.sh +192 -0
- data/scripts/appimage/smoke_test.sh +27 -0
- data/scripts/demo/demo_steps.txt +59 -0
- data/scripts/demo/record_demo.rb +177 -0
- data/scripts/demo/shapes.rb +28 -0
- data/styles/134272-molokai.xml +3 -0
- data/styles/molokai_cyber.xml +48 -0
- data/styles/molokai_edit.xml +1 -0
- data/tests/support/virtual_keyboard.rb +254 -0
- data/tests/support/virtual_mic.rb +67 -0
- data/tests/test_ack.rb +22 -0
- data/tests/test_auto_format.rb +122 -0
- data/tests/test_autocomplete.rb +211 -0
- data/tests/test_autosave.rb +145 -0
- data/tests/test_basic_editing.rb +33 -3
- data/tests/test_bookmarks.rb +206 -0
- data/tests/test_bracket_match.rb +85 -0
- data/tests/test_bundling.rb +92 -0
- data/tests/test_color_highlight.rb +92 -0
- data/tests/test_command_line.rb +79 -0
- data/tests/test_command_line_file.rb +27 -0
- data/tests/test_context_menu_file.rb +129 -0
- data/tests/test_copy_paste.rb +80 -0
- data/tests/test_crash_handler.rb +39 -0
- data/tests/test_custom_two_phase.rb +92 -0
- data/tests/test_dialog_callback_errors.rb +44 -0
- data/tests/test_dictation.rb +294 -0
- data/tests/test_diff_buffer_name.rb +51 -0
- data/tests/test_double_click.rb +41 -0
- data/tests/test_drag_selection.rb +125 -0
- data/tests/test_e2e_cmdline.rb +116 -0
- data/tests/test_e2e_dictation.rb +98 -0
- data/tests/test_e2e_replace_char.rb +58 -0
- data/tests/test_extract_file_links.rb +55 -0
- data/tests/test_file_format.rb +217 -0
- data/tests/test_file_manager.rb +72 -0
- data/tests/test_file_panel.rb +269 -0
- data/tests/test_flash.rb +78 -0
- data/tests/test_fold.rb +111 -0
- data/tests/test_font_refresh.rb +56 -0
- data/tests/test_func_panel.rb +68 -0
- data/tests/test_grep_apply.rb +46 -0
- data/tests/test_gtk_sync.rb +126 -0
- data/tests/test_hpt_highlight_visible.rb +75 -0
- data/tests/test_hpt_link_highlight.rb +82 -0
- data/tests/test_jump_to_file.rb +41 -0
- data/tests/test_key_bindings.rb +208 -0
- data/tests/test_keylog_panel.rb +101 -0
- data/tests/test_lsp_clangd.rb +281 -0
- data/tests/test_lsp_jump.rb +87 -0
- data/tests/test_lsp_position_encoding.rb +49 -0
- data/tests/test_lsp_symbols.rb +68 -0
- data/tests/test_macro.rb +137 -0
- data/tests/test_markdown_highlight.rb +57 -0
- data/tests/test_mode_badge.rb +41 -0
- data/tests/test_notepad_bindings.rb +67 -0
- data/tests/test_popup_queue.rb +51 -0
- data/tests/test_random_edit.rb +109 -0
- data/tests/test_revert.rb +127 -0
- data/tests/test_startup_file.rb +58 -0
- data/tests/test_status_area.rb +50 -0
- data/tests/test_text_objects.rb +163 -0
- data/tests/test_text_transforms.rb +329 -0
- data/tests/test_tts.rb +68 -0
- data/tests/test_vim_bindings.rb +252 -0
- data/tests/test_vim_conflicts.rb +63 -0
- data/tests/test_window_layout.rb +219 -0
- data/vimamsa.gemspec +3 -1
- data/vm_guest_run.sh +109 -0
- metadata +112 -10
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# vim_binding_conflicts (key_bindings_report.rb) and the generated
|
|
2
|
+
# doc/vimlike_vim_conflicts.md. Regenerate the doc with:
|
|
3
|
+
# VMA_UPDATE_DOC=1 ruby exe/run_tests.rb --headless vim_conflicts
|
|
4
|
+
class TestVimConflicts < VmaTest
|
|
5
|
+
DOC = File.expand_path("../doc/vimlike_vim_conflicts.md", __dir__)
|
|
6
|
+
|
|
7
|
+
def rows
|
|
8
|
+
@rows ||= vim_binding_conflicts
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def row(mode, keys)
|
|
12
|
+
rows.find { |r| r[:mode] == mode && r[:keys].join(" ") == keys }
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def test_doc_is_up_to_date
|
|
16
|
+
report = vim_binding_conflicts_report(rows)
|
|
17
|
+
if ENV["VMA_UPDATE_DOC"] == "1"
|
|
18
|
+
File.write(DOC, report)
|
|
19
|
+
return
|
|
20
|
+
end
|
|
21
|
+
# The report is tracked in git; skip only if it was deleted locally
|
|
22
|
+
skip "#{DOC} missing (run with VMA_UPDATE_DOC=1)" unless File.exist?(DOC)
|
|
23
|
+
assert File.read(DOC) == report,
|
|
24
|
+
"doc/vimlike_vim_conflicts.md is out of date: rerun with VMA_UPDATE_DOC=1 and commit it"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def test_classifies_known_cases
|
|
28
|
+
assert_eq :shared, row("C", "u")[:status] # undo in both
|
|
29
|
+
r = row("C", "s") # vim substitute, vimlike easy_jump
|
|
30
|
+
assert_eq [:conflict, :same_keys], [r[:status], r[:why]]
|
|
31
|
+
r = row("C", "c c") # vimlike has no c operator
|
|
32
|
+
assert_eq :missing, r[:status]
|
|
33
|
+
assert_eq :shared, row("C", "d i <char>")[:status] # text objects in both
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def test_shorter_and_prefix_conflicts
|
|
37
|
+
kbd = KeyBindingTree.new(actions: ActionList.new)
|
|
38
|
+
kbd.add_mode("C", :command)
|
|
39
|
+
kbd.bindkey("C z", :start_browse_mode)
|
|
40
|
+
kbd.bindkey("C , x", :foo)
|
|
41
|
+
kbd.bindkey("C q <char>", :rec)
|
|
42
|
+
st = ->(keys) { vim_binding_status(kbd, "C", keys.split, :vim_action) }
|
|
43
|
+
assert_eq [:conflict, :shorter], st.("z z").values_at(:status, :why)
|
|
44
|
+
assert_eq [:conflict, :prefix], st.(",").values_at(:status, :why)
|
|
45
|
+
assert_eq [:conflict, :wildcard], st.("q a").values_at(:status, :why)
|
|
46
|
+
assert_eq :missing, st.("t <char>")[:status]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def test_loading_schemes_leaves_editor_alone
|
|
50
|
+
kbd, acts = vma.kbd, vma.actions
|
|
51
|
+
color = cnf.mode.command.cursor.background!
|
|
52
|
+
cnf.mode.command.cursor.background = "#123456"
|
|
53
|
+
begin
|
|
54
|
+
load_scheme_kbd("vim")
|
|
55
|
+
assert vma.kbd.equal?(kbd), "vma.kbd replaced"
|
|
56
|
+
assert vma.actions.equal?(acts), "vma.actions replaced"
|
|
57
|
+
assert_eq "#123456", cnf.mode.command.cursor.background!
|
|
58
|
+
assert vma.actions.include?(:show_key_bindings)
|
|
59
|
+
ensure
|
|
60
|
+
cnf.mode.command.cursor.background = color
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
require "tmpdir"
|
|
2
|
+
|
|
3
|
+
# Window geometry and view layout saved on shutdown and restored on startup
|
|
4
|
+
# (VMAgui#window_layout / fit_view_layout / apply_view_layout in gui.rb).
|
|
5
|
+
# Test runs never read or write the saved layout, so most of these call the
|
|
6
|
+
# pieces directly; test_restored_after_restart starts the real editor.
|
|
7
|
+
class TestWindowLayout < VmaTest
|
|
8
|
+
OFF = { :shown => false }
|
|
9
|
+
PLAIN = { :two_column => OFF, :file_panel => OFF, :func_panel => OFF, :keylog => OFF }
|
|
10
|
+
|
|
11
|
+
def gui
|
|
12
|
+
vma.gui
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def with_layout(l)
|
|
16
|
+
gui.apply_view_layout(l)
|
|
17
|
+
drain_idle
|
|
18
|
+
yield
|
|
19
|
+
ensure
|
|
20
|
+
gui.apply_view_layout(PLAIN)
|
|
21
|
+
drain_idle
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def shown(width = nil)
|
|
25
|
+
{ :shown => true, :width => width }
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def view_parts(l)
|
|
29
|
+
[:two_column, :file_panel, :func_panel].map { |k| [l[k][:shown], l[k][:width]] }
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def test_round_trip_columns_and_panels
|
|
33
|
+
l = PLAIN.merge(:two_column => shown(300), :file_panel => shown(150), :func_panel => shown(140))
|
|
34
|
+
with_layout(l) {
|
|
35
|
+
got = gui.window_layout
|
|
36
|
+
assert_eq [[true, 300], [true, 150], [true, 140]], view_parts(got)
|
|
37
|
+
# Applying the layout it reports changes nothing
|
|
38
|
+
gui.apply_view_layout(got)
|
|
39
|
+
drain_idle
|
|
40
|
+
assert_eq view_parts(got), view_parts(gui.window_layout)
|
|
41
|
+
}
|
|
42
|
+
got = gui.window_layout
|
|
43
|
+
assert_eq [false, false, false], view_parts(got).map(&:first)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def test_widths_kept_when_panel_is_toggled
|
|
47
|
+
with_layout(PLAIN.merge(:file_panel => shown(210))) {
|
|
48
|
+
gui.hide_file_panel
|
|
49
|
+
gui.show_file_panel
|
|
50
|
+
drain_idle
|
|
51
|
+
assert_eq 210, gui.window_layout[:file_panel][:width]
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def test_minibuffer_history_height_kept
|
|
56
|
+
old = gui.instance_variable_get(:@minibuf_history_height)
|
|
57
|
+
gui.apply_view_layout(PLAIN.merge(:minibuf_history_height => 222))
|
|
58
|
+
assert_eq 222, gui.window_layout[:minibuf_history_height]
|
|
59
|
+
ensure
|
|
60
|
+
gui.instance_variable_set(:@minibuf_history_height, old)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def test_editor_works_after_restoring_layout
|
|
64
|
+
with_layout(PLAIN.merge(:two_column => shown, :file_panel => shown)) {
|
|
65
|
+
vma.buf.set_content("\n")
|
|
66
|
+
keys("i a b c esc")
|
|
67
|
+
assert_buf "abc\n"
|
|
68
|
+
}
|
|
69
|
+
vma.buf.set_pos(0)
|
|
70
|
+
keys("i x esc")
|
|
71
|
+
assert_buf "xabc\n"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def test_second_column_gets_its_file_back
|
|
75
|
+
Dir.mktmpdir { |dir|
|
|
76
|
+
path = "#{dir}/col2.txt"
|
|
77
|
+
File.write(path, "second\n")
|
|
78
|
+
main = vma.buf
|
|
79
|
+
b = open_new_file(path)
|
|
80
|
+
vma.buffers.set_current_buffer(main.id)
|
|
81
|
+
drain_idle
|
|
82
|
+
begin
|
|
83
|
+
with_layout(PLAIN.merge(:two_column => shown, :column2_file => path)) {
|
|
84
|
+
view = gui.instance_variable_get(:@windows)[2][:sw].child
|
|
85
|
+
assert_eq path, view.bufo.fname
|
|
86
|
+
assert_eq path, gui.window_layout[:column2_file]
|
|
87
|
+
}
|
|
88
|
+
ensure
|
|
89
|
+
vma.buffers.close_buffer(b.id)
|
|
90
|
+
end
|
|
91
|
+
}
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# ── fit_view_layout / pick_layout with fake monitor sizes ──
|
|
95
|
+
|
|
96
|
+
SAVED = { :width => 1800, :height => 1100, :maximized => true, :win_width => 1920,
|
|
97
|
+
:file_panel => { :shown => true, :width => 480, :frac => 0.25 },
|
|
98
|
+
:func_panel => { :shown => true, :width => 192, :frac => 0.1 },
|
|
99
|
+
:keylog => { :shown => false },
|
|
100
|
+
:two_column => { :shown => true, :width => 600, :frac => 0.3125 } }
|
|
101
|
+
|
|
102
|
+
def test_same_resolution_keeps_pixels
|
|
103
|
+
l = gui.fit_view_layout(SAVED, 1920, 1200, true)
|
|
104
|
+
assert_eq [1800, 1100, true], l.values_at(:width, :height, :maximized)
|
|
105
|
+
assert_eq [[true, 600], [true, 480], [true, 192]], view_parts(l)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
def test_smaller_screen_clamps_and_scales
|
|
109
|
+
l = gui.fit_view_layout(SAVED, 1280, 800, false)
|
|
110
|
+
assert_eq [1152, 720], l.values_at(:width, :height) # 90% of the monitor
|
|
111
|
+
assert_eq false, l[:maximized] # saved window didn't fit
|
|
112
|
+
assert_eq [[true, 360], [true, 288], [true, 115]], view_parts(l) # fractions of 1152
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def test_editor_keeps_minimum_width
|
|
116
|
+
narrow = SAVED.merge(:file_panel => { :shown => true, :width => 480, :frac => 0.5 },
|
|
117
|
+
:func_panel => { :shown => true, :width => 300, :frac => 0.3 })
|
|
118
|
+
l = gui.fit_view_layout(narrow, 1000, 700, false) # window 900 wide
|
|
119
|
+
assert_eq 900, l[:width]
|
|
120
|
+
assert_eq [true, 450], [l[:file_panel][:shown], l[:file_panel][:width]]
|
|
121
|
+
assert_eq false, l[:func_panel][:shown], "func panel should be hidden, not squeeze the editor"
|
|
122
|
+
assert 900 - 450 >= VMAgui::EDITOR_MIN_WIDTH
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def test_first_start_default_size
|
|
126
|
+
l = gui.fit_view_layout({}, 1920, 1080, true)
|
|
127
|
+
assert_eq [1000, 800, false], l.values_at(:width, :height, :maximized)
|
|
128
|
+
assert_eq [false, false, false], view_parts(l).map(&:first)
|
|
129
|
+
# Small screen: 90% of it, but at least the 600 px minimum
|
|
130
|
+
assert_eq [921, 691], gui.fit_view_layout({}, 1024, 768, true).values_at(:width, :height)
|
|
131
|
+
assert_eq [720, 600], gui.fit_view_layout({}, 800, 600, true).values_at(:width, :height)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
def test_pick_prefers_layout_of_this_resolution
|
|
135
|
+
all = { "1920x1200@1" => SAVED.merge(:used => 1.0),
|
|
136
|
+
"1280x800@1" => SAVED.merge(:width => 1000, :maximized => false, :used => 0.5) }
|
|
137
|
+
assert_eq 1000, gui.pick_layout(all, "1280x800@1", 1280, 800)[:width]
|
|
138
|
+
# Unknown resolution: the most recent layout, fitted
|
|
139
|
+
l = gui.pick_layout(all, "3840x2160@2", 1920, 1080)
|
|
140
|
+
assert_eq [1728, 972], l.values_at(:width, :height)
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
def test_keeps_most_recent_layouts
|
|
144
|
+
all = {}
|
|
145
|
+
7.times { |i| all = gui.merge_layouts(all, "#{i}x1@1", { :width => i }, i.to_f) }
|
|
146
|
+
assert_eq VMAgui::LAYOUT_KEEP, all.size
|
|
147
|
+
assert_eq %w[6x1@1 5x1@1 4x1@1 3x1@1 2x1@1], all.keys
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
def test_not_saved_in_test_mode
|
|
151
|
+
gui.save_window_layout
|
|
152
|
+
assert !File.exist?(get_data_path(VMAgui::LAYOUT_FILE)), "test run wrote the layout"
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# ── Real startups ──
|
|
156
|
+
|
|
157
|
+
# Start the real editor (not in test mode) with config dir ud and wait for
|
|
158
|
+
# it to quit on its own (its custom.rb calls vma.shutdown).
|
|
159
|
+
def run_editor(ud)
|
|
160
|
+
exe = File.expand_path("../exe/vimamsa", __dir__)
|
|
161
|
+
pid = Process.spawn(RbConfig.ruby, exe, "--user-dir", ud, out: File::NULL, err: "#{ud}/log.txt")
|
|
162
|
+
t = Time.now
|
|
163
|
+
while Process.waitpid(pid, Process::WNOHANG).nil?
|
|
164
|
+
if Time.now - t > 60
|
|
165
|
+
Process.kill("KILL", pid)
|
|
166
|
+
Process.wait(pid)
|
|
167
|
+
raise VmaTestFailure, "editor did not quit (log: #{ud}/log.txt)"
|
|
168
|
+
end
|
|
169
|
+
sleep 0.2
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Two real startups with a throwaway config dir (data goes there too). The
|
|
174
|
+
# first starts with the default size, maximizes, shows two columns and the
|
|
175
|
+
# file panel, and quits; the second reports what it restored.
|
|
176
|
+
def test_restored_after_restart
|
|
177
|
+
skip "needs a display" unless ENV["DISPLAY"] || ENV["WAYLAND_DISPLAY"]
|
|
178
|
+
Dir.mktmpdir { |dir|
|
|
179
|
+
ud = "#{dir}/ud"
|
|
180
|
+
Dir.mkdir(ud)
|
|
181
|
+
File.write("#{ud}/custom.rb", <<~RUBY)
|
|
182
|
+
def hook_custom_after_init
|
|
183
|
+
GLib::Timeout.add(3000) {
|
|
184
|
+
n = File.exist?(#{"#{dir}/run1".inspect}) ? 2 : 1
|
|
185
|
+
File.binwrite(#{dir.inspect} + "/run\#{n}", Marshal.dump(vma.gui.window_layout))
|
|
186
|
+
if n == 1
|
|
187
|
+
vma.gui.window.maximize
|
|
188
|
+
vma.gui.toggle_two_column
|
|
189
|
+
vma.gui.toggle_file_panel
|
|
190
|
+
# Like dragging the divider: once the new pane is laid out
|
|
191
|
+
GLib::Timeout.add(800) { vma.gui.instance_variable_get(:@file_panel_pane).set_position(222); false }
|
|
192
|
+
end
|
|
193
|
+
GLib::Timeout.add(2000) { vma.shutdown; false }
|
|
194
|
+
false
|
|
195
|
+
}
|
|
196
|
+
end
|
|
197
|
+
RUBY
|
|
198
|
+
mw, mh = gui.monitor_size(gui.layout_monitor)
|
|
199
|
+
want = gui.fit_view_layout({}, mw, mh, true)
|
|
200
|
+
|
|
201
|
+
run_editor(ud)
|
|
202
|
+
first = Marshal.load(File.binread("#{dir}/run1"))
|
|
203
|
+
# The window manager may shrink it to the usable area (e.g. GNOME's top bar)
|
|
204
|
+
w, h = first.values_at(:width, :height)
|
|
205
|
+
assert w <= want[:width] && h <= want[:height] && w >= 600 && h >= 500,
|
|
206
|
+
"first start: #{[w, h]}, default #{want.values_at(:width, :height)}"
|
|
207
|
+
# (GNOME may also maximize it on a small screen, e.g. the VM's 1024x768)
|
|
208
|
+
assert_eq false, first[:two_column][:shown], "first start: #{first.inspect}, monitor #{[mw, mh]}"
|
|
209
|
+
assert File.exist?("#{ud}/#{VMAgui::LAYOUT_FILE}"), "layout not saved"
|
|
210
|
+
|
|
211
|
+
run_editor(ud)
|
|
212
|
+
second = Marshal.load(File.binread("#{dir}/run2"))
|
|
213
|
+
assert_eq true, second[:maximized]
|
|
214
|
+
assert_eq [w, h], second.values_at(:width, :height)
|
|
215
|
+
assert_eq [true, true, 222], [second[:two_column][:shown], second[:file_panel][:shown], second[:file_panel][:width]],
|
|
216
|
+
"second start: #{second.inspect}\nsaved: #{Marshal.load(File.binread("#{ud}/#{VMAgui::LAYOUT_FILE}")).inspect}"
|
|
217
|
+
}
|
|
218
|
+
end
|
|
219
|
+
end
|
data/vimamsa.gemspec
CHANGED
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.bindir = "exe"
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
23
23
|
spec.require_paths = ["lib","ext"]
|
|
24
|
+
spec.required_ruby_version = ">= 3.1"
|
|
24
25
|
|
|
25
26
|
spec.add_development_dependency "bundler", ">= 2.4"
|
|
26
27
|
spec.add_development_dependency "rake", "~> 13.1.0"
|
|
@@ -34,7 +35,8 @@ Gem::Specification.new do |spec|
|
|
|
34
35
|
spec.add_runtime_dependency 'gtksourceview5', '~> 4.3.5'
|
|
35
36
|
spec.add_runtime_dependency 'gstreamer', '~> 4.3.5'
|
|
36
37
|
spec.add_runtime_dependency 'vte4', '~> 4.3.5'
|
|
37
|
-
spec.add_runtime_dependency '
|
|
38
|
+
spec.add_runtime_dependency 'ruby-lsp', '~> 0.26.8'
|
|
39
|
+
|
|
38
40
|
|
|
39
41
|
spec.add_runtime_dependency 'differ', '~> 0.1.2'
|
|
40
42
|
spec.add_runtime_dependency 'parallel', '~> 1.14' #TODO: update?
|
data/vm_guest_run.sh
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Runs INSIDE the test VM guest (copied in and executed by run_tests_vm.sh via
|
|
3
|
+
# VBoxManage guestcontrol). Unpacks the synced working tree, provisions the box the
|
|
4
|
+
# first time, builds the native extension, then runs the test suite on the real
|
|
5
|
+
# desktop (DISPLAY :0) so the GTK window actually appears in the VM.
|
|
6
|
+
#
|
|
7
|
+
# Env (passed via `guestcontrol run --putenv`):
|
|
8
|
+
# SUDO_PASS guest sudo password (used with `sudo -S`; never written to disk)
|
|
9
|
+
# VMA_DISPLAY X display of the logged-in desktop session (default :0)
|
|
10
|
+
# VMA_TEST_ARGS optional args forwarded to exe/run_tests.rb (test filters)
|
|
11
|
+
# FORCE_PROVISION set to 1 to re-run apt/gem provisioning even if the marker exists
|
|
12
|
+
set -euo pipefail
|
|
13
|
+
|
|
14
|
+
SRC_TGZ="$HOME/vimamsa_src.tgz"
|
|
15
|
+
DEST="$HOME/vimamsa"
|
|
16
|
+
MARKER="$HOME/.vimamsa_vm_provisioned"
|
|
17
|
+
|
|
18
|
+
sudo_do() { echo "${SUDO_PASS:-}" | sudo -S -p '' "$@"; }
|
|
19
|
+
|
|
20
|
+
# 1. Unpack the synced working tree fresh each run.
|
|
21
|
+
echo ">> Unpacking source into $DEST"
|
|
22
|
+
rm -rf "$DEST"
|
|
23
|
+
mkdir -p "$DEST"
|
|
24
|
+
tar xzf "$SRC_TGZ" -C "$DEST"
|
|
25
|
+
cd "$DEST"
|
|
26
|
+
|
|
27
|
+
# 2. Provision (idempotent). apt + bundler only on the first run (or when forced).
|
|
28
|
+
if [ ! -f "$MARKER" ] || [ "${FORCE_PROVISION:-}" = "1" ]; then
|
|
29
|
+
echo ">> Provisioning guest (apt packages + bundler) — this is slow the first time"
|
|
30
|
+
export DEBIAN_FRONTEND=noninteractive
|
|
31
|
+
sudo_do apt-get update
|
|
32
|
+
sudo_do apt-get install -y \
|
|
33
|
+
ruby ruby-dev build-essential git pkg-config \
|
|
34
|
+
libgtk-4-dev libgtksourceview-5-dev \
|
|
35
|
+
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
|
|
36
|
+
libvte-2.91-gtk4-dev libssl-dev \
|
|
37
|
+
ack clang-format x11-xserver-utils vim
|
|
38
|
+
sudo_do gem install bundler -v '~> 2.4'
|
|
39
|
+
else
|
|
40
|
+
echo ">> Guest already provisioned (marker $MARKER present) — skipping apt"
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
# Real vim for TestTextObjects#test_cases_match_real_vim. Checked separately so
|
|
44
|
+
# boxes provisioned before it was added to the list above get it too.
|
|
45
|
+
if ! command -v vim >/dev/null; then
|
|
46
|
+
echo ">> Installing vim"
|
|
47
|
+
sudo_do env DEBIAN_FRONTEND=noninteractive apt-get install -y vim
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
# Enable the uinput virtual keyboard so the E2E tests can type real key events.
|
|
51
|
+
# Do this every run (the module load / device perms don't survive a reboot).
|
|
52
|
+
sudo_do modprobe uinput 2>/dev/null || true
|
|
53
|
+
sudo_do chmod 0666 /dev/uinput 2>/dev/null || true
|
|
54
|
+
|
|
55
|
+
# 3. Build + install the gem. Compiles ext/vmaext and (first run) installs the
|
|
56
|
+
# ruby-gnome gems and the external StrIdx C++ gem. Copy the built .so back into
|
|
57
|
+
# the tree so `require "vmaext"` resolves when running from source.
|
|
58
|
+
echo ">> Building and installing the vimamsa gem"
|
|
59
|
+
rm -f vimamsa-0.1.*.gem
|
|
60
|
+
gem build vimamsa.gemspec
|
|
61
|
+
# NB: no --local — installing the local .gem must be allowed to fetch its runtime
|
|
62
|
+
# deps (gtk4, gtksourceview5, StrIdx, language_server-protocol, …) from rubygems.org.
|
|
63
|
+
sudo_do gem install vimamsa-0.1.*.gem
|
|
64
|
+
# A system `gem install` compiles the extension under Gem.dir/extensions/<platform>/
|
|
65
|
+
# <abi>/vimamsa-<ver>/vmaext.so (not under gems/.../ext), so locate it with find.
|
|
66
|
+
GEM_DIR="$(ruby -e 'puts Gem.dir')"
|
|
67
|
+
so_path="$(find "$GEM_DIR" -name vmaext.so -path '*vimamsa*' 2>/dev/null | head -1)"
|
|
68
|
+
[ -z "$so_path" ] && so_path="$(find "$GEM_DIR" -name vmaext.so 2>/dev/null | head -1)"
|
|
69
|
+
if [ -z "$so_path" ]; then
|
|
70
|
+
echo "!! Could not locate compiled vmaext.so under $GEM_DIR" >&2
|
|
71
|
+
exit 2
|
|
72
|
+
fi
|
|
73
|
+
cp "$so_path" lib/
|
|
74
|
+
touch "$MARKER"
|
|
75
|
+
|
|
76
|
+
# The ruby-lsp tests run `bundle exec ruby-lsp`. The synced Gemfile.lock is the
|
|
77
|
+
# host's and pins exact versions the guest doesn't have (gem install above picks
|
|
78
|
+
# the newest matching ones), so resolve the bundle against the guest's gems,
|
|
79
|
+
# installing only what's missing (e.g. the development dependencies).
|
|
80
|
+
rm -f Gemfile.lock
|
|
81
|
+
bundle check >/dev/null 2>&1 || sudo_do bundle install
|
|
82
|
+
|
|
83
|
+
# 4. Run the suite on the real desktop (no --headless: the window shows on-screen).
|
|
84
|
+
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
|
85
|
+
# Prefer the real Wayland seat: the uinput E2E tests only run on the GTK Wayland
|
|
86
|
+
# backend. Keep DISPLAY + XAUTHORITY set too so xmodmap (an X tool, via Xwayland)
|
|
87
|
+
# can still read the keymap.
|
|
88
|
+
if [ -S "$XDG_RUNTIME_DIR/wayland-0" ]; then
|
|
89
|
+
export GDK_BACKEND=wayland
|
|
90
|
+
export WAYLAND_DISPLAY="${WAYLAND_DISPLAY:-wayland-0}"
|
|
91
|
+
fi
|
|
92
|
+
export DISPLAY="${VMA_DISPLAY:-:0}"
|
|
93
|
+
if [ -z "${XAUTHORITY:-}" ]; then
|
|
94
|
+
for f in "$HOME/.Xauthority" \
|
|
95
|
+
"/run/user/$(id -u)/gdm/Xauthority" \
|
|
96
|
+
/run/user/"$(id -u)"/.mutter-Xwaylandauth.*; do
|
|
97
|
+
if [ -f "$f" ]; then export XAUTHORITY="$f"; break; fi
|
|
98
|
+
done
|
|
99
|
+
fi
|
|
100
|
+
echo ">> Running tests on GDK_BACKEND=${GDK_BACKEND:-x11} DISPLAY=$DISPLAY (XAUTHORITY=${XAUTHORITY:-unset})"
|
|
101
|
+
# VBoxManage `guestcontrol run` does NOT propagate the guest process's exit code to
|
|
102
|
+
# the host, so emit an unambiguous sentinel the host parses for pass/fail.
|
|
103
|
+
set +e
|
|
104
|
+
# shellcheck disable=SC2086 # word-splitting of VMA_TEST_ARGS is intentional
|
|
105
|
+
ruby exe/run_tests.rb ${VMA_TEST_ARGS:-}
|
|
106
|
+
suite_rc=$?
|
|
107
|
+
set -e
|
|
108
|
+
echo "VMA_SUITE_EXIT=${suite_rc}"
|
|
109
|
+
exit "$suite_rc"
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vimamsa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.27
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sami Sieranoja
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -151,19 +150,19 @@ dependencies:
|
|
|
151
150
|
- !ruby/object:Gem::Version
|
|
152
151
|
version: 4.3.5
|
|
153
152
|
- !ruby/object:Gem::Dependency
|
|
154
|
-
name:
|
|
153
|
+
name: ruby-lsp
|
|
155
154
|
requirement: !ruby/object:Gem::Requirement
|
|
156
155
|
requirements:
|
|
157
156
|
- - "~>"
|
|
158
157
|
- !ruby/object:Gem::Version
|
|
159
|
-
version:
|
|
158
|
+
version: 0.26.8
|
|
160
159
|
type: :runtime
|
|
161
160
|
prerelease: false
|
|
162
161
|
version_requirements: !ruby/object:Gem::Requirement
|
|
163
162
|
requirements:
|
|
164
163
|
- - "~>"
|
|
165
164
|
- !ruby/object:Gem::Version
|
|
166
|
-
version:
|
|
165
|
+
version: 0.26.8
|
|
167
166
|
- !ruby/object:Gem::Dependency
|
|
168
167
|
name: differ
|
|
169
168
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -246,6 +245,7 @@ extensions:
|
|
|
246
245
|
extra_rdoc_files: []
|
|
247
246
|
files:
|
|
248
247
|
- ".dockerignore"
|
|
248
|
+
- ".github/workflows/appimage.yml"
|
|
249
249
|
- ".gitignore"
|
|
250
250
|
- Dockerfile
|
|
251
251
|
- Gemfile
|
|
@@ -255,11 +255,25 @@ files:
|
|
|
255
255
|
- bin/setup
|
|
256
256
|
- custom_example.rb
|
|
257
257
|
- demo.txt
|
|
258
|
+
- doc/TODO.md
|
|
259
|
+
- doc/bundling_plan.md
|
|
260
|
+
- doc/key_bindings_report_plan.md
|
|
261
|
+
- doc/missing_vim_bindings.md
|
|
262
|
+
- doc/modules_settings_plan.md
|
|
263
|
+
- doc/refactor_dedup_plan.md
|
|
264
|
+
- doc/unused_code_plan.md
|
|
265
|
+
- doc/vim_compatibility_plan.md
|
|
266
|
+
- doc/vimlike_vim_conflicts.md
|
|
267
|
+
- doc/vm_snapshots_plan.md
|
|
258
268
|
- docker_cmd.sh
|
|
259
269
|
- exe/run_tests.rb
|
|
260
270
|
- exe/vimamsa
|
|
261
271
|
- ext/vmaext/extconf.rb
|
|
262
272
|
- ext/vmaext/vmaext.c
|
|
273
|
+
- fonts/OFL-Oxanium.txt
|
|
274
|
+
- fonts/Oxanium[wght].ttf
|
|
275
|
+
- icon.png
|
|
276
|
+
- img/demo.gif
|
|
263
277
|
- img/screenshot1.png
|
|
264
278
|
- img/screenshot2.png
|
|
265
279
|
- install.sh
|
|
@@ -267,16 +281,21 @@ files:
|
|
|
267
281
|
- lib/vimamsa.rb
|
|
268
282
|
- lib/vimamsa/ack.rb
|
|
269
283
|
- lib/vimamsa/actions.rb
|
|
284
|
+
- lib/vimamsa/appimage_env.rb
|
|
270
285
|
- lib/vimamsa/audio.rb
|
|
286
|
+
- lib/vimamsa/bookmarks.rb
|
|
271
287
|
- lib/vimamsa/buffer.rb
|
|
272
288
|
- lib/vimamsa/buffer_changetext.rb
|
|
273
289
|
- lib/vimamsa/buffer_cursor.rb
|
|
274
290
|
- lib/vimamsa/buffer_list.rb
|
|
275
291
|
- lib/vimamsa/buffer_manager.rb
|
|
292
|
+
- lib/vimamsa/bundled_fonts.rb
|
|
276
293
|
- lib/vimamsa/clipboard.rb
|
|
277
294
|
- lib/vimamsa/conf.rb
|
|
278
295
|
- lib/vimamsa/constants.rb
|
|
296
|
+
- lib/vimamsa/crash_handler.rb
|
|
279
297
|
- lib/vimamsa/debug.rb
|
|
298
|
+
- lib/vimamsa/desktop_install.rb
|
|
280
299
|
- lib/vimamsa/diff_buffer.rb
|
|
281
300
|
- lib/vimamsa/easy_jump.rb
|
|
282
301
|
- lib/vimamsa/editor.rb
|
|
@@ -284,22 +303,29 @@ files:
|
|
|
284
303
|
- lib/vimamsa/file_finder.rb
|
|
285
304
|
- lib/vimamsa/file_history.rb
|
|
286
305
|
- lib/vimamsa/file_manager.rb
|
|
306
|
+
- lib/vimamsa/fold.rb
|
|
287
307
|
- lib/vimamsa/gui.rb
|
|
308
|
+
- lib/vimamsa/gui_command_line.rb
|
|
288
309
|
- lib/vimamsa/gui_dialog.rb
|
|
289
310
|
- lib/vimamsa/gui_file_panel.rb
|
|
290
311
|
- lib/vimamsa/gui_form_generator.rb
|
|
291
312
|
- lib/vimamsa/gui_func_panel.rb
|
|
292
313
|
- lib/vimamsa/gui_image.rb
|
|
314
|
+
- lib/vimamsa/gui_keylog_panel.rb
|
|
293
315
|
- lib/vimamsa/gui_menu.rb
|
|
294
316
|
- lib/vimamsa/gui_select_window.rb
|
|
295
317
|
- lib/vimamsa/gui_settings.rb
|
|
296
318
|
- lib/vimamsa/gui_sourceview.rb
|
|
297
319
|
- lib/vimamsa/gui_sourceview_autocomplete.rb
|
|
298
320
|
- lib/vimamsa/gui_text.rb
|
|
321
|
+
- lib/vimamsa/gui_theme.rb
|
|
299
322
|
- lib/vimamsa/hook.rb
|
|
300
323
|
- lib/vimamsa/hyper_plain_text.rb
|
|
301
324
|
- lib/vimamsa/key_actions.rb
|
|
302
325
|
- lib/vimamsa/key_binding_tree.rb
|
|
326
|
+
- lib/vimamsa/key_bindings_notepad.rb
|
|
327
|
+
- lib/vimamsa/key_bindings_report.rb
|
|
328
|
+
- lib/vimamsa/key_bindings_vim.rb
|
|
303
329
|
- lib/vimamsa/key_bindings_vimlike.rb
|
|
304
330
|
- lib/vimamsa/langservp.rb
|
|
305
331
|
- lib/vimamsa/macro.rb
|
|
@@ -311,30 +337,107 @@ files:
|
|
|
311
337
|
- lib/vimamsa/terminal.rb
|
|
312
338
|
- lib/vimamsa/test_framework.rb
|
|
313
339
|
- lib/vimamsa/tests.rb
|
|
340
|
+
- lib/vimamsa/text_objects.rb
|
|
314
341
|
- lib/vimamsa/text_transforms.rb
|
|
315
342
|
- lib/vimamsa/util.rb
|
|
316
343
|
- lib/vimamsa/version.rb
|
|
317
344
|
- modules/calculator/calculator.rb
|
|
318
345
|
- modules/calculator/calculator_info.rb
|
|
346
|
+
- modules/color_highlight/color_highlight.rb
|
|
347
|
+
- modules/color_highlight/color_highlight_info.rb
|
|
348
|
+
- modules/dictation/dictation.rb
|
|
349
|
+
- modules/dictation/dictation_info.rb
|
|
350
|
+
- modules/dictation/whisper_worker.py
|
|
351
|
+
- modules/ollama/ollama.rb
|
|
352
|
+
- modules/ollama/ollama_info.rb
|
|
319
353
|
- modules/terminal/terminal.rb
|
|
320
354
|
- modules/terminal/terminal_info.rb
|
|
355
|
+
- modules/tts/tts.rb
|
|
356
|
+
- modules/tts/tts_info.rb
|
|
357
|
+
- run_e2e_vm.sh
|
|
321
358
|
- run_tests.rb
|
|
359
|
+
- run_tests_vm.sh
|
|
360
|
+
- scripts/appimage/AppRun
|
|
361
|
+
- scripts/appimage/Dockerfile
|
|
362
|
+
- scripts/appimage/build.sh
|
|
363
|
+
- scripts/appimage/build_in_container.sh
|
|
364
|
+
- scripts/appimage/smoke_test.sh
|
|
365
|
+
- scripts/demo/demo_steps.txt
|
|
366
|
+
- scripts/demo/record_demo.rb
|
|
367
|
+
- scripts/demo/shapes.rb
|
|
322
368
|
- sheep.jpg
|
|
323
369
|
- styles/134272-molokai.xml
|
|
324
370
|
- styles/dark.xml
|
|
371
|
+
- styles/molokai_cyber.xml
|
|
325
372
|
- styles/molokai_edit.xml
|
|
326
373
|
- tests/key_bindings.rb
|
|
374
|
+
- tests/support/virtual_keyboard.rb
|
|
375
|
+
- tests/support/virtual_mic.rb
|
|
376
|
+
- tests/test_ack.rb
|
|
377
|
+
- tests/test_auto_format.rb
|
|
378
|
+
- tests/test_autocomplete.rb
|
|
379
|
+
- tests/test_autosave.rb
|
|
327
380
|
- tests/test_basic_editing.rb
|
|
381
|
+
- tests/test_bookmarks.rb
|
|
382
|
+
- tests/test_bracket_match.rb
|
|
383
|
+
- tests/test_bundling.rb
|
|
384
|
+
- tests/test_color_highlight.rb
|
|
385
|
+
- tests/test_command_line.rb
|
|
386
|
+
- tests/test_command_line_file.rb
|
|
387
|
+
- tests/test_context_menu_file.rb
|
|
328
388
|
- tests/test_copy_paste.rb
|
|
389
|
+
- tests/test_crash_handler.rb
|
|
390
|
+
- tests/test_custom_two_phase.rb
|
|
391
|
+
- tests/test_dialog_callback_errors.rb
|
|
392
|
+
- tests/test_dictation.rb
|
|
393
|
+
- tests/test_diff_buffer_name.rb
|
|
394
|
+
- tests/test_double_click.rb
|
|
395
|
+
- tests/test_drag_selection.rb
|
|
396
|
+
- tests/test_e2e_cmdline.rb
|
|
397
|
+
- tests/test_e2e_dictation.rb
|
|
398
|
+
- tests/test_e2e_replace_char.rb
|
|
399
|
+
- tests/test_extract_file_links.rb
|
|
400
|
+
- tests/test_file_format.rb
|
|
401
|
+
- tests/test_file_manager.rb
|
|
402
|
+
- tests/test_file_panel.rb
|
|
403
|
+
- tests/test_flash.rb
|
|
404
|
+
- tests/test_fold.rb
|
|
405
|
+
- tests/test_font_refresh.rb
|
|
406
|
+
- tests/test_func_panel.rb
|
|
407
|
+
- tests/test_grep_apply.rb
|
|
408
|
+
- tests/test_gtk_sync.rb
|
|
409
|
+
- tests/test_hpt_highlight_visible.rb
|
|
410
|
+
- tests/test_hpt_link_highlight.rb
|
|
411
|
+
- tests/test_jump_to_file.rb
|
|
329
412
|
- tests/test_key_bindings.rb
|
|
413
|
+
- tests/test_keylog_panel.rb
|
|
414
|
+
- tests/test_lsp_clangd.rb
|
|
415
|
+
- tests/test_lsp_jump.rb
|
|
416
|
+
- tests/test_lsp_position_encoding.rb
|
|
417
|
+
- tests/test_lsp_symbols.rb
|
|
418
|
+
- tests/test_macro.rb
|
|
419
|
+
- tests/test_markdown_highlight.rb
|
|
420
|
+
- tests/test_mode_badge.rb
|
|
330
421
|
- tests/test_module_interface.rb
|
|
422
|
+
- tests/test_notepad_bindings.rb
|
|
423
|
+
- tests/test_popup_queue.rb
|
|
424
|
+
- tests/test_random_edit.rb
|
|
425
|
+
- tests/test_revert.rb
|
|
426
|
+
- tests/test_startup_file.rb
|
|
427
|
+
- tests/test_status_area.rb
|
|
428
|
+
- tests/test_text_objects.rb
|
|
429
|
+
- tests/test_text_transforms.rb
|
|
430
|
+
- tests/test_tts.rb
|
|
331
431
|
- tests/test_undo.rb
|
|
432
|
+
- tests/test_vim_bindings.rb
|
|
433
|
+
- tests/test_vim_conflicts.rb
|
|
434
|
+
- tests/test_window_layout.rb
|
|
332
435
|
- vimamsa.gemspec
|
|
436
|
+
- vm_guest_run.sh
|
|
333
437
|
homepage: https://github.com/SamiSieranoja/vimamsa
|
|
334
438
|
licenses:
|
|
335
439
|
- GPL-3.0+
|
|
336
440
|
metadata: {}
|
|
337
|
-
post_install_message:
|
|
338
441
|
rdoc_options: []
|
|
339
442
|
require_paths:
|
|
340
443
|
- lib
|
|
@@ -343,15 +446,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
343
446
|
requirements:
|
|
344
447
|
- - ">="
|
|
345
448
|
- !ruby/object:Gem::Version
|
|
346
|
-
version: '
|
|
449
|
+
version: '3.1'
|
|
347
450
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
348
451
|
requirements:
|
|
349
452
|
- - ">="
|
|
350
453
|
- !ruby/object:Gem::Version
|
|
351
454
|
version: '0'
|
|
352
455
|
requirements: []
|
|
353
|
-
rubygems_version: 3.
|
|
354
|
-
signing_key:
|
|
456
|
+
rubygems_version: 3.6.9
|
|
355
457
|
specification_version: 4
|
|
356
458
|
summary: Vimamsa
|
|
357
459
|
test_files: []
|