From 987d618504ead0a099160c14855d8181500f3463 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 4 Dec 2014 00:36:16 +0100 Subject: config/commands.py: in :paper, properly fill in the console lines --- ranger/config/commands.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 1685898b..8145aadd 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1308,7 +1308,12 @@ class paper(Command): self._paper_fill_console(key) def _paper_fill_console(self, key): - text = "paper_%s %s" % (key, "foo") + paperinfo = self.fm.papermanager.get_paper_info(self.fm.thisfile.path) + if key in paperinfo and paperinfo[key]: + existing_value = paperinfo[key] + else: + existing_value = "" + text = "paper_%s %s" % (key, existing_value) self.fm.open_console(text, position=len(text)) -- cgit 1.4.1-2-gfad0 ch'/> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/mu.vim
blob: 9206d27ca2edae838ac64aa793993b102b1fe7d7 (plain) (blame)
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