-
Notifications
You must be signed in to change notification settings - Fork 416
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
FR: Add pad_center
template function
#5066
Labels
Comments
Or perhaps allow multiple templates and pad between them? |
Then we would have: |
steadmon
added a commit
to steadmon/jj
that referenced
this issue
Jan 31, 2025
Add a new pad_center function that centers content within a minimum width. If an odd number of fill characters is required, the trailing fill will be one character longer than the leading fill. Fixes jj-vcs#5066.
4 tasks
steadmon
added a commit
to steadmon/jj
that referenced
this issue
Feb 3, 2025
Add a new pad_center function that centers content within a minimum width. If an odd number of fill characters is required, the trailing fill will be one character longer than the leading fill. Fixes jj-vcs#5066.
steadmon
added a commit
to steadmon/jj
that referenced
this issue
Feb 3, 2025
Add a new pad_center function that centers content within a minimum width. If an odd number of fill characters is required, the trailing fill will be one character longer than the leading fill. Fixes jj-vcs#5066.
github-merge-queue bot
pushed a commit
that referenced
this issue
Feb 4, 2025
Add a new pad_center function that centers content within a minimum width. If an odd number of fill characters is required, the trailing fill will be one character longer than the leading fill. Fixes #5066.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Similar to the other issue I recently raised, I'm currently working through the surface-level features of
jj
to see if I can bring things in line with my git setup.It does not seem possible to align text to the center of a column in the log output at the moment. Git has support for this via:
ref: https://git-scm.com/docs/pretty-formats
Describe the solution you'd like
It would be nice to have a
pad_center
function, similar topad_start
andpad_end
that middle-aligned text.Describe alternatives you've considered
I'm not sure if there are any alternatives.
The text was updated successfully, but these errors were encountered: