luin / medis

💻 Medis is a beautiful, easy-to-use Mac database management application for Redis.
http://getmedis.com
MIT License
11.62k stars 787 forks source link

Feature request: nippy or transit or more via shell script "viewers"? #262

Closed rgm closed 1 year ago

rgm commented 2 years ago

Hi, clojurist here. I saw in #261 a request for Python pickle detection, and have a similar feature request, but more general. First, I use a lot of nippy and transit, which are pretty niche:

https://github.com/ptaoussanis/nippy https://github.com/cognitect/transit-format

I've scoped out a similar idea/feature request for Paw.app and it's just not realistic to expect it's worth anyone's time to support these directly.

BUT I'd like to open discussion for the idea of custom "viewers" as user-provided shell scripts that transform from Redis data to plain text or perhaps HTML (for hierarchy). Then it opens up the viewers as a sort of plug-in system. We have composable shell tools like https://github.com/borkdude/jet for examining this data off the wire ... maybe a good way to support these formats is using STDIN and STDOUT and any script that transforms arbitrary data -> text can be used.

luin commented 2 years ago

Hey @rgm 👋 ,

Thanks for the feature request. That sounds good. Added this to the roadmap.

luin commented 2 years ago

The alpha version is here: https://www.dropbox.com/s/p1cgsq0vp8iylny/Medis.zip?dl=0. Would be great if you can give it a try 😄. The instruction can be found in the app setting:

CleanShot 2022-07-21 at 12 22 28@2x
rgm commented 2 years ago

Amazing! I'll try it out today. 🙏

luin commented 2 years ago

The feature was just released! 🎉 Also, another feature Content rules is included so you are able to specify the default viewer/encoder for keys that match a certain rule.