summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorguangzhi <xugzhi1987@gmail.com>2018-03-13 20:32:12 +0800
committerguangzhi <xugzhi1987@gmail.com>2018-03-13 20:32:12 +0800
commitb84444110868a3b4be4dea89a76aa86b883f151f (patch)
treef6112e4c70bcbd9af7eca4b22831179dc771d21b /ranger
parent2b4984ecd0dccdf6fc1ddf1aa63725371e9234d2 (diff)
downloadranger-b84444110868a3b4be4dea89a76aa86b883f151f.tar.gz
Correct some formatting in fix of issue #1108.
Remove some trailing whitespaces etc.

Another note: regarding iterm2 or some other terminals on mac,
it seems to be rather different to launch a new window in mac
than in linux. Some search suggests that you need to issue

open -a terminal -n

to open a new terminal window. So that would probably involve
other changes than simply getting a correct cmdflag.
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/ext/rifle.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index f11f6f2c..0fd8046f 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -370,23 +370,22 @@ class Rifle(object):  # pylint: disable=too-many-instance-attributes
                     elif term.lower() in ['xterm', 'xterm-256color', 'urxvt',
                                           'rxvt', 'rxvt-256color',
                                           'rxvt-unicode', 'lxterminal',
-                                          'konsole', 'lilyterm', 
+                                          'konsole', 'lilyterm',
                                           'cool-retro-term']:
                         cmdflag = '-e'
                     elif term.lower() in ['gnome-terminal', ]:
                         cmdflag = '--'
                     # terminals that are found not working with -e or -x:
-                    # consider uncomment the next 2 lines 
-                    #elif term.lower() in ['pantheon-terminal', 'terminology']:
-                        #term = 'xterm'
-                        #cmdflag = '-e'
+                    # consider uncomment the next 2 lines
+                    # elif term.lower() in ['pantheon-terminal', 'terminology']:
+                    # term = 'xterm'
+                    # cmdflag = '-e'
                     # 'tilda opens with -c but doesn't go into editor. Not sure.
-                    #elif term.lower() in ['tilda', ]:
-                        #cmdflag = '-c'
+                    # elif term.lower() in ['tilda', ]:
+                    # cmdflag = '-c'
                     # terminals not tested yet:
-                    #elif term.lower() in ['st', 'stterm', 'termite', 'kitty',
-                                          #'iterm2']:
-                        #pass
+                    # elif term.lower() in ['st', 'stterm', 'termite', 'kitty']:
+                    # pass
                     else:
                         cmdflag = '-e'