about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/data/config_examples/rc.conf39
1 files changed, 39 insertions, 0 deletions
diff --git a/ranger/data/config_examples/rc.conf b/ranger/data/config_examples/rc.conf
index e69de29b..47ffe5a8 100644
--- a/ranger/data/config_examples/rc.conf
+++ b/ranger/data/config_examples/rc.conf
@@ -0,0 +1,39 @@
+# ===================================================================
+# This file contains startup commands for ranger.
+#
+# The purpose of this file is mainly to define keybindings.  For
+# changing settings or running more complex python code, use the
+# configuration file "options.py" or define commands in "commands.py".
+#
+# Each line is a command that will be run before the user interface
+# is initialized.  As a result, you can not use commands which rely on
+# the UI such as :delete or :mark.  Lines starting with # are comments.
+# ===================================================================
+
+# common directories (this overrides some default keybindings)
+#map gt cd /tmp
+#map gc cd ~/.config
+#map gp cd /usr/portage
+
+# Unbind "q" so you don't accidentally close ranger
+#unmap q
+
+# Edit files with the lowercase "e".  By default, uppercase "E" is used.
+#copymap E e
+
+# Add a key for searching files with a given string in their name
+#map F console shell -p find . | grep -Iinr --color 
+
+# Find all files in this directory, shuffle them and view in mplayer
+#map M shell find . | shuf | xargs -d \\n mplayer -fs
+
+# Add some keys to edit configuration files
+#map ,r chain shell vim ~/.config/ranger/rc.conf; source_cmdlist ~/.config/ranger/rc.conf
+#map ,a shell vim ~/.config/ranger/apps.py
+#map ,c shell vim ~/.config/ranger/commands.py
+#map ,o shell vim ~/.config/ranger/options.py
+#map ,R shell vim %rangerdir/defaults/rc.conf
+#map ,A shell vim %rangerdir/defaults/apps.py
+#map ,C shell vim %rangerdir/defaults/commands.py
+#map ,O shell vim %rangerdir/defaults/options.py
+#map ,n shell vim %rangerdir/core/actions.py