fpp: add a --keep-open flag#61
Conversation
Add a flag that allows you to keep fpp running after running a command or editing a file. Run the current command but do not exit fpp when the -k|--keep-open flag is specified on the command-line.
|
👍 this is really nice and I have a parallel PR that's worse then your implementation |
|
Thanks for the PR @davvid ! Curious about the workflow here -- the only tricky thing is now the execution of the shell script is split between python and the bash script (since now we have the Also does this work for editing files? We would need to connect to I almost wonder if we could implement this instead as pure bash, something like since we save the pickled selection and the files, this should give almost the exact same behavior without introducing the code complexity. what do you think? |
|
I did test it with editing files (that was my use case: vim and gvim), so that did work, but as you said, it made the code a bit complex. If no one beats me to it then I'll try to rework it with your suggestions in mind. Thanks for the review |
no problem @davvid, thanks for the interest in the project! After seeing how many changes have (recently) gone into the python stack and how many are planned (like moving the location of the pickled files), it'd be nice to keep that as simple as possible. |
|
(lemme know if you cant get around to the refactor and I can take a stab and close out this PR) |
|
thanks y'all. please feel free to take a stab at it -- it'll probably be
|
|
yeah sure lemme take a stab at this |
|
Boom! through the magic of stack overflow and ridiculous bash programming we have this down 🎉 🎉 |
Add a flag that allows you to keep fpp running after running a command
or editing a file.
Run the current command but do not exit fpp when the -k|--keep-open flag
is specified on the command-line.