Page 1 of 1

better parameter /select

Posted: 22 May 2019 00:47
by Temp123
The parameter "/select" does select an element in the files-list. But for what is that good, when the files-list does not get the focus? The current behavior is, that the address-bar get the focus.

Suggestions:
1) If this parameter is set, the files-list should get the focus.

2) The select-parameter can have more than just one behavior.

This is the current behavior:
"/select=d:\meinVerz" selects in the directories-list the directory "d:" and in the files-list the element "meinVerz".

More behaviors:
"/select=d:\meinVerz\." selects in the directories-list the directory "d:\meinVerz" and selects in the files-list the first element.
"/select=d:\meinVerz\:" selects the last element.
"/select=d:\meinVerz\*" selects all elements.
"/select=d:\meinVerz\#" selects no element and the directories-list get the focus. Or you alter the current behavior and this job would be done by the parameter "/select=d:\meinVerz".

:om:

Re: better parameter /select

Posted: 22 May 2019 07:18
by bdeshi
Temp123 wrote: 22 May 2019 00:47 1) If this parameter is set, the files-list should get the focus.
I think you had closed XYplorer with the addressbar in focus before reopening it with the /select command. Try this: xyplorer.exe /select=d:\meinVerz\ /script=|::focus "L"|
Anyway, I think your suggestion is very reasonable, and here's my +1 to your wish nr. 1. :tup:
Temp123 wrote: 22 May 2019 00:47 2) The select-parameter can have more than just one behavior.

This is the current behavior:
"/select=d:\meinVerz" selects in the directories-list the directory "d:" and in the files-list the element "meinVerz".

More behaviors:
"/select=d:\meinVerz\." selects in the directories-list the directory "d:\meinVerz" and selects in the files-list the first element.
"/select=d:\meinVerz\:" selects the last element.
"/select=d:\meinVerz\*" selects all elements.
"/select=d:\meinVerz\#" selects no element and the directories-list get the focus. Or you alter the current behavior and this job would be done by the parameter "/select=d:\meinVerz".
This makes things unnecessarily complicated imo. Try the /script parameter.

Code: Select all

"/select=d:\meinVerz\." ==> xyplorer.exe /script=|::goto "D:\meinVerz"; sel  1,,1|
"/select=d:\meinVerz\:" ==> xyplorer.exe /script=|::goto "D:\meinVerz"; sel -1,,1|
"/select=d:\meinVerz\*" ==> xyplorer.exe /script=|::goto "D:\meinVerz"; sel "a"|