Hi petermad,
Thank you very much for your support and time!
Meanwhile I have implemented a very similar workaround:
Code: Select all
[em_ToggleSelectionOfSameFilenameInTargetPanel]
cmd=em_GotoSameFileInOtherPanel,cm_reverse -1,cm_FocusTrg
menu=Reverse selection of file/folder with same name in target panel
In the end, "my" solution boils down to your solution since it is based on a command which I took from your extended menus (probably with some modifications) a long time ago:
Code: Select all
[em_GotoSameFileInOtherPanel]
cmd=em_SaveSelectionOfTargetPanel,em_SelectItemWithSameNameInOtherPanel,cm_FocusTrg,cm_GotoNextSelected,em_UnselectCurrentItem,cm_RestoreSelection
menu=Go to file/folder with same name in opposite panel
[em_SaveSelectionOfTargetPanel]
cmd=cm_FocusTrg,em_GoToFirstEntry,cm_SaveSelection,cm_ClearAll,cm_FocusTrg
[em_SelectItemWithSameNameInOtherPanel]
cmd=SELECTFILESBT
param="%N"
[em_UnselectCurrentItem]
cmd=SELECTFILESBU
param="%N"
Thank you once more for the extended menus (I don't use them, but I find the implementation quite inspiring).
Your solution is more optimized since it achieves the same goal with less commands and panel switching. However, my usercmd.ini is already quite large and I wanted to use commands that I already have.
Still, a problem with both our solutions is the (imho annoying) message box that pops up if the file does not exist in the target panel. Maybe I (or someone else) will find a solution to that.
@ghisler: I want to renew my initial suggestion to implement the new modifier for SELECTFILES. I guess this would be helpful in other situations as well.
So far I'm still very happy with the workaround. (Maybe I will optimize a bit more but there is no time at the moment.)
BTW: I have assigned the shortcut S+SPACE to the new command. This allows me select "sets of files" in the other panel without changing the selection in the current panel.