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 option to disable line numbers #5

Closed
sharkdp opened this issue Apr 21, 2018 · 9 comments · Fixed by #43 or #53
Closed

Add option to disable line numbers #5

sharkdp opened this issue Apr 21, 2018 · 9 comments · Fixed by #43 or #53
Labels
feature-request New feature or request good first issue Good for newcomers

Comments

@sharkdp
Copy link
Owner

sharkdp commented Apr 21, 2018

... and Git modification-markers.

@sharkdp sharkdp added feature-request New feature or request good first issue Good for newcomers labels May 1, 2018
@Ape
Copy link

Ape commented May 1, 2018

And the filename title

@ghost
Copy link

ghost commented May 2, 2018

I'd like to take this :)

@ghost ghost mentioned this issue May 2, 2018
@stephenmuss
Copy link

One thing that would be nice is for this to somehow live in config (as per default theme). This way I wouldn't need to provide cli flags if I wish to disable line numbers etc every time I run the command.

@sharkdp
Copy link
Owner Author

sharkdp commented May 3, 2018

One thing that would be nice is for this to somehow live in config (as per default theme). This way I wouldn't need to provide cli flags if I wish to disable line numbers etc every time I run the command.

Yes, absolutely. There's probably a few things that we want to configure, in the future. I'll look into this.

@DiveInto
Copy link

DiveInto commented Oct 1, 2020

--style=plain

#72 (comment)

@johnallsup
Copy link

If there isn't already one, add a keyboard shortcut to toggle between plain (aka less) mode and full on colourised bat. The main reason I don't use bat much is that if I have line numbers, I can't easily copy from the terminal.

@kothavade
Copy link

If there isn't already one, add a keyboard shortcut to toggle between plain (aka less) mode and full on colourised bat. The main reason I don't use bat much is that if I have line numbers, I can't easily copy from the terminal.

I alias cat to "bat --style=plain" so I can use bat when I want to optimize for reading and cat to optimize for copying.

@why-not-try-calmer
Copy link

Is it possible to toggled line numbers on or off after opeing the file? This is the actual feature that I see is missing.

@goyalyashpal
Copy link

goyalyashpal commented Mar 3, 2024

and Git modification-markers.

what does tilde mean?

edit: nope, that's +, - is the tilde ~ shown in line gutters used for this?

bat/README.md

Lines 52 to 57 in 42153f2

### Git integration
`bat` communicates with `git` to show modifications with respect to the index
(see left side bar):
![Git integration example](https://i.imgur.com/2lSW4RE.png)

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

Successfully merging a pull request may close this issue.

8 participants