Unable to set shortcut to go to the top of the file list

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Rustrans
Junior Member
Junior Member
Posts: 2
Joined: 2023-09-20, 11:43 UTC

Unable to set shortcut to go to the top of the file list

Post by *Rustrans »

I have successfully set up the Right arrow key to go to the bottom of the file list by going to:
Configuration -> Options -> Misc -> Redefine Hotkeys
and assigning "Right" to "cm_GoToLast"

How do I assign "Left" arrow key to go to the top of the list to "..." the same as pressing "Ctrl + Home"?

There is no entry for "cm_GoToTop" or anything similar
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3209
Joined: 2003-05-06, 11:46 UTC

Re: Unable to set shortcut to go to the top of the file list

Post by *Sir_SiLvA »

I dunno how you screwed up your keys but the Home-Key alone puts the cursor back on ".."
There is no cmd to do so, all you have is either cm_GoToFirstFile or cm_GoToFirstEntry.

PS: I dunno whats wrong with using Home/End-Keys instead of screwing up the cursor-keys?
Hoecker sie sind raus!
Rustrans
Junior Member
Junior Member
Posts: 2
Joined: 2023-09-20, 11:43 UTC

Re: Unable to set shortcut to go to the top of the file list

Post by *Rustrans »

"Ctrl + Home" still works and puts the selection on "..."
I want to be able to use "Left" arrow key to achieve the same result.

"cm_GoToFirstFile" or "cm_GoToFirstEntry" goes to first entity in the file list which is one item below "..." and I need to navigate exactly to "..." by pressing "Left" arrow key
User avatar
white
Power Member
Power Member
Posts: 4448
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Unable to set shortcut to go to the top of the file list

Post by *white »

You can create a user command which executes cm_GoToFirstEntry,cm_GoToPrev

Or use the undocumented feature: (not recommended)

Code: Select all

Command: cm_GoToFirstEntry (or cm_GoToFirstFile)
Paramater: 2147483647
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 47252
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Unable to set shortcut to go to the top of the file list

Post by *ghisler(Author) »

There is a better solution: Use the option
SpecialCursorMovement=1
in wincmd.ini section [Configuration]
There are more options, just look for SpecialCursorMovement in the help section 4b, N-Z.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4448
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Unable to set shortcut to go to the top of the file list

Post by *white »

ghisler(Author) wrote: 2023-09-23, 08:59 UTC There is a better solution: Use the option
SpecialCursorMovement=1
in wincmd.ini section [Configuration]
So the help is not entirely true:
[Help - Ini File Settings part 2: Configuration N-Z] wrote: 1: Left key jumps to first file, right key to last
Suggestion:
1: Left key jumps to first entry (usually ".."), right key to last
Post Reply