use -shell-params in rc files
This commit is contained in:
parent
ae76b7dddc
commit
a37b14785f
|
@ -1,8 +1,8 @@
|
||||||
def -env-params \
|
def -shell-params \
|
||||||
-shell-completion %{ global -c ${kak_param0} } \
|
-shell-completion %{ global -c $1 } \
|
||||||
tag %{ %sh{
|
tag %{ %sh{
|
||||||
if [[ ${kak_param0} != "" ]]; then
|
if [[ $1 != "" ]]; then
|
||||||
tagname=${kak_param0}
|
tagname=$1
|
||||||
else
|
else
|
||||||
tagname=${kak_selection}
|
tagname=${kak_selection}
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
def -env-params grep %{ echo grep in progress, please wait...; %sh{
|
def -shell-params grep %{ echo grep in progress, please wait...; %sh{
|
||||||
output=$(mktemp -t kak-grep.XXXXXXXX)
|
output=$(mktemp -t kak-grep.XXXXXXXX)
|
||||||
grep -PHn $kak_param0 $kak_param1 $kak_param2 $kak_param3 $kak_param4 >& ${output} < /dev/null &
|
grep -PHn $@ >& ${output} < /dev/null &
|
||||||
echo "echo
|
echo "echo
|
||||||
try %{ db *grep* } catch %{ }
|
try %{ db *grep* } catch %{ }
|
||||||
edit -fifo ${output} *grep*
|
edit -fifo ${output} *grep*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
def -env-params make %{ echo make in progress, please wait...; %sh{
|
def -shell-params make %{ echo make in progress, please wait...; %sh{
|
||||||
output=$(mktemp -t kak-make.XXXXXXXX)
|
output=$(mktemp -t kak-make.XXXXXXXX)
|
||||||
make $kak_param0 $kak_param1 $kak_param2 $kak_param3 $kak_param4 >& ${output} < /dev/null &
|
make $@ >& ${output} < /dev/null &
|
||||||
echo "echo
|
echo "echo
|
||||||
try %{ db *make* } catch %{ }
|
try %{ db *make* } catch %{ }
|
||||||
edit -fifo ${output} *make*
|
edit -fifo ${output} *make*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user