filepicker: execute command on enter selection
obedm503 opened this issue · comments
obed commented
Right now when a file is selected, the file is opened with $EDITOR
. I'd like to make zellij open the file in my editor (helix
btw) that is already open in a different panel instead creating a new panel. I know this is very specific to my setup.
So, it would be nice if I could configure what the filepicker plugin does by changing the ENTER
to some arbitrary command. Whether this command takes the files/directories as in stdin
or just $@
args does not matter to me.
Configuration could look like this:
shared_except "locked" {
// ...
bind "Alt f" {
LaunchPlugin "filepicker" {
// floating true // uncomment this to have the filepicker opened in a floating window
close_on_selection true // comment this out to have the filepicker remain open even after selecting a file
cmd "my-custom-command.sh"
};
}
}