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