diff options
-rw-r--r-- | ranger/defaults/keys.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index 1f4c3332..44d5c0d9 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -201,6 +201,15 @@ 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)) +# hints: +template = '%s %s to *r*ead, *w*rite, e*x*ecute' +for who, name in zip('ugoa', ('user', 'group', 'others', 'all')): + map('-%s<bg>' % who, fm.hint(template % ('forbid', name))) + map('+%s<bg>' % who, fm.hint(template % ('allow', name))) + map('=%s<bg>' % who, fm.hint(template % ('allow', name))) +map('-<bg>', '+<bg>', '=<bg>', fm.hint('change permission for *u*ser, ' + '*g*roup, *o*thers, *a*ll')) + # ---------------------------------------------------- run programs map('S', fm.execute_command(os.environ['SHELL'])) map('E', fm.edit_file()) |