From [Geany #1959](https://github.com/geany/geany/issues/1959):
I think it's not Geany’s task: adding this additional functionality to the plugin is more logical. And we can use existing plugins, in this case we have all power of Lua or Python (GeanyLua, GeanyPy, Peasy). "Open selected file" (Ctrl+Shift+O) is a function ```src/document.c:on_menu_open_selected_file1_activate()```, I wrote a Lua script https://pastebin.com/JuvRhRRu (last version), but it's too big :)
Well, I decided that it is logical to hang this task on the plugin, entirely: https://pastebin.com/TiL8wMeH But one problem: function ```src/utils.c:utils_tidy_path()``` is not available for plugins. Yes, I can just copy this function to plugin, but it's somehow stupid, I think that function ```utils_tidy_path()``` can be to add to list of functions when available for plugins. Or maybe not (bump ABI and other) :)
Function like as ```glspi_selfile()``` would be useful in other non-specific (i.e. for general purpose) plugins too - GeanyPy, Peasy. Or maybe writing Lua- or Python-script as a separate module is the best solution. I don't know now.
Any opinions? Ideas?