summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/keys.py4
-rw-r--r--ranger/help/movement.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 1f42b6ee..0806a494 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -244,7 +244,9 @@ map('gh', fm.cd('~'))
 map('ge', fm.cd('/etc'))
 map('gu', fm.cd('/usr'))
 map('gd', fm.cd('/dev'))
-map('gl', fm.cd('/lib'))
+map('gl', lambda arg: arg.fm.cd(os.path.realpath(arg.fm.env.cwd.path)))
+map('gL', lambda arg: arg.fm.cd(
+		os.path.dirname(os.path.realpath(arg.fm.env.cf.path))))
 map('go', fm.cd('/opt'))
 map('gv', fm.cd('/var'))
 map('gr', 'g/', fm.cd('/'))
diff --git a/ranger/help/movement.py b/ranger/help/movement.py
index 3abec359..564b226b 100644
--- a/ranger/help/movement.py
+++ b/ranger/help/movement.py
@@ -74,6 +74,9 @@ This keys can be used to make movements beyond the current directory
 	{	traverse in the other direction. (not implemented yet,
 		currently this only moves back in history)
 
+	gl	move to the real path of the current directory (resolving symlinks)
+	gL	move to the real path of the selected file or directory
+
 
 ==============================================================================
 1.2. Browser control
Kartik Agaram <vc@akkartik.com> 2020-12-29 19:14:26 -0800 committer Kartik Agaram <vc@akkartik.com> 2020-12-29 19:14:26 -0800 7462 - SubX version of baremetal/ex2.subx' href='/akkartik/mu/commit/baremetal/ex2.subx?h=hlt&id=c5dfa89bb31bac8f03b646eaa3b5b204b854b2b9'>c5dfa89b ^
26697e64 ^








c5dfa89b ^
26697e64 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35