summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--ranger/actions.py2
-rw-r--r--ranger/applications.py7
3 files changed, 9 insertions, 1 deletions
diff --git a/TODO b/TODO
index e7516f8a..9115fc90 100644
--- a/TODO
+++ b/TODO
@@ -20,6 +20,7 @@ General
    (X) #14  09/12/29  make filelists inherit from pagers
    (X) #15  09/12/29  better way of running processes!!~
    (X) #16  10/01/01  list of bookmarks
+   ( ) #21  10/01/01  write help!
 
 
 Bugs
diff --git a/ranger/actions.py b/ranger/actions.py
index a4b90647..0d8472cd 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -335,6 +335,8 @@ class Actions(EnvironmentAware, SettingsAware):
 
 		if hasattr(self.ui, 'redraw_main_column'):
 			self.ui.redraw_main_column()
+		if hasattr(self.ui, 'status'):
+			self.ui.status.need_redraw = True
 
 	# ------------------------------------ filesystem operations
 
diff --git a/ranger/applications.py b/ranger/applications.py
index c10df6f8..37358e12 100644
--- a/ranger/applications.py
+++ b/ranger/applications.py
@@ -8,7 +8,8 @@ ALLOWED_FLAGS = 'sdpSDP'
 
 class Applications(object):
 	"""
-	This class contains definitions on how to run programs.
+	This class contains definitions on how to run programs and should
+	be extended in ranger.defaults.apps
 
 	The user can decide what program to run, and if he uses eg. 'vim', the
 	function app_vim() will be called.  However, usually the user
@@ -40,6 +41,10 @@ class Applications(object):
 		return ('vim', ) + tuple(context)
 	"""
 
+	def app_self(self, context):
+		"""Run the file itself"""
+		return "./" + context.file.basename
+
 	def get(self, app):
 		"""Looks for an application, returns app_default if it doesn't exist"""
 		try:
href='#n35'>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