Closed leakec closed 9 months ago
We want to use something other than /host/.multitask
. My first thought was something in /tmp
, since this would also keep from cluttering up the /host
folder. However, FileSystemUpdate
, which is used to determine when the file is changed, only has access to the /host
folder. Therefore, I think the best thing to do is create a unique .multitask
file in the /host
folder for each instance of the multitask
plugin (there will be a unique instance for each one spawned with a different config). Luckily, we already have a unique identifier, which is the plugin ID. Therefore, I'll just append that to the name of the file, e.g., /host/.multitask1
.
Problem
I want to be able to run commands from a specific directory rather than the zellij
/host
directory. However, as we will see, the solution creates some other problems, namely:cwd
. This is undesirable.launch-or-focus-plugin
to reload the config each time.start-or-launch-plugin
seems to always use the starting config.Solution
cwd
option to the configuration and running command using thatcwd
.start-or-launch-plugin
tolaunch-or-focus-plugin
in theREADME
./host/.multitask
as the multitask file, since each plugin instance needs its own.multitask
file.