1
0
Fork 0
This commit is contained in:
Andrey Orst 2019-03-27 09:53:38 +03:00
parent ca1ccfd7a4
commit 676d321fb7
5 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ Default arguments:
" \
str fzf_bzr_command "bzr"
try %{ declare-user-mode fzf }
try %{ declare-user-mode fzf-vcs }
map global fzf-vcs -docstring "edit file from GNU Bazaar tree" 'b' '<esc>: fzf-bzr<ret>'
define-command -hidden fzf-bzr %{ evaluate-commands %sh{

View file

@ -17,7 +17,7 @@ Default arguments:
" \
str fzf_git_command "git"
try %{ declare-user-mode fzf }
try %{ declare-user-mode fzf-vcs }
map global fzf-vcs -docstring "edit file from Git tree" 'g' '<esc>: fzf-git<ret>'
define-command -override -hidden fzf-git %{ evaluate-commands %sh{

View file

@ -17,7 +17,7 @@ Default arguments:
" \
str fzf_hg_command "hg"
try %{ declare-user-mode fzf }
try %{ declare-user-mode fzf-vcs }
map global fzf-vcs -docstring "edit file from mercurial tree" 'h' '<esc>: fzf-hg<ret>'
define-command -hidden fzf-hg %{ evaluate-commands %sh{

View file

@ -17,7 +17,7 @@ Default arguments:
" \
str fzf_svn_command "svn"
try %{ declare-user-mode fzf }
try %{ declare-user-mode fzf-vcs }
map global fzf-vcs -docstring "edit file from Subversion tree" 's' '<esc>: fzf-svn<ret>'
define-command -hidden fzf-svn %{ evaluate-commands %sh{

View file

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