Comments (5)
Hi @originalrusyn , thanks as usual for your feedback!
It's a reasonable request, the solution I have in mind (#45) is allowing 3 search options:
Examples searching "owner"
in https://api.github.com/users/paolosimone/repos , notice the top-right eye icon
Show all [new!]
It always shows the whole json and highlights matches.
Warn: since it doesn't filter anything you'll have to scroll down to find matches
Show subtree [default]
It shows matches and their subtree.
Show matches only
Only shows exact matches.
This feature will be available soon in v1.1.0 v1.1.1. I will also try to add a setting to customize the default visibility mode, but it needs further investigation (see #46).
Don't forget to star the project on github! ⭐
from virtual-json-viewer.
Hi @paolosimone
Thank for your answer.
Just to double check
The "Show subtree" setting will show all properties of first element (and hide other elements) of json array for https://api.github.com/users/paolosimone/repos when I search "Merry" because the occurrence of the searching word is belong to the first element ( like on screenshot below )?
If yes, that's what I want.
Thanks a lot.
from virtual-json-viewer.
The "Show subtree" setting will show all properties of first element
nope, the "Show subtree" is the current version's default, so it will behave like your original post. Also, since "Merry" matches the value and not the key, in this case "Show subtree" and "Show matches" behaves the same.
To do what you want you will have to switch to the new "Show all" mode that will:
- collapse and fade all array items without search occurrences
- expand items with search occurrences and keep its siblings
So searching "Merry" with "Show all" will output:
To give another example with a match on array item which is not the first, searching "Navidad" will output:
from virtual-json-viewer.
As a side note, I confirm that the default search mode will be customizable in settings
from virtual-json-viewer.
Ok,
Thanks
from virtual-json-viewer.
Related Issues (16)
- JQ is disabled on strict CSP HOT 1
- Manifest V3
- Suggestion: detect when dark mode changes on the desktop HOT 2
- Make CTRL + A select only the raw value when in json viewer
- jq doesn't work HOT 2
- Feature request: Make links clickable by pressing Alt/Option + click HOT 1
- Feature Request: Mouseless work by keyboard shortcuts HOT 2
- Feature Request: Ability of saving filters and search queries to be able load them again and apply HOT 1
- [BUG] Huge errors cover the search bar HOT 2
- Feature Request: Expose default expanded/collapsed in settings HOT 1
- MacOS keyboard hotkeys for text selection doesn't work in plugin's Tree mode HOT 1
- Unexpected non-whitespace character after JSON at position 7509 HOT 1
- Option to disable sorting. Display the JSON data as it is in tree view HOT 1
- Set default application state in settings
- Enable the plugin on json content, regardless of content type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual-json-viewer.