app-shells/igr: vim -> $EDITOR

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
Vitaly Zdanevich
2024-04-11 13:54:26 +04:00
parent 0c1e5e67b5
commit 6b976b3e8d

View File

@@ -22,7 +22,7 @@ index 73a6e8c..e23082a 100755
--bind="change:reload:rg -n ${list_files:+-l} --color=always {q}" \
---bind='enter:execute:v {1}' \
---preview="[[ -n {1} ]] && $preview"
+--bind='enter:execute:echo "vim {1}:{2}" && vim {1}:{2}' \
+--bind='enter:execute:echo "$EDITOR {1}:{2}" && $EDITOR {1}:{2}' \
+--preview="[[ -n {1} ]] && $preview"
+
+ # echo to save in shell history