summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorornicar <thibault.duplessis@gmail.com>2011-02-13 12:08:05 -0800
committerornicar <thibault.duplessis@gmail.com>2011-02-13 12:08:05 -0800
commit37c4f2d98d4f2ec33e4d2935d34b862cd7923aeb (patch)
tree9bd029073982ec9fd360994fc618d22496d4d6fb
parent540d503322c5b26910760014e29897dc3549c0f0 (diff)
downloadranger-37c4f2d98d4f2ec33e4d2935d34b862cd7923aeb.tar.gz
[vim integration] the temp file is now passed through RANGER_RETURN_FILE
-rw-r--r--ranger/defaults/apps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 1585012b..44f0684a 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -55,9 +55,9 @@ class CustomApplications(Applications):
 		"""How to determine the default application?"""
 		f = c.file
 
-		if 'INVIM' in os.environ:
-			tmp_file = gettempdir() + "/ranger-selected-file"
-			with open(tmp_file, 'w') as tmp:
+		return_file = os.getenv("RANGER_RETURN_FILE")
+		if return_file is not None:
+			with open(return_file, 'w') as tmp:
 				tmp.write(f.path)
 			raise SystemExit()
 
> 2019-11-28 17:13:04 +0100 committer Andreas Rumpf <rumpf_a@web.de> 2019-11-28 17:13:04 +0100 Cosmetic compiler cleanup (#12718)' href='/ahoang/Nim/commit/compiler/btrees.nim?h=devel&id=7e747d11c66405f08cc7c69e5afc18348663275e'>7e747d11c ^
ddc6cec69 ^

1ed7751da ^


7e747d11c ^
1ed7751da ^



7e747d11c ^
1ed7751da ^


ddc6cec69 ^
7e747d11c ^
ddc6cec69 ^

7e747d11c ^
ddc6cec69 ^

7e747d11c ^
4533e894a ^
4c46358db ^


ddc6cec69 ^












842efab8a ^


ddc6cec69 ^


4533e894a ^
4c46358db ^


ddc6cec69 ^

































ddc6cec69 ^














13e659cfe ^
9d2707960 ^






























1ed7751da ^
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179