Damn it works! (favorites)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Joso
Posts: 95
Joined: 06 Apr 2010 14:13

Damn it works! (favorites)

Post by Joso »

why read the manual? - this program works the way you'd expect it to work (even when it's not documented)

the following line in the favorites list management dialog

"&Today" C:\DRE\EDOs\Today\

pops open this directory when you invoke the menu and then hit "T" - The "T" is not underlined on the menu, but it works anyway.

The moral of the story is - try anything - it might work.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Damn it works! (favorites)

Post by serendipity »

Joso wrote:why read the manual? - this program works the way you'd expect it to work (even when it's not documented)

the following line in the favorites list management dialog

"&Today" C:\DRE\EDOs\Today\

pops open this directory when you invoke the menu and then hit "T" - The "T" is not underlined on the menu, but it works anyway.

The moral of the story is - try anything - it might work.
Nice find. But this is documented in "help>Advanced topics>Portable open with" which says:
You can define an accelerator by prefixing the "&" (ampersand) character to the desired character.
Which means you can assign the "&" before any character and that character will become an accelerator. In the below script t will show today, o will show tmorrow and u will show tuesday:

Code: Select all

"&today"
   msg "today";

"t&omorrow"
   msg "tomorrow";

"t&uesday"
   msg "tuesday";
But nice to see that you could find this hidden trick by experimenting.

Joso
Posts: 95
Joined: 06 Apr 2010 14:13

Re: Damn it works! (favorites)

Post by Joso »

thanks - now I see it works with my little selection drop down menu:

Code: Select all

"&All"
 #250
"&Files"
 #255
"&None"
 #251
"&Some"
 #253
"&Invert"
 #252
"S&ticky"
 #413
but I can see I'm going to need that underscore thing that other windows programs do in order to remember which key was assigned as an accelerator.

Post Reply