Skip to content

Commit 99b1d32

Browse files
committed
Add support for Kakoune extra options
1 parent 4ef2b67 commit 99b1d32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rc/rep.kak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare-option -hidden str rep_evaluate_output
22
declare-option -hidden str rep_namespace
3+
declare-option -hidden str rep_extra_options
34

45
define-command -hidden rep-find-namespace %{
56
evaluate-commands -draft %{
@@ -67,6 +68,9 @@ Switches:
6768
add_port
6869
add_file_line_and_column
6970
add_namespace "$@"
71+
if [ -n "$kak_opt_rep_extra_options" ]; then
72+
rep_command="$rep_command $kak_opt_rep_extra_options"
73+
fi
7074
rep_command="$rep_command"' -- "$kak_selection" 2>"$error_file" |sed -e "s/'"'"'/'"''"'/g")'
7175
eval "$rep_command"
7276
error=$(sed "s/'/''/g" <"$error_file")

0 commit comments

Comments
 (0)