From 9b849fc8247c2e7418aaaf5a488fafb40aa02f2e Mon Sep 17 00:00:00 2001 From: ctarx Date: Tue, 11 Nov 2025 15:05:45 +0000 Subject: [PATCH] feat: add custom imv keybindings for delete and rotate currently opened image (#3312) * feat: add custom imv keybindings for delete and rotate * Update imv config and migration script * Simplify this --------- Co-authored-by: David Heinemeier Hansson --- config/imv/config | 13 ++++++++++++- migrations/1762802472.sh | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 migrations/1762802472.sh diff --git a/config/imv/config b/config/imv/config index f54c29af..46493240 100644 --- a/config/imv/config +++ b/config/imv/config @@ -1,2 +1,13 @@ [binds] - = exec lp $imv_current_file + +# Print the current image file + = exec lp "$imv_current_file" + +# Delete the current image and quit the viewer + = exec rm "$imv_current_file"; quit + +# Delete the current image and move to the next one + = exec rm "$imv_current_file"; close + +# Rotate the currently open image by 90 degrees + = exec mogrify -rotate 90 "$imv_current_file" diff --git a/migrations/1762802472.sh b/migrations/1762802472.sh new file mode 100644 index 00000000..95856362 --- /dev/null +++ b/migrations/1762802472.sh @@ -0,0 +1,4 @@ +echo "Update imv config with new keybindings" + +mkdir -p ~/.config/imv +cp $OMARCHY_PATH/config/imv/config ~/.config/imv/