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 <david@hey.com>
This commit is contained in:
ctarx
2025-11-11 15:05:45 +00:00
committed by GitHub
parent bea57919b6
commit 9b849fc824
2 changed files with 16 additions and 1 deletions

View File

@@ -1,2 +1,13 @@
[binds]
<Ctrl+p> = exec lp $imv_current_file
# Print the current image file
<Ctrl+p> = exec lp "$imv_current_file"
# Delete the current image and quit the viewer
<Ctrl+x> = exec rm "$imv_current_file"; quit
# Delete the current image and move to the next one
<Ctrl+Shift+X> = exec rm "$imv_current_file"; close
# Rotate the currently open image by 90 degrees
<Ctrl+r> = exec mogrify -rotate 90 "$imv_current_file"

4
migrations/1762802472.sh Normal file
View File

@@ -0,0 +1,4 @@
echo "Update imv config with new keybindings"
mkdir -p ~/.config/imv
cp $OMARCHY_PATH/config/imv/config ~/.config/imv/