Replies: 3 comments 1 reply
-
Hi! @smangels Mostly any yazi "previewers" are based on "cli" tools that show (only) the preview for it in the terminal. Many JWT CLI's I have seen also allow editing and other functionalities, than just a good preview. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi,
I've managed to get it up an running decoding the JWT through a CLI tool and are happy to share the code with you. It would be even better if we could get it decode natively in Lua. But I've struggled to get a development environment up and running. Did you manage Anirudh?
/Sebastian
BR,
Re:
…
Hi! @smangels <https://github.com/smangels> Mostly any yazi "previewers" are based on "cli" tools that show (only) the preview for it in the terminal. May JWT CLI I have soon also allow edits and other functionalities than just a good preview.
If you know of something, I can make it for you.
Or
If you are developing a new tool itself, I would like to help out(if possible).
—
Reply to this email directly, view it on GitHub <#2109 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABC3BOXYNB4IH5VERLXIBVT2KCTSJAVCNFSM6AAAAABUJRJQK2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBQGQ3DEMY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
The repository can be found at https://github.com/smangels/jwt.yazi and it contains a test.jwt file. The issue is that we are using our own JWT decoder binary and my gut feeling tells me that it would be much cleaner to simply implement the decoder feature in plain Lua instead of relying on an external tool - shouldn't be too complicated.
https://gist.github.com/inaiat/02bf5d11732d8e4d7b7546399a3a49af
What do you think?
Re:
…
We need not convert it to a Lua code, if the CLI can be installed, and can just preview nicely, then it should be enough in that language itself.
Can you share the repo? And a screenshot of the preview of how it looks?
—
Reply to this email directly, view it on GitHub <#2109 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABC3BOQXNRB3MUJHQQXU7GD2KE5AHAVCNFSM6AAAAABUJRJQK2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBQG4YTGOI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What system are you running Yazi on?
Linux X11
What terminal are you running Yazi in?
kitty 0.38.1 and ghostty 1.0.0 build 8469
yazi --debug
outputDescribe the question
Hi,
I'm reaching out for people willing to support me in writing a native previewer plugin for JWT files. Nats server and account configuration is stored in such a format and when navigating through hundreds of JWT files in a file structure for a cluster, it would be nice to have native preview support in Yazi (with code highlighting of the resulting JSON content inside the payload).
Many thanks in advance.
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions