From: Andre Ramnitz Date: Fri, 22 Dec 2023 12:19:23 +0000 (+0100) Subject: ranger: add archives plugin X-Git-Tag: v0.2~292 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=11de28cbbc9871d94917cffc8a387e002408f960;p=dotfiles.git ranger: add archives plugin --- diff --git a/.gitmodules b/.gitmodules index cf4f0e80..0921663d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -54,3 +54,7 @@ path = config/foot/base16 url = https://github.com/tinted-theming/base16-foot branch = main +[submodule "config/ranger/plugins/ranger-archives.git"] + path = config/ranger/plugins/ranger-archives + url = https://github.com/maximtrp/ranger-archives + branch = master diff --git a/config/ranger/plugins/__init__.py b/config/ranger/plugins/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/config/ranger/plugins/ranger-archives b/config/ranger/plugins/ranger-archives new file mode 160000 index 00000000..62783ddb --- /dev/null +++ b/config/ranger/plugins/ranger-archives @@ -0,0 +1 @@ +Subproject commit 62783ddb84c8fd25eba1be1607d3a47e8efe8b31 diff --git a/config/ranger/rc.conf b/config/ranger/rc.conf index cd838797..5aa38699 100644 --- a/config/ranger/rc.conf +++ b/config/ranger/rc.conf @@ -763,3 +763,6 @@ tmap eval -q fm.ui.taskview.task_remove() tmap redraw_window tmap taskview_close copytmap q Q w + +map ex extract +map ec compress diff --git a/config/ranger/rifle.conf b/config/ranger/rifle.conf new file mode 100644 index 00000000..9178c89f --- /dev/null +++ b/config/ranger/rifle.conf @@ -0,0 +1,301 @@ +# 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 | A graphical environment is available (darwin, Xorg, or Wayland) +# +# There are also pseudo-conditions which have a "side effect": +# flag | Change how the program is run. See below. +# label