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

Syntax highlighting for jsonl #2535

Closed
bartekpacia opened this issue Apr 6, 2023 · 3 comments · Fixed by #2539
Closed

Syntax highlighting for jsonl #2535

bartekpacia opened this issue Apr 6, 2023 · 3 comments · Fixed by #2539
Assignees
Labels
feature-request New feature or request good first issue Good for newcomers

Comments

@bartekpacia
Copy link

bartekpacia commented Apr 6, 2023

JSON Lines is a simple variation of JSON.

It'd be great if bat used json-style highlighting for jsonl out of the box. Currently I use bat events.jsonl -l json to have my JSONL files highlighted.

Example .jsonl file:

{"time":"2023-04-07T00:44:26.781071+02:00","level":"INFO","msg":"cell event received","id":446,"name":"Salon odczyt","desc":"Salon odczyt","display_type":"TEMP","value":"0xa0e0","value_str":"22,4°C"}
{"time":"2023-04-07T00:44:28.358208+02:00","level":"INFO","msg":"cell event received","id":380,"name":"Bartek - sufit 1","desc":"Bartek SUFIT 1","display_type":"PROC","value":"0x6064","value_str":"100%"}
{"time":"2023-04-07T00:44:29.511618+02:00","level":"INFO","msg":"cell event received","id":380,"name":"Bartek - sufit 1","desc":"Bartek SUFIT 1","display_type":"PROC","value":"0x6000","value_str":"0%"}
{"time":"2023-04-07T00:44:30.005582+02:00","level":"INFO","msg":"cell event received","id":291,"name":"Bartek - sufit 2","desc":"SUFIT 3","display_type":"PROC","value":"0x6064","value_str":"100%"}
{"time":"2023-04-07T00:44:32.699916+02:00","level":"INFO","msg":"cell event received","id":291,"name":"Bartek - sufit 2","desc":"SUFIT 3","display_type":"PROC","value":"0x6000","value_str":"0%"}
{"time":"2023-04-07T00:44:33.018868+02:00","level":"INFO","msg":"cell event received","id":472,"name":"Łazienka góra","desc":"łazienka","display_type":"BIT","value":"0x2000","value_str":"0"}
@bartekpacia bartekpacia added the feature-request New feature or request label Apr 6, 2023
@keith-hall keith-hall added the good first issue Good for newcomers label Apr 7, 2023
@WinterCore
Copy link
Contributor

Hi 👋
Can I work on this?

@keith-hall
Copy link
Collaborator

Hi 👋 Can I work on this?

Of course :) let us know if you need any pointers :)

@keith-hall
Copy link
Collaborator

A note I recently made an another issue is equally relevant here in case it helps :)

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.

3 participants