Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

enhancement with section header char for locating and control options about the ruler #491

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

Open
charlie-wong wants to merge 5 commits into so-fancy:next
base: next
Choose a base branch
Loading
from charlie-wong:next

Conversation

@charlie-wong
Copy link

@charlie-wong charlie-wong commented May 24, 2024

  • add section header char, thus the section can be located
    • make diff-so-fancy works together with ov with more pertty output
    • add two options, -use-sc DIFF for customization, -N to reset/clean it
  • add options to control the ruler type
    By 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.
    • -U mark top ruler to hiding, and -u make top ruler to showing
    • -D mark bottom ruler to hiding, and -d make bottom ruler to showing
    • -X mark showing ruler to be replaced with newline
    • -x mark hiding ruler to be replaced with newline

More examples and details can be found in README.md

noborus reacted with thumbs up emoji
Copy link
Author

Usage demo with https://github.com/noborus/ov

x

# 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

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /