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

Configure fzf.vim to use fzf-commit-browse() #13

Open
Notgnoshi opened this issue Feb 1, 2020 · 3 comments
Open

Configure fzf.vim to use fzf-commit-browse() #13

Notgnoshi opened this issue Feb 1, 2020 · 3 comments

Comments

@Notgnoshi
Copy link
Owner

No description provided.

@Notgnoshi
Copy link
Owner Author

This is actually going to be really hard. :Commits has the fzf incantation mostly hard-coded, and I don't know vimscript well enough to know how to override a function in the local scope...

@Notgnoshi
Copy link
Owner Author

@Notgnoshi
Copy link
Owner Author

" TODO: Make this behave like git-gl
" * No side-by-side diff
" * ctrl-y - checkout (this might be hard coded to yank?)
" * ctrl-h - copy commit hash (should it be yanked, or copied to the system clipboard, or both?)
" * ctrl-r - interactive rebase
" * ctrl-p - cherry-pick
" * enter  - open selected commit with fugitive
"
" Need to figure out how to make git-gl support multiple selections, and make
" this consistent
"
" Need to figure out how customizable fzf#vim#commits is
" * g:fzf_commits_log_options
command! -bar -bang -range=% MyBCommits  let b:fzf_winview = winsaveview() | <line1>,<line2>call fzf#vim#buffer_commits(fzf#vim#with_preview({ "placeholder": "" }), <bang>0)
command! -bar -bang -range=% MyCommits let b:fzf_winview = winsaveview() | <line1>,<line2>call fzf#vim#commits(fzf#vim#with_preview({ "options": ["--header FOO"] }), <bang>0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant