Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
prefix sk grep with fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyorst committed Mar 6, 2019
1 parent 98e4f0f commit 2e01331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rc/fzf-modules/sk-grep.kak
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e01331

Please sign in to comment.