Well, really setting e.g. in Windows the context action as %s and then calling it on: cmd /c DEL /Q /S /F c:\valuable*.* we would clear the valuable directory off. It would be entirely our mental problem, not Geany's.
Sometimes ago I'd tried the use of GEANY_CURRENT_FILE and other env. variables, without success. Now trying tmp.bat file (as context action tmp.bat %s): echo --------- echo %PATH% echo --------- echo %1 echo --------- echo %GEANY_CURRENT_FILE% echo --------- pause I get: PATH variable - OK Geany selection - OK GEANY_CURRENT_FILE variable - NOT OK i.e. no success again.
Moreover, F5 (Run) gives the same (%s excluding). Geany v.1.29. Windows. (I would test it on other versions and platforms)
Of course noboby need to read my 'novels'.