It would be nice to have a generic "custom" plugin, that let's you configure a bash command to create a list and a bash command to act on the selection. This could be useful for a number of cases, I have included two examples as configuration format proposal below.
In the configuation of each instance of the command should return a list of strings separted by newline and action should be a bash command to execute when pressing enter on a selection. Of course there needs to be some predefined placeholder (here {} e.g.) that get's interpolated into the command string. It also probably makes sense to add an icon property that specifies the font-awesome icon to use. Each entry in commands would then be shown the same way as other plugins are presented when launching centerpiece.
It would be nice to have a generic "custom" plugin, that let's you configure a bash command to create a list and a bash command to act on the selection. This could be useful for a number of cases, I have included two examples as configuration format proposal below.
In the configuation of each instance of the
command
should return a list of strings separted by newline andaction
should be a bash command to execute when pressing enter on a selection. Of course there needs to be some predefined placeholder (here{}
e.g.) that get's interpolated into the command string. It also probably makes sense to add anicon
property that specifies the font-awesome icon to use. Each entry incommands
would then be shown the same way as other plugins are presented when launching centerpiece.