summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index ab97d81c..71cb5929 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -822,9 +822,12 @@ class Actions(FileManagerAware, SettingsAware):
         except:
             self.ui.browser.draw_info = []
             return
-        programs = self.rifle.list_commands([target.path], None)
-        programs = ['%s | %s' % program[0:2] for program in programs]
-        self.ui.browser.draw_info = programs
+        programs = [program for program in self.rifle.list_commands([target.path],
+                None)]
+        num_digits = len(str(len(programs)))
+        program_info = ['%s | %s' % (str(program[0]).rjust(num_digits),
+                program[1]) for program in programs]
+        self.ui.browser.draw_info = program_info
 
     def hide_console_info(self):
         self.ui.browser.draw_info = False
>^
75845d2b ^
7da71d03 ^
4b79c627 ^












7da71d03 ^








4b79c627 ^

7da71d03 ^



8f1db754 ^
7da71d03 ^
7da71d03 ^



4b79c627 ^

7da71d03 ^
4b79c627 ^
8f1db754 ^



75845d2b ^

2f5f7919 ^




75845d2b ^

7da71d03 ^






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