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

Save sorted json #2

Closed
mikedepetris opened this issue Jan 25, 2022 · 6 comments
Closed

Save sorted json #2

mikedepetris opened this issue Jan 25, 2022 · 6 comments

Comments

@mikedepetris
Copy link

The sorting features on data is perfectly what I need so often. I cannot find a way to save the json with sorted or filtered data, or at least to copy text version of data after sorting, I can only copy cells and rows, not the defining json text.
Would it be possible to:

  1. save the json file with actual applied filters and sorting
  2. keep filter and sorting when switching from Grid to Text tab view

?
Thanks.

@little-brother
Copy link
Owner

little-brother commented Jan 25, 2022

I cannot find a way to save the json with sorted or filtered data

  1. save the json file with actual applied filters and sorting

Because there is no such feature. I'll think about what can be done with it.

  1. keep filter and sorting when switching from Grid to Text tab view

The filter and sorting are reseted when you switch node in the tree because in most cases old filters/sorters don't have matter.
I can add a some code to prevent the reset while you're holding Ctrl + Shift.

@mikedepetris
Copy link
Author

Anything would be good, 1. or 2. with Ctrl+Shift any of this single things would let me do the main job, of course it would be great to have all the options.
It is a fact there is no other software to easily do the same operations in json !

@little-brother
Copy link
Owner

Both done. But 1. is implemented with limitation: if a some value is not plain (e.g. object or array) then a result will be contain [Object] or [Array] instead of this value.

изображение

@mikedepetris
Copy link
Author

Thank you, 2. is ok even if it is not that intuitive, but ok.
I do not know how did you implemented 1., "File --> Save as..." seems to always copy the original file. Can you explain please?

@little-brother
Copy link
Owner

Because TC plugin interface doesn't provide such ability. The top menu is controlled by TC, not by a plugin code.
Perhaps, it's possible to change it by some system tricks but it's not very easy.

@mikedepetris
Copy link
Author

Ah ok, let's keep it simple as it is, it's great

little-brother added a commit that referenced this issue Jan 21, 2024
* New options to control font boldness (issue #2)
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

No branches or pull requests

2 participants