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

cleanups and tests on view format widths #617

Merged
merged 1 commit into from
Jun 28, 2017

Conversation

rolandwalker
Copy link
Contributor

@rolandwalker rolandwalker commented Jun 24, 2017

  • width on line-number is documented, accepted, but ignored; make it work
  • width on status is documented, accepted, but ignored; remove it
  • width on text is undocumented, accepted, but ignored; remove it
  • width on commit-title is undocumented, accepted, but ignored; remove it
  • fix: width=1 fails when column is trimmed
  • add tests for all remaining columns that support width
  • adjust main/view-split-test to match this logic

I simply removed status/text/commit-title because the intent of the design seems to be that these be rightmost and right-filling. Though it is certainly a reasonable feature to want.

Edit: view-split-test was adjusted to fit this, though neither behavior is correct. The UTF-8 logic should be capable of truncating to two visible cells 作者.

@rolandwalker rolandwalker changed the title cleanups and tests on view format widths WIP cleanups and tests on view format widths Jun 24, 2017
width on status is documented, accepted, but ignored; remove it
width on text is undocumented, accepted, but ignored; remove it
width on commit-title is undocumented, accepted, but ignored; remove it
fix: width of 1 fails when column is trimmed
add tests for all remaining columns that support width
adjust main/view-split-test to match - neither behavior is correct
@rolandwalker rolandwalker force-pushed the width-cleanups-tests branch from 5ffa68a to 795322e Compare June 24, 2017 22:00
@rolandwalker rolandwalker changed the title WIP cleanups and tests on view format widths cleanups and tests on view format widths Jun 24, 2017
@jonas
Copy link
Owner

jonas commented Jun 28, 2017

At one point I had a prototype to make "fields" right adjustable to mimic the layout of gitk. As you rightfully point out that is not supported and makes the width column setting useless in some cases.

Thanks for the fixes.

@jonas jonas merged commit d0b57e6 into jonas:master Jun 28, 2017
@rolandwalker rolandwalker deleted the width-cleanups-tests branch June 28, 2017 02:18
@jonas jonas modified the milestone: tig-2.3 Jul 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants