summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-08 19:42:48 +0200
committerhut <hut@lavabit.com>2011-09-08 19:42:48 +0200
commit82e00fd6f00c0202a36be49461d7a1151633c651 (patch)
tree5a73caeaaf5dd4b358c0deadd891c730ac17aa27
parent1b0782bbe6c5922d002a21644893f303e6c34ed2 (diff)
downloadranger-82e00fd6f00c0202a36be49461d7a1151633c651.tar.gz
core.actions: throw some signals before and after executing files
-rw-r--r--ranger/core/actions.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index cb692d4c..3281964e 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -163,7 +163,11 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		elif type(files) not in (list, tuple):
 			files = [files]
 
-		return self.run(files=list(files), **kw)
+		self.signal_emit('execute.before', keywords=kw)
+		try:
+			return self.run(files=list(files), **kw)
+		finally:
+			self.signal_emit('execute.after')
 
 	# --------------------------
 	# -- Moving Around
K. Agaram <vc@akkartik.com> 2015-05-04 13:09:38 -0700 1254' href='/akkartik/mu/commit/cpp/999spaces.cc?h=main&id=82c04e61516756a65587eaceb1a6df41082573a9'>82c04e61 ^
be3fb4e1 ^


13ba3def ^


1fad5eef ^
be3fb4e1 ^
7feea75b ^


c442a5ad ^



dfdfc7e9 ^


215365d4 ^

215365d4 ^

67bc24e7 ^
215365d4 ^
dfdfc7e9 ^
215365d4 ^
808e171d ^
1ead3562 ^
5d2a486d ^
f7631430 ^
f78f1907 ^
04209f72 ^
87f1cf60 ^

f78f1907 ^
5d2a486d ^


8a70ff4d ^
215365d4 ^


215365d4 ^
5d2a486d ^
dfdfc7e9 ^
215365d4 ^
f7631430 ^
215365d4 ^
5d2a486d ^

215365d4 ^
5d2a486d ^
1ead3562 ^
5d2a486d ^
1ead3562 ^
215365d4 ^
dfdfc7e9 ^
691b529e ^












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