Add Wofi support
Add Wofi support to use it as another option for the action selection menu. To enable it, specify it in the configuration file, and, optionally, specify the path to the style as an additional argument:
[ask]
command = "wofi"
args = ["--style", "/path/to/style"]
Since Wofi doesn't have built-in support for returning indices like Fuzzel (--index) or Rofi (-format i), the implementation involves manually calculating the index by comparing the selected item's text against the list of choices.
Besides the detail above, this looks good.
I understand that manually calculating the index may not seem as good as using the built-in parameters, but this was a possible forced approach to solve this. If you or anyone else sees any potential issues with this approach or has suggestions for improvement, I’d be ready to address them.
It's not ideal as there could be two windows option with the same title. It is a problem in and of itself as the user can't really tell which one it is. I guess one option would be to add the position and size if two windows have the same name. All of this to say that we should not have two option with an identical label.
Having said that, this is outside of the scope of this MR so I think we can keep your solution and fix this issue after.