From f3a7a1ba0e3edd70c2f8a81c4c99ff3eb7172dd7 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 20 Apr 2017 18:08:08 +0530 Subject: [PATCH] ranger: Remove config --- .config/ranger/rc.conf | 117 -------------------- .config/ranger/rifle.conf | 219 -------------------------------------- 2 files changed, 336 deletions(-) delete mode 100644 .config/ranger/rc.conf delete mode 100644 .config/ranger/rifle.conf diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf deleted file mode 100644 index e97a9a73..00000000 --- a/.config/ranger/rc.conf +++ /dev/null @@ -1,117 +0,0 @@ -# =================================================================== -# This file contains the default startup commands for ranger. -# To change them, it is recommended to create the file -# ~/.config/ranger/rc.conf and add your custom commands there. -# -# If you copy this whole file there, you may want to set the environment -# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice. -# -# The purpose of this file is mainly to define keybindings and settings. -# For running more complex python code, please create a plugin in "plugins/" or -# a command 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. -# =================================================================== - -# =================================================================== -# == Options -# =================================================================== - -# Which files should be hidden? (regular expression) -set hidden_filter ^\. - -# Preview images in full color with the external command "w3mimgpreview"? -# This requires the console web browser "w3m" and a supported terminal. -# It has been successfully tested with "xterm" and "urxvt" without tmux. -set preview_images true - -# Display the directory name in tabs? -set dirname_in_tabs true - -# Enable the mouse support? -set mouse_enabled false - -# How many directory-changes or console-commands should be kept in history? -set max_history_size 20 -set max_console_history_size 50 - -# Try to keep so much space between the top/bottom border when scrolling: -set scroll_offset 8 - -# Flush the input after each key hit? (Noticable when ranger lags) -set flushinput true - -# Padding on the right when there's no preview? -# This allows you to click into the space to run the file. -set padding_right true - -# Save bookmarks (used with mX and `X) instantly? -# This helps to synchronize bookmarks between multiple ranger -# instances but leads to *slight* performance loss. -# When false, bookmarks are saved when ranger is exited. -set autosave_bookmarks false - -# One of: size, basename, mtime, type -set sort natural - -# Additional sorting options -set sort_reverse false -set sort_case_insensitive true -set sort_directories_first true -set sort_unicode false - -# Enable this if key combinations with the Alt Key don't work for you. -# (Especially on xterm) -set xterm_alt_key false - -# =================================================================== -# == Define keys for the browser -# =================================================================== - -# Basic -map ! console shell -w%space - -# For the nostalgics: Midnight Commander bindings -map bulkrename -map shell -w file %s -map console touch%space -map console mkcd%space - - -# =================================================================== -# == Overrides -# =================================================================== -map A rename_append - -# =================================================================== -# == Personal shorcuts -# =================================================================== - -## Prevent accidental exit when using programs that also uses this key to quit. -unmap q -map Q quit - -map zi set preview_images=True -map zI set preview_images=False - -## Move to trash (without Trash-CLI) -# map DD shell mv -t ~/.local/share/Trash/files %s -## Move to trash (with Trash-CLI) -map DD shell trash-put -- %s - -## Video -## Note that latin1 for mplayer/mpv is actually cp1252. -map ev console shell mpv "%f" --sub-file "%s" -map eV console shell mpv "%f" --sub-file "%s" --subcp latin1 - -## Audio -map ea shell cmus-remote -P %s - -## Quick moves -map K move up=5 -map J move down=5 - -## New tab in current folder. Use 'gn' for tab in home folder. -map eval fm.tab_new('%d') diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf deleted file mode 100644 index 38b9a0e5..00000000 --- a/.config/ranger/rifle.conf +++ /dev/null @@ -1,219 +0,0 @@ -# vim: ft=cfg -# -# This is the configuration file of "rifle", ranger's file executor/opener. -# Each line consists of conditions and a command. For each line the conditions -# are checked and if they are met, the respective command is run. -# -# Syntax: -# , , ... = command -# -# The command can contain these environment variables: -# $1-$9 | The n-th selected file -# $@ | All selected files -# -# If you use the special command "ask", rifle will ask you what program to run. -# -# Prefixing a condition with "!" will negate its result. -# These conditions are currently supported: -# match | The regexp matches $1 -# ext | The regexp matches the extension of $1 -# mime | The regexp matches the mime type of $1 -# name | The regexp matches the basename of $1 -# path | The regexp matches the absolute path of $1 -# has | The program is installed (i.e. located in $PATH) -# env | The environment variable "variable" is non-empty -# file | $1 is a file -# directory | $1 is a directory -# number | change the number of this command to n -# terminal | stdin, stderr and stdout are connected to a terminal -# X | $DISPLAY is not empty (i.e. Xorg runs) -# -# There are also pseudo-conditions which have a "side effect": -# flag | Change how the program is run. See below. -# label