summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2017-04-01 22:46:31 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2017-04-01 22:46:31 +0200
commit08c4fac07fa5ef351eaf64cbeb00d7dc2c6fef42 (patch)
tree4ce2098f6aa5c4e56ab76e17790e805a4c55146e
parent055ed5ff7e49e232aa95f0821ff68671756fec38 (diff)
rc/ranger: use $kak_hook_param_capture_N
-rw-r--r--rc/extra/ranger.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/extra/ranger.kak b/rc/extra/ranger.kak
index e05bb99f..e27980a6 100644
--- a/rc/extra/ranger.kak
+++ b/rc/extra/ranger.kak
@@ -4,7 +4,7 @@
def ranger-open-on-edit-directory \
-docstring 'Start the ranger file system explorer when trying to edit a directory' %{
hook global RuntimeError "\d+:\d+: '\w+' (.*): is a directory" %{ %sh{
- directory=$(expr $kak_hook_param : "[0-9]*:[0-9]*: '[a-z]*' \\(.*\\): is a directory")
+ directory=$kak_hook_param_capture_1
echo ranger $directory
}}
}