Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-open (Enter), checkout/switch to commit/branch (C-C), toogle preview (C-P) #60

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

juanMarinero
Copy link

  • README.md not to be pulled (commit a25fd95)

  • Vim-open , i.e. :Gedit, pressing Enter works fine

  • toogle preview (Ctrl-P) in commits (Ctrl+G Ctrl+H) works fine

  • checkout/switch to commit/branch (Ctrl-C) is very workarounded concerning shortcuts. Because terminal prompt does not update (showing new HEAD commit hash or branch) as soon as fzf-git.sh exists, i.e. when pressed Ctrl-C (C stands for checkout)
    ...thus added code to Define a new widget that chains the two widgets together in commit 46d8392.

I will try to make cleaner code and commit msgs in future. Always learning! Thanks for your repo and time Junegunn!

TODO: workarounded to be simplified or
ctrl-y/z to overwrie ctrl-c
TODO: workarounded to be simplified
If $(__fzf_git_pager) is delta and preview window is screen-width
E.g. set horizontal preview in _fzf_git_hashes() to:
--preview-window down,border-top,80% \
Then fzf-preview has no proper width, see:
dandavison/delta#368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant