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

Command line switch --autowidth #140

Open
pjvandehaar opened this issue Nov 30, 2016 · 1 comment
Open

Command line switch --autowidth #140

pjvandehaar opened this issue Nov 30, 2016 · 1 comment

Comments

@pjvandehaar
Copy link

pjvandehaar commented Nov 30, 2016

Normally, when I tabview a file,

  1. I hit c for max column widths.
  2. If those exceed the screen width, I hit c again for mode column widths.
  3. Until the screen width is fully used, I hit . on columns where mode-width doesn't equal max-width (that is, where there's more to show).
  4. Until the screen width is fully used (but at most 5 times), I hit + to increase gutter width.

(okay, so I'm too lazy to actually do all of that, but that's what I would like to do.)

I want a commandline switch to automate that, and then I'll just do alias tabview="tabview --autowidth" in my .bashrc.

(Actually, why do you use mode instead of median? Median seems better to me. If tabview used median, then instead of .ing columns in round-robin order, it could just iteratively increase from 50%ile width (ie, median) to 100%ile width (ie, max), stopping when the screen width is fully used.)

@pjvandehaar pjvandehaar changed the title Command line switch (or arg) --autowidth Command line switch --autowidth Nov 30, 2016
@firecat53
Copy link
Collaborator

Sorry for delay. After closing #142, I came back and looked at this request. That might fulfill @cirosantilli's request as well.

The rationale for using mode was explained in #5.

I'll poke at it given some time....

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

No branches or pull requests

2 participants