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

Add single character argument for --wrap never #2239

Closed
jguhlin opened this issue Jul 7, 2022 · 4 comments
Closed

Add single character argument for --wrap never #2239

jguhlin opened this issue Jul 7, 2022 · 4 comments
Labels
feature-request New feature or request good first issue Good for newcomers

Comments

@jguhlin
Copy link

jguhlin commented Jul 7, 2022

I primarily use less -S to view everything due to long lines (bioinformatics, mostly). Bat is incredibly fast, but I'd appreciate a single character argument to substitute for --wrap never (such as -S to match less functionality, or something else).

Cheers

@jguhlin jguhlin added the feature-request New feature or request label Jul 7, 2022
@sharkdp
Copy link
Owner

sharkdp commented Sep 6, 2022

I'm usually careful when providing new short flags, but this seems reasonable, given that it would be in line with lesss -S option. Maybe should also support --chop-long-lines, which is the long-form of -S.

@sharkdp sharkdp added the good first issue Good for newcomers label Sep 6, 2022
@johnmatthiggins
Copy link
Contributor

johnmatthiggins commented Sep 9, 2022

I would like to work on this one. What should the single letter abbreviation be for setting wrapping to off? Should it be implemented with -S or would a different letter work better?

@sharkdp
Copy link
Owner

sharkdp commented Sep 11, 2022

-S seems good.

@johnmatthiggins
Copy link
Contributor

Sounds good. I made a pull request (#2309) for adding -S and the --chop-long-lines option.

@sharkdp sharkdp closed this as completed Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants