Pretty print/format JSON lines

Open
#2,749 17 comments 75 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
json, rust
Domain
cli

Research direction

The issue names no files, tests, or entry points. Start by locating Warp's terminal output rendering and JSON parsing paths, then determine how inline JSON can be identified without requiring the full output to be valid JSON. Done means a JSON line embedded among non-JSON log output can be formatted inline without disrupting surrounding text.

Written by the indexing model from the issue text.

Description

enhancement triaged
Discord username (optional)

No response

Describe the solution you'd like?

Great work on Warp so far! I thought that it'd be nice if Warp were able to pretty print/format a line of JSON that might be seen as part of some command's log output. Importantly, it should work inline on single lines of output—and not require the full output to be valid JSON—as the log could have JSON output interspersed among other non-JSON output which is common for my use-case.

Is your feature request related to a problem? Please describe.

It's painful to always have to copy a line of JSON output and paste it into a prettifier each time, I'd much prefer if this could be done inline.

Additional context

No response

How important is this feature to you?

2

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.