summary refs log tree commit diff stats
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
parente3093cb0bf9f5cee15d58d59f1a7ecc0ce40e55a (diff)
downloadranger-63f22638265680d87269a3493097ee3486a3b259.tar.gz
random stuff
-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:
n10' href='#n10'>10 11 12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32