enhancement with section header char for locating and control options about the ruler#491
Open
charlie-wong wants to merge 5 commits intoso-fancy:nextfrom
Open
enhancement with section header char for locating and control options about the ruler#491charlie-wong wants to merge 5 commits intoso-fancy:nextfrom
charlie-wong wants to merge 5 commits intoso-fancy:nextfrom
Conversation
- new args control ruler to be dash or newline - new args control ruler to show or completely hide
Author
|
Usage demo with https://github.com/noborus/ov # The git configuration to use with this demo
[pager]
show = "diff-so-fancy | ov -F --header 3"
log = "ov -F --section-delimiter '^commit' --section-header-num 3"
diff = "diff-so-fancy | ov -F --section-delimiter '^◯' --section-header-num 1"
[color "diff"]
context = 243 # gray
meta = yellow bold
commit = yellow bold
frag = 205 reverse # pink
func = cyan reverse
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = blue reverse
newNormal = green bold
newHighlight = blue reverse
|
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.

diff-so-fancyworks together with ov with more pertty output-use-scDIFF for customization,-Nto reset/clean itBy default, top/bottom ruler is showing with unicode line-drawing chars.
And if a ruler is marked to hiding, by default it will be replaced by newline.
-Umark top ruler to hiding, and-umake top ruler to showing-Dmark bottom ruler to hiding, and-dmake bottom ruler to showing-Xmark showing ruler to be replaced with newline-xmark hiding ruler to be replaced with newlineMore examples and details can be found in README.md