From f65e74eb9828969c01fff68f0a808931bc4399bb Mon Sep 17 00:00:00 2001 From: toonn Date: Wed, 31 Jan 2018 22:55:45 +0100 Subject: Update bindings for media directories Because of `udisks2` `/run/media/$USER` is becoming a common directory for automounting, this adds a keybinding to go there (using the first available letter in the path). Similarly the binding for `/media` now points to `/media/$USER`, because for example ubuntu adopted this new location. I believe the `$USER` parts have to do with security, giving only the user that mounted a filesystem access to it. --- ranger/config/rc.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf index 38e6f11e..5eaeae89 100644 --- a/ranger/config/rc.conf +++ b/ranger/config/rc.conf @@ -384,7 +384,8 @@ map gl cd -r . map gL cd -r %f map go cd /opt map gv cd /var -map gm cd /media +map gm eval fm.cd('/media/' + os.getenv('USER')) +map gi eval fm.cd('/run/media/' + os.getenv('USER')) map gM cd /mnt map gs cd /srv map gt cd /tmp -- cgit 1.4.1-2-gfad0