Skip to content

Conversation

@Pullerz
Copy link
Owner

@Pullerz Pullerz commented Sep 2, 2025

This pull request allows users to specify which fields to display in the JSON row preview of the sidebar. Users can now enter a comma-separated list of fields, including support for dot-paths and array indices, in the preferences view. If no fields are selected, it defaults to the existing behavior of showing the standard preview.

The implementation includes:

  • A new TextField in the preferences view for inputting preview fields.
  • Logic in the AppViewModel to manage changes in the user preferences, ensuring that previews refresh accordingly.
  • Updates in the SidebarView to utilize the specified fields when displaying previews.
  • A method to compute a preview string based on custom field selections, enhancing flexibility for users.

This pull request was co-created with Cosine Genie

Original Task: JSONViewer/72phfo8u2rv2
Author: Alistair Pullen

Pullerz and others added 2 commits September 2, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants