https://github.com/at-ishikawa/git-fzf
Git plugin with fzf
https://github.com/at-ishikawa/git-fzf
fzf git git-fzf git-plugin
Last synced: 2 months ago
JSON representation
Git plugin with fzf
- Host: GitHub
- URL: https://github.com/at-ishikawa/git-fzf
- Owner: at-ishikawa
- License: mit
- Created: 2019-12-14T21:07:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T06:34:19.000Z (over 5 years ago)
- Last Synced: 2024-06-20T06:22:42.825Z (almost 2 years ago)
- Topics: fzf, git, git-fzf, git-plugin
- Language: Go
- Size: 3.03 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git fzf plugin
[](https://github.com/at-ishikawa/git-fzf/blob/master/LICENSE)
[](https://github.com/at-ishikawa/git-fzf)

## Install
You must install `go >= v1.13` beforehand.
```shell script
$ go get -u github.com/at-ishikawa/git-fzf/cmd/git-fzf
```
## Sub commands
* 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
#### Usage
```shell script
> git fzf diff --help
git diff with fzf
Usage:
git-fzf diff [[..]] [-- ] [flags]
Flags:
-h, --help help for diff
Global Flags:
-q, --query string Start the fzf with this query
```
### git fzf log
#### Usage
```shell script
> git fzf log --help
git log with fzf
Usage:
git-fzf log [[..]] [-- ] [flags]
Flags:
-h, --help help for log
Global Flags:
-q, --query string Start the fzf with this query
```
### git fzf stash
#### Usage
```shell script
> git fzf stash --help
git stash list with fzf
Usage:
git-fzf stash [-- ] [flags]
Flags:
-h, --help help for stash
Global Flags:
-q, --query string Start the fzf with this query
```
## Requirements
* go (version 1.13)
* git
* fzf
## Environment variables
* `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 variable `GIT_FZF_FZF_PREVIEW_OPTION`.