mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-30 13:43:41 +03:00
grep.kak: use perl regex syntax and quote parameters
This commit is contained in:
parent
c1fcc593a1
commit
4b93a90047
@ -1,6 +1,6 @@
|
||||
def -env-params grep %{ echo grep in progress, please wait...; %sh{
|
||||
output=$(mktemp -t kak-grep.XXXXXXXX)
|
||||
grep -Hn $kak_param0 $kak_param1 $kak_param2 $kak_param3 $kak_param4 >& ${output}
|
||||
grep -PHn "$kak_param0" "$kak_param1" "$kak_param2" "$kak_param3" "$kak_param4" >& ${output}
|
||||
echo "echo
|
||||
try %{ db *grep* } catch %{ }
|
||||
edit -scratch *grep*
|
||||
|
Loading…
Reference in New Issue
Block a user