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:
'n179' href='#n179'>179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362