DevToys-app / DevToysMac

DevToys For mac
MIT License
9.2k stars 354 forks source link

Add a search functionality #36

Closed sniranjan closed 2 years ago

sniranjan commented 2 years ago

Really appreciate your effort, just downloaded the latest release and it looks amazing.

One request though, currently there is no way to search any record. I have huge JSON files, it would be nice to see them in a tree view and search by keys or values. You can refer to https://jsoneditoronline.org/. The code is also Apache licensed, https://github.com/josdejong/jsoneditor.

ObuchiYuki commented 2 years ago

@sniranjan Thank you for your issue! That's interesting. DevToys for mac is running on Swift, so I can't use it as is, but I can use it as a reference. it would be interesting to have it as a function of JSON Formatter.

RodrigoTomeES commented 2 years ago

@ObuchiYuki I have been searching for a while and I have seen that it is possible to run JS in Swift. I don't know if it's recommended, but this documentation is still useful for you.

https://medium.com/academy-eldoradocps/javascript-and-swift-66c59bf2317e https://developer.apple.com/documentation/javascriptcore

ObuchiYuki commented 2 years ago

@sniranjan @RodrigoTomeES Hello! I've added a search function to CodeTextView! You can now search in almost any CodeTextView!

画面収録 2022-02-25 18 18 28

ObuchiYuki commented 2 years ago

@sniranjan @RodrigoTomeES Added in v0.0.10!

https://github.com/ObuchiYuki/DevToysMac/releases/tag/0.0.10