You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i.e. a command that processes the input before it is displayed by bat.
I often want bat's nice filename display, ruler and line number, but can't give it the file directly.
For example in #2024 I wanted to use cut, now I am building something with python -m json.tool to format json before displaying it in bat with syntax highlighting. By adding the ability to process the input, one could use both nicely :)
i.e. a command that processes the input before it is displayed by bat.
I often want bat's nice filename display, ruler and line number, but can't give it the file directly.
For example in #2024 I wanted to use cut, now I am building something with
python -m json.tool
to format json before displaying it inbat
with syntax highlighting. By adding the ability to process the input, one could use both nicely :)So rather than:
I could use something like:
This way I can distinguish the files.
I guess the processor should be invoked line-based, or there could be a separate
--process-lines
option.The text was updated successfully, but these errors were encountered: