prefix sk grep with fzf
This commit is contained in:
parent
98e4f0f83b
commit
2e013315e4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue