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

Show git output asynchronously #33

Open
DanielPower opened this issue Sep 18, 2020 · 2 comments
Open

Show git output asynchronously #33

DanielPower opened this issue Sep 18, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@DanielPower
Copy link

DanielPower commented Sep 18, 2020

I use githooks which automatically perform some actions when doing a git checkout. As a result, checkouts take some time. When running :G checkout with fugitive, it will open a new split, showing the output of the checkout as it's running, so I can see the progress of these actions, and know when they're finished.

With :GBranches however, vim simply becomes unresponsive until the checkout is complete, then the split will open showing all of the output.

Having this output appear in real time like it does with fugitive would be a great addition to an already very helpful plugin.

@DanielPower DanielPower changed the title Show git output in a new split Show git output asynchronously Sep 18, 2020
@stsewd
Copy link
Owner

stsewd commented Sep 20, 2020

I think this is a great idea, I may need to research a little on how to make it work with vim and neovim. In the meantime, you can use fugitive itself to do the checkout:

let g:fzf_branch_actions = {
      \ 'checkout': {
      \   'execute': 'Git checkout {branch}'
      \ },
      \}

@stsewd stsewd added the enhancement New feature or request label Sep 20, 2020
@DanielPower
Copy link
Author

I appreciate you considering this enhancement, I think it would be good to be built-in to the plugin for a better first-use experience for users.

And thank you so much for the suggestion to have Fugitive handle the checkout. That solution works perfectly for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants