about 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: