Skip to content

Commit 9b849fc

Browse files
ctarxdhh
andauthored
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 <[email protected]>
1 parent bea5791 commit 9b849fc

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

config/imv/config

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
[binds]
2-
<Ctrl+p> = exec lp $imv_current_file
2+
3+
# Print the current image file
4+
<Ctrl+p> = exec lp "$imv_current_file"
5+
6+
# Delete the current image and quit the viewer
7+
<Ctrl+x> = exec rm "$imv_current_file"; quit
8+
9+
# Delete the current image and move to the next one
10+
<Ctrl+Shift+X> = exec rm "$imv_current_file"; close
11+
12+
# Rotate the currently open image by 90 degrees
13+
<Ctrl+r> = exec mogrify -rotate 90 "$imv_current_file"

migrations/1762802472.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Update imv config with new keybindings"
2+
3+
mkdir -p ~/.config/imv
4+
cp $OMARCHY_PATH/config/imv/config ~/.config/imv/

0 commit comments

Comments
 (0)