1
0
Fork 0

prefix sk grep with fzf

This commit is contained in:
Andrey Orst 2019-03-06 16:32:18 +03:00
parent 98e4f0f83b
commit 2e013315e4

View file

@ -17,11 +17,11 @@ str fzf_sk_grep_command 'grep -RHn'
evaluate-commands %sh{
if [ -n "$(command -v sk)" ]; then
printf "%s\n" "map global fzf -docstring %{Interactive grep with skim} 'g' '<esc>: sk-interactive-grep<ret>'"
printf "%s\n" "map global fzf -docstring %{Interactive grep with skim} 'g' '<esc>: fzf-sk-interactive-grep<ret>'"
fi
}
define-command -hidden sk-interactive-grep %{ evaluate-commands %sh{
define-command -hidden fzf-sk-interactive-grep %{ evaluate-commands %sh{
if [ -z "$(command -v sk)" ]; then
printf "%s\n" "echo -markup %{{Information}skim required to run this command}"
exit