summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/keys.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index cd1c5d07..1f4c3332 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -193,6 +193,14 @@ map('phl', fm.paste_hardlink())
 map('u<bg>', fm.hint("un*y*ank, unbook*m*ark, unselect:*v*"))
 map('ud', 'uy', fm.uncut())
 
+# ------------------------------------ changing of file permissions
+# type "+ow" for "chmod o+w %s" and so on
+from itertools import product
+for mode in product('ugoa', 'rwxXst'):
+	map('-%s%s' % mode, fm.execute_console('shell chmod %s-%s %%s' % mode))
+	map('+%s%s' % mode, fm.execute_console('shell chmod %s+%s %%s' % mode))
+	map('=%s%s' % mode, fm.execute_console('shell chmod %s+%s %%s' % mode))
+
 # ---------------------------------------------------- run programs
 map('S', fm.execute_command(os.environ['SHELL']))
 map('E', fm.edit_file())
'/akkartik/mu/commit/html/subx/examples/ex2.subx.html?h=main&id=ac07e589b3e912c704c2011d543f18b16712ff15'>ac07e589 ^
bb2b6ba7 ^

ac07e589 ^

08a0eed6 ^
14a38052 ^
ac07e589 ^
60338448 ^
ac07e589 ^
695f9bf8 ^
bb2b6ba7 ^















695f9bf8 ^
bb2b6ba7 ^















c9bda4d1 ^
bb2b6ba7 ^
ec73ed12 ^
c56d803c ^
60338448 ^
ee0e67b9 ^

c56d803c ^


bb2b6ba7 ^
a0d3cac4 ^
d1c9392a ^
695f9bf8 ^
ec73ed12 ^



a0d3cac4 ^



bb2b6ba7 ^



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