-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
xplr plugin experiment #383
Comments
As of now, I'm stuck at getting |
However, when I execute
|
Hello @sayanarijit ! The WASI environment is rather sandboxed and quite unaware of the operating system it is running on (by design), so using anything from If you decide that you definitely need a unique ID, drop a message in #280 and I'll bump that to the top of my priority list! EDIT: Would it be more useful for you to have the PID of Zellij? Perhaps a combination of the Zellij PID and internal plugin ID? |
Hey @TheLostLambda then I guess most of xplrs functionalities won't work since it depends heavily on command invocation. Is it possible to expose an API via which xplr can delegate commands? If yes, would it be possible to also return the status code of the invoked command.? |
Even better if I can get both, id unique to session and panes & windows. |
Can definitely add an API for command delegation! I think the only thing that needs to happen before that is some sort of plugin permissions system (as plugins being able to call arbitrary shell commands is a bit of a security risk). I'll add that to my list! How would you like a ID {
plugin_id: u32,
zellij_pid: u32
} That's something easy enough to knock out in a couple of minutes I think! |
@TheLostLambda awesome. That will work. |
@sayanarijit Et voila! It's bizarre, but this simple API addition actually represents a new class of API for plugins. You can call the function anywhere and it just returns the value you're looking for – no We used to have a couple of things like this but moved to the Latest |
Creating this issue to discuss the possibility and challenges of having xplr as a
Zellij
plugin.The text was updated successfully, but these errors were encountered: