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

feature: vertical header #633

Open
adrianinsaval opened this issue Oct 6, 2024 · 7 comments
Open

feature: vertical header #633

adrianinsaval opened this issue Oct 6, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@adrianinsaval
Copy link

It would be nice if it was possible to have something similar as the -H option but vertically where the set amount of characters are ignored for selection and horizontal scrolling, a common use case would be bat's line number column

@noborus
Copy link
Owner

noborus commented Oct 7, 2024

Thank you for Issue.

I don't think it's more convenient than expected, so now it's reluctant to implement.

I think it is better not to display the row number of the bat when using the pager.
That's why I need other reasons to be used.

@noborus noborus added the enhancement New feature or request label Oct 7, 2024
@adrianinsaval
Copy link
Author

bat's line number column can also display git status not just line number so it can be useful to display it
image

@adrianinsaval
Copy link
Author

it might also make sense to allow using a delimiter regex instead of character count since the column grows if the file has >9999 lines

@noborus noborus self-assigned this Oct 9, 2024
@noborus
Copy link
Owner

noborus commented Oct 9, 2024

Good point, but I wonder if it is really that inconvenient that it only becomes invisible
when scrolling to the right without line wrapping.
Additionally, there is the drawback that the fixed-width display area on the left becomes narrower.
If we were to implement this, I believe it would be necessary to have a very easy way to toggle it on and off.

@adrianinsaval
Copy link
Author

mainly what I would want is that the column is ignored for selection and therefore copying

@romaia
Copy link

romaia commented Nov 27, 2024

Another usecase, for me, would be using hledgers reports that shows an account name and a column for each month. For instance:

image

I would like to be able to keep the account visible, while scrolling to the left/right

Another common case would be csv viewing, where the first (or even some) columns should always be visible.

For csv, I could get this behavior using pspg with | pspg --csv --csv-header on

@noborus
Copy link
Owner

noborus commented Nov 28, 2024

Another usecase, for me, would be using hledgers reports that shows an account name and a column for each month. For instance:

Thank you for your comments.
This seems like a necessary feature to display this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants