Open
Conversation
added 2 commits
August 31, 2021 15:02
store the git_log_cmd as a buffer-local variable. `b:git_log_cmd` can then be used to refresh, by passing this variable to s:fill().
work out b:git_log_cmd _after_ buffer is opened
Author
|
rebased on latest master |
somini
added a commit
to somini/gv.vim
that referenced
this pull request
Oct 17, 2021
Includes some tweaks, plus merges with the rest of the previous merges. See junegunn#96
|
I merged this with #48 on my fork (https://github.com/somini/gv.vim). This stores the command on the existing metadata dict at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In a GV buffer, hit
rto refresh the git log print out.This achieves the same goal as (#53), but uses a different implementation.
In particular:
rwill calls:refresh().s:refresh()first empties the current GV buffer, thens:fill()s it with the samegit_log_cmdgit_log_cmdis changed to be a buffer-local variable (b:), so that one can reuse the same git log command for the same buffer.The third point enables
s:refresh()to be used with multiple GV instances.In addition, other split windows (such as the diff window) are also preserved in the current tab.