diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-22 11:04:05 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-22 11:04:05 +0300 |
| commit | 9af69a3409f67cbe3807538ccfb56fd0d3f43070 (patch) | |
| tree | 912c18c43cfaecde242d15a0f60db88e40f2be78 /tests/meson.build | |
| parent | d0a824c685db1567facaf08fcae19ee0636496da (diff) | |
Integrate navigator marks into window and grid UI (M8)
Wire the navigator mark API into the window actions, grid badges, and
keyboard/pointer controls:
- Navigator: add a path-based range anchor (p_last_mark) set on `v`
toggle-on and cleared on unmark-of-anchor / clear_marks / remove /
mark_removed / rescan-prune; expose navigator_get_last_mark().
navigator_mark_removed now clears the removed file's mark (decision Q
/ task du0) and the anchor if it was it, without touching unrelated
marks, and emits "changed" whenever the removed set or marks actually
changed so grid badges and the header never go stale.
- Window: add win.mark-range (`V`: range from the last-mark anchor to the
current/grid-selected image), register it, wire Shift+V, and document
it in the shortcuts overlay. Trash/delete clear marks via mark_removed.
- Grid: middle-click on a cell selects it and dispatches win.mark
(pointer-accessible marks).
- Tests: unit test_marks_anchor_and_remove and
test_marks_anchor_pruned_on_rescan; integration test_marks.c covering
toggle, all+clear, range, persistence across view switch,
clear-on-trash, and the middle-click gesture wiring; updated
test_shortcut.c action table + count.
clang-format clean; full suite + ASan leak check green.
Diffstat (limited to 'tests/meson.build')
| -rw-r--r-- | tests/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build index e895210..37d1233 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -263,4 +263,12 @@ test_clipboard = executable( test('clipboard', test_clipboard, suite : 'integration', env : fixtures_env) +test_marks = executable( + 'test_marks', ['test_marks.c', ggaze_conf_h], + include_directories : [inc, src_inc], + dependencies : ggaze_deps, + link_with : ggaze_lib, install : false, +) +test('marks', test_marks, suite : 'integration', env : fixtures_env) + subdir('integration') |
