From 08c4fac07fa5ef351eaf64cbeb00d7dc2c6fef42 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Sat, 1 Apr 2017 22:46:31 +0200 Subject: [PATCH] rc/ranger: use $kak_hook_param_capture_N --- rc/extra/ranger.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }} }