replace a sub string in active path, then set the other panle to resulting path

2 views
Skip to first unread message

Frank Rueter

unread,
Aug 15, 2022, 9:52:47 PM8/15/22
to krusader-users
Hi,

I am trying to figure out how to make a user action/button that replaces a sub string in teh active path, then sets the other panel to the result.
E.g.:
In teh active panel I am inside this folder"
"/server1/folderA/level1/level2"

I'd now like to replace "/server1/folderA" with /server2/folderB" and set the other panel to the result:
"/server2/folderB/level1/level2"

This is the bit I found that sets the other panel to the same folder as the active path:
%oGoto("%aPath%")%

My question now is can I perform a search/replace operation on %aPath% within that command?

Cheers,
frank
Reply all
Reply to author
Forward
0 new messages