summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--TODO13
-rw-r--r--ranger/defaults/apps.py9
-rw-r--r--ranger/gui/colorscheme.py1
3 files changed, 23 insertions, 0 deletions
diff --git a/TODO b/TODO
new file mode 100644
index 00000000..44ebe6e9
--- /dev/null
+++ b/TODO
@@ -0,0 +1,13 @@
+Console
+
+   ( ) #0   09/12/06  console commands
+   ( ) #1   09/12/06  quick find
+   ( ) #2   09/12/06  open with
+   ( ) #3   09/12/06  MVC for widgets
+   ( ) #4   09/12/06  history for console
+
+
+General
+
+   ( ) #5   09/12/06  move code from fm into objects
+   ( ) #6   09/12/06  move main to fm
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 041b85c8..23b95537 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -47,6 +47,15 @@ class CustomApplications(SuperClass):
 			return run('mplayer', '-fs', *kw['files'], **kw)
 
 	def app_feh(self, **kw):
+		if kw['files']:
+			if kw['mode'] == 1:
+				return run('feh', '--bg-scale', kw['files'][0], **kw)
+			if kw['mode'] == 2:
+				return run('feh', '--bg-tile', kw['files'][0], **kw)
+			if kw['mode'] == 3:
+				return run('feh', '--bg-center', kw['files'][0], **kw)
+			if kw['mode'] == 4:
+				return run('gimp', *kw['files'], **kw)
 		return run('feh', *kw['files'], **kw)
 
 	def app_aunpack(self, **kw):
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index 3e28106b..6f3ef01f 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -43,6 +43,7 @@ class ColorScheme(object):
 			for key in CONTEXT_KEYS:
 				context[key] = (key in keys)
 
+			# add custom error messages for broken colorschemes
 			color = self.use(context)
 			self.cache[keys] = color
 			return color