summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-01 23:10:14 +0100
committerhut <hut@lavabit.com>2010-01-01 23:10:14 +0100
commit63f22638265680d87269a3493097ee3486a3b259 (patch)
treedeb4dac194085009eeb247514b235fddff627f53 /ranger
parente3093cb0bf9f5cee15d58d59f1a7ecc0ce40e55a (diff)
downloadranger-63f22638265680d87269a3493097ee3486a3b259.tar.gz
random stuff
Diffstat (limited to 'ranger')
-rw-r--r--ranger/actions.py2
-rw-r--r--ranger/applications.py7
2 files changed, 8 insertions, 1 deletions
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: