From 575e17a924ded89a43f936886c21b58eedf1d7df Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 26 Jul 2024 11:42:42 +0200 Subject: [PATCH] vimiv: Add batch marking images Use `V` in the library or thumbnail view to mark contiguous images, mimicking vim visual selection mode. --- .gitmodules | 3 +++ multimedia/.config/vimiv/keys.conf | 2 ++ multimedia/.config/vimiv/vimiv.conf | 3 ++- multimedia/.local/share/vimiv/plugins/.gitkeep | 0 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 multimedia/.local/share/vimiv/plugins/.gitkeep diff --git a/.gitmodules b/.gitmodules index 7779f2e..4eb890c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "scripts/.local/share/uoeia"] path = scripts/.local/share/uoeia url = https://git.martyoeh.me/Marty/uoeia.git +[submodule "multimedia/.local/share/vimiv/plugins/batchmark"] + path = multimedia/.local/share/vimiv/plugins/batchmark + url = https://github.com/jcjgraf/BatchMark diff --git a/multimedia/.config/vimiv/keys.conf b/multimedia/.config/vimiv/keys.conf index 7bd15a9..ac527df 100644 --- a/multimedia/.config/vimiv/keys.conf +++ b/multimedia/.config/vimiv/keys.conf @@ -31,6 +31,7 @@ b : set statusbar.show! tl : toggle library tm : toggle manipulate tt : toggle thumbnail +V : batchmark-toggle [IMAGE] M : center @@ -85,6 +86,7 @@ H : set library.width -0.05 $ : end-of-line : enter library ^ : first-of-line +0 : first-of-line d : scroll half-page-down u : scroll half-page-up : scroll left diff --git a/multimedia/.config/vimiv/vimiv.conf b/multimedia/.config/vimiv/vimiv.conf index 572a63a..9a29602 100644 --- a/multimedia/.config/vimiv/vimiv.conf +++ b/multimedia/.config/vimiv/vimiv.conf @@ -43,7 +43,7 @@ left_thumbnail = {thumbnail-index}/{thumbnail-total} {thumbnail-basename}{read-o left_manipulate = {basename} {image-size} Modified: {modified} {processing} center_thumbnail = {thumbnail-size} center = {slideshow-indicator} {slideshow-delay} {transformation-info} -right = {keys} {mark-count} {mode} +right = {keys} {batchmark} {mark-count} {mode} right_image = {keys} {mark-indicator} {mark-count} {mode} [KEYHINT] @@ -71,6 +71,7 @@ shuffle = False [PLUGINS] print = default metadata = default +batchmark = [ALIASES] diff --git a/multimedia/.local/share/vimiv/plugins/.gitkeep b/multimedia/.local/share/vimiv/plugins/.gitkeep new file mode 100644 index 0000000..e69de29