summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-30 02:49:28 +0200
committerhut <hut@lavabit.com>2010-04-30 02:49:28 +0200
commitd9c06cf4b542d321d99ce1c8135417fa845d357b (patch)
tree504381c0a081fdbdccb2221e52b402c06d6b42a5 /ranger
parent5db3ddf07ac34bd9e5f5ebf6c4229b4854e7d76f (diff)
downloadranger-d9c06cf4b542d321d99ce1c8135417fa845d357b.tar.gz
defaults.keys: implement I key
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/keys.py5
-rw-r--r--ranger/help/movement.py1
2 files changed, 5 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index c7e4ec08..a6d7eea6 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -218,6 +218,11 @@ def append_to_filename(arg):
 	command = 'rename ' + arg.fm.env.cf.basename
 	arg.fm.open_console(cmode.COMMAND, command)
 
+@map("I")
+def insert_before_filename(arg):
+	append_to_filename(arg)
+	arg.fm.ui.console.move(right=len('rename '), absolute=True)
+
 map('cw', fm.open_console(cmode.COMMAND, 'rename '))
 map('cd', fm.open_console(cmode.COMMAND, 'cd '))
 map('f', fm.open_console(cmode.COMMAND_QUICK, 'find '))
diff --git a/ranger/help/movement.py b/ranger/help/movement.py
index 82a13dc6..8a4c155a 100644
--- a/ranger/help/movement.py
+++ b/ranger/help/movement.py
@@ -192,7 +192,6 @@ Clicking into the preview window will usually run the file. |2?|
 	cw	Open the console with ":rename "
 	A	Open the console with ":rename <current filename>"
 	I	Same as A, put the cursor at the beginning of the filename
-		(not yet implemented)
 
 
 ==============================================================================
t; 2016-05-08 18:56:32 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-05-08 19:04:30 -0700 2941 - split Travis CI into multiple jobs' href='/akkartik/mu/commit/test_layers?h=main&id=1baa04dbd4c77d18b906fd185c762f613b36baa0'>1baa04db ^
eb917331 ^
4ba60f35 ^
1baa04db ^
9531333e ^
7e977235 ^
d822d111 ^
3cc643be ^
d822d111 ^


1baa04db ^

3cc643be ^
d9ee2076 ^
7e977235 ^
4ba60f35 ^
eb917331 ^
1baa04db ^

3cc643be ^
1baa04db ^

3cc643be ^

1baa04db ^
3cc643be ^





1baa04db ^
3cc643be ^
61c021fd ^
3cc643be ^





61c021fd ^
3cc643be ^
61c021fd ^
3cc643be ^





61c021fd ^
3cc643be ^
61c021fd ^
3cc643be ^



445bc53e ^

61c021fd ^
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88