SUMMARY It is currently impossible to get the file system in user actions. STEPS TO REPRODUCE 1. Add a user action: echo %aPath% 2. Open a sftp://example.com/dir in a tab 3. Hit the user action, the output is `/dir` OBSERVED RESULT `/dir` EXPECTED RESULT Either `sftp://example.com/dir` OR have another variable to %aFilesystem%. SOFTWARE/OS VERSIONS Krusader: 2.8.1 ADDITIONAL INFORMATION https://docs.kde.org/trunk5/en/krusader/krusader/useractions.html My use case: To open a terminal in the same dir as the panel: `terminator --command "ssh $(echo \"%aPath%\" | sed -E 's#sftp://([^/]+)/(.*)#\1 -t \"cd /\2; bash\"#')"`
Note the "Command accepts" option in the UI - also documented in the UserActions Handbook page you have linked. Does this solve the issue?
I am really ashamed I've missed this. I didn't want to spoil your precious kde-dev time and did a several hours investigation before writing here. And still, I've missed this. Have a nice day.