Skip to content

v0.7.0#104

Merged
ynqa merged 39 commits intomainfrom
v0.7.0/dev
Mar 25, 2026
Merged

v0.7.0#104
ynqa merged 39 commits intomainfrom
v0.7.0/dev

Conversation

@ynqa
Copy link
Copy Markdown
Owner

@ynqa ynqa commented Feb 20, 2026

Fixes #105 Return the originally provided JSON when jq returns null or falls
Fixes #100 (Above)
Fixes #101 Line wrapping
Fixes #7 (If it means mouse support)
Fixes #40 Write the output to stdout (from #108, UNIX only)

Copilot AI review requested due to automatic review settings February 20, 2026 15:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a caching mechanism for the JSON viewer state to improve error handling and user experience. When a jq query fails or returns only null values, the viewer now displays the previous valid state instead of showing nothing or invalid data.

Changes:

  • Added a cached_state field to store the previous valid JSON viewer state
  • Modified error handling to restore and display the cached state when queries fail
  • Changed null-result handling to display cached state with a warning message instead of proceeding with null data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/json.rs Outdated
Comment thread src/json.rs
Comment thread src/json.rs
Comment thread src/json.rs Outdated
@ynqa ynqa merged commit 4a65614 into main Mar 25, 2026
7 checks passed
@ynqa ynqa deleted the v0.7.0/dev branch March 25, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants