commit d0b4c828c3150a834dbdfb018a93dcd8de6220f0
parent 0fc6dd050b640f387eef0be9000cf5f9fa1570b6
Author: AndrewLockVI <andrew@laack.co>
Date: Mon, 17 Feb 2025 14:27:57 -0600
Updated keymaps
Diffstat:
3 files changed, 38 insertions(+), 7 deletions(-)
diff --git a/KEYMAPS.md b/KEYMAPS.md
@@ -1,5 +1,15 @@
This is a document where I will keep track of keymaps that I don't want to forget, but probably would if not written down.
+# Ranger
+
+v - enter visual selection mode
+uv - unselect visual selections
+yy - yank
+ya - add yank
+uy - undo yanks
+<space> - select one
+
+
# QUTE BROWSER:
ms - go into hint mode and the selected hint will be opened with mpv
@@ -25,8 +35,6 @@ mod+shift+m - switch screens
mod+shift+down - move window down (actually up but feels down)
mod+shitf+up - move window up (actually down but feels up)
-mod+shift+n - this moves the focused window to tag n
-
mod+shift+q - kill focused window
====== MOD+NUM ======
@@ -35,6 +43,12 @@ Tag switching
Mod+n - this switches to tag n
+====== MOD+SHIFT+NUM ======
+
+Tag switching windows
+
+Mod+Shift+n - this switches the current window to tag n
+
====== MOD+CHAR ======
Open dmenu to do something.
@@ -45,8 +59,21 @@ Mod+t - tmux session
Mod+s - search (qute)
Mod+z - zathura (open pdf in contained in ~)
Mod+m - play music (prespecified directory)
+Mod+r - allow user specification or directory to open ranger in
====== MOD+ARROW ======
-There are only two arrows in use (up + down)
-and they are used to navigate the stack
+Up - select window above current on stack
+Down - select window below current on stack
+Left - Decrease master size
+Right - Increase master size
+
+====== MOD+SHIFT+ARROW ======
+
+This is for moving windows around.
+
+Mod+Shift+Down - Switch focused with one below it
+Mod+Shift+Up - Switch focused with one above it
+
+Mod+Shift+Left - Send focused to screen on left
+Mod+Shift+Right - Send focused to screen on right
diff --git a/ranger/rc.conf b/ranger/rc.conf
@@ -393,10 +393,9 @@ map t tag_toggle
map ut tag_remove
map "<any> tag_toggle tag=%any
map <Space> mark_files toggle=True
-map V mark_files all=True toggle=True
-map uV mark_files all=True val=False
map v toggle_visual_mode
-map uv toggle_visual_mode reverse=True
+map us mark_files all=True val=False
+map V console shell vim%space
# For the nostalgics: Midnight Commander bindings
map <F1> help
diff --git a/ranger/rifle.conf b/ranger/rifle.conf
@@ -282,6 +282,11 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
label open, has xdg-open = xdg-open "$@"
label open, has open = open -- "$@"
+# this allows for us to play a playlist using mpv by pressing 'r' and then selecting
+# the playlist. This is better then using a shell because it runs in a new process
+label open, has mpv, X, flag f = mpv -- "$@"
+label open, has mpv, X, flag f = mpv --shuffle -- "$@"
+
# Define the editor for non-text files + pager as last action
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|rs|js|sh|php|dart|nim = ask
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|rs|js|sh|php|dart|nim = ${VISUAL:-$EDITOR} -- "$@"