You must install go >= v1.13
beforehand.
$ go get -u github.com/at-ishikawa/git-fzf/cmd/git-fzf
- diff: See the list of updated files and diff for each file
- log: See commit history and the details on each commit
- stash: See the list of stash and the details on each stash
> git fzf diff --help
git diff with fzf
Usage:
git-fzf diff [<commit>[..<commit>]] [-- <git options>] [flags]
Flags:
-h, --help help for diff
Global Flags:
-q, --query string Start the fzf with this query
> git fzf log --help
git log with fzf
Usage:
git-fzf log [<commit>[..<commit>]] [-- <git options>] [flags]
Flags:
-h, --help help for log
Global Flags:
-q, --query string Start the fzf with this query
> git fzf stash --help
git stash list with fzf
Usage:
git-fzf stash [-- <git options>] [flags]
Flags:
-h, --help help for stash
Global Flags:
-q, --query string Start the fzf with this query
- go (version 1.13)
- git
- fzf
GIT_FZF_FZF_BIND_OPTION
- The bind option for fzf
- Default:
ctrl-k:kill-line,ctrl-alt-t:toggle-preview,ctrl-alt-n:preview-down,ctrl-alt-p:preview-up,ctrl-alt-v:preview-page-down
GIT_FZF_FZF_OPTION
- The entire option for fzf. This option may use
GIT_FZF_FZF_BIND_OPTION
environment variable. - Default:
--multi --ansi --inline-info --layout reverse --preview '$GIT_FZF_FZF_PREVIEW_OPTION' --preview-window down:70% --bind $GIT_FZF_FZF_BIND_OPTION
$GIT_FZF_FZF_PREVIEW_OPTION
is replaced with preview command. This cannot be injected by environment variableGIT_FZF_FZF_PREVIEW_OPTION
.
- The entire option for fzf. This option may use