From 18687ff70e6a5c443b6b1e85a5a62815ecdab548 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Wed, 15 Nov 2023 08:26:25 +0100 Subject: [PATCH] Add ranger alias for codium --- .config/ranger/rc.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index 403c86c..a040dc8 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -1,3 +1,6 @@ # Stop playback, clear the library and add the selection to the library and start playback map xd delete %f map xc shell cmus-remote -C "set shuffle=false"; cmus-remote --stop --clear --library && cmus-remote --library --play %s + +# Start Codium in the current directory, fall back to VIM +map e shell command -v code && code %f || codium %f || ${EDITOR} .