summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-10 03:41:39 +0100
committerhut <hut@lavabit.com>2013-02-10 03:41:39 +0100
commit2fc163162cb450e78a7b5f557da27eb8dc778141 (patch)
tree50157d53f887c99df304b2ccfd2ed0162cfb96f0 /examples
parent184e84284d2f4e48631a4b94b87ba76126470206 (diff)
parent1a0e0a663b6b67f7e644b89ade63fb285740b6a4 (diff)
downloadranger-2fc163162cb450e78a7b5f557da27eb8dc778141.tar.gz
Merge branch 'spaces'
Diffstat (limited to 'examples')
-rw-r--r--examples/plugin_chmod_keybindings.py14
-rw-r--r--examples/vim_file_chooser.vim2
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/plugin_chmod_keybindings.py b/examples/plugin_chmod_keybindings.py
index 62ca6c58..9c9a0982 100644
--- a/examples/plugin_chmod_keybindings.py
+++ b/examples/plugin_chmod_keybindings.py
@@ -6,13 +6,13 @@ import ranger.api
 old_hook_init = ranger.api.hook_init
 
 def hook_init(fm):
-	old_hook_init(fm)
+    old_hook_init(fm)
 
-	# Generate key bindings for the chmod command
-	command = "map {0}{1}{2} shell -d chmod {1}{0}{2} %s"
-	for	mode in list('ugoa') + '':
-		for	perm in "rwxXst":
-			fm.execute_console(command.format('-', mode, perm))
-			fm.execute_console(command.format('+', mode, perm))
+    # Generate key bindings for the chmod command
+    command = "map {0}{1}{2} shell -d chmod {1}{0}{2} %s"
+    for mode in list('ugoa') + '':
+        for perm in "rwxXst":
+            fm.execute_console(command.format('-', mode, perm))
+            fm.execute_console(command.format('+', mode, perm))
 
 ranger.api.hook_init = hook_init
diff --git a/examples/vim_file_chooser.vim b/examples/vim_file_chooser.vim
index a44ab2b7..df3f50e5 100644
--- a/examples/vim_file_chooser.vim
+++ b/examples/vim_file_chooser.vim
@@ -1,5 +1,5 @@
 " Add ranger as a file chooser in vim
-" 
+"
 " If you add this function and the key binding to the .vimrc, ranger can be
 " started using the keybinding ",r".  Once you select a file by pressing
 " enter, ranger will quit again and vim will open the selected file.