From aea67778ad2366b4e4171008af7b0dcd5d91f93b Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 6 Dec 2009 18:56:21 +0100 Subject: random stuff --- TODO | 13 +++++++++++++ ranger/defaults/apps.py | 9 +++++++++ ranger/gui/colorscheme.py | 1 + 3 files changed, 23 insertions(+) create mode 100644 TODO 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 -- cgit 1.4.1-2-gfad0