Open cpkio opened 3 years ago
I like this idea. When using batgrep with color, it's sometimes even hard to see which line was the matched one.
Maybe we could add it as a new component highlight-indicator
that shows regardless of color settings?
Thank you for the feedback.
I also like the idea, but it would require us to increase the horizontal size of the sidebar, right?
Or could we find a nice way to modify the vertical border? Something like
80 │ [build-dependencies]
81 │ clap = { version = "2.33", optional = true }
82 + ┝╸new line
83 ┝╸
84 ┝╸[profile.release]
85 ~ ┝╸modified line
86 │ codegen-units = 1
which actually looks good? :smile: (https://en.wikipedia.org/wiki/Box-drawing_character)
Maybe we could add it as a new component
highlight-indicator
that shows regardless of color settings?
Alternatively, depending on how subtle it would be, it could be part of the "grid" style component and only show up if the grid is enabled.
The fancy border drawing characters are not part of every monospaced font, so using them would limit usability of this feature. I suggest using most common characters.
This is actually implemented, isn't it?
❯ bat --diff src/printer.rs --color=never
...
334 │ }
335 │ }
336 ~ │ unsafe as
337 ~ │ unsafe // tag::s[]
338 ~ │ f
339 ~ │ // end::s[]
340 │ fn print_snip(&mut self, handle: &mut dyn Write) -> Result<()> {
341 │ let panel = self.create_fake_panel(" ...");
...
For Git modifications, yes. But not for highlighted lines.
Any progress on this?
no
For
--color=never
line highlighting is not working because of no color codes. A text indicator prepended to highlighted lines with an option to set this indicator could be helpful.or