Viewing a selected file

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
mrbosco
Posts: 141
Joined: 03 Sep 2011 09:40

Viewing a selected file

Post by mrbosco »

I have a file selected and then I do a sort and the file naturally changes position.
Is there a scripting command to quickly show the selected file in its new position?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Viewing a selected file

Post by TheQwerty »

There's actually two commands that you might find helpful in this situation.

#1012 Miscellaneous | Focus Functions | Move Focused Item Into View (Shift+Alt+F6)
#1049 Miscellaneous | Focus Functions | View First Selected Item

You can either call them in a script with the command IDs or assign them keyboard shortcuts. For #1012 the default is Shift+Alt+F6.

mrbosco
Posts: 141
Joined: 03 Sep 2011 09:40

Re: Viewing a selected file

Post by mrbosco »

Perfect! Thanks for the speedy response!

mrbosco
Posts: 141
Joined: 03 Sep 2011 09:40

Re: Viewing a selected file

Post by mrbosco »

Out of curiosity, where was this information about miscellaneous commands in the help documentation?

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

Re: Viewing a selected file

Post by serendipity »

mrbosco wrote:Out of curiosity, where was this information about miscellaneous commands in the help documentation?
There isnt a comprehensive documentation for each and every menu item.
However try searching in one of these very useful jump lists:
  • Help | List all Commands...
    Tools | Configuration and button "Jump to Setting..."
If that fails to return anything useful, ask here in the forum. :)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Viewing a selected file

Post by TheQwerty »

serendipity wrote:
mrbosco wrote:Out of curiosity, where was this information about miscellaneous commands in the help documentation?
There isnt a comprehensive documentation for each and every menu item.
However try searching in one of these very useful jump lists:
  • Help | List all Commands...
    Tools | Configuration and button "Jump to Setting..."
If that fails to return anything useful, ask here in the forum. :)
Just to add... In case you were not aware every menu item can be assigned a keyboard shortcut. In addition, there's a number of miscellaneous commands available in the Customize Keyboard Shortcuts dialog which aren't (easily) accessible through the GUI but can be assigned shortcuts.

All of these commands in the Shortcuts dialog are what make up the contents of the List all Commands dialog, and the category information shown here (Miscellaneous, Focus Functions) describe how to find them.

Further, if you look up the commands in the Customize Keyboard Shortcuts dialog you'll also find a brief description about what each does - for some this is the extent of their documentation. ;)

mrbosco
Posts: 141
Joined: 03 Sep 2011 09:40

Re: Viewing a selected file

Post by mrbosco »

Thank you!

admin
Site Admin
Posts: 66375
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Viewing a selected file

Post by admin »

mrbosco wrote:I have a file selected and then I do a sort and the file naturally changes position.
It will stay within the shown part of the list if you tick Configuration | Sort and Rename | Sort | Keep focused item in view after resorting.

Post Reply