New cm_ commands for navigation
Moderators: Hacker, petermad, Stefan2, white
Please, add some cm_ commands up/down select go to
Support=Support+100
[face=trebuchetms]>> Please, add some cm_ commands for cursor navigation:
>> select / unselect
>> go to
>> I would support adding cm_ commands for all special actions
>>that currently may be done only via keyboard (e.g. like Space or Insert selection actions).[/face]
Remotely calling build-in commands would be more reliable than simple sending cursor move up/down commands.
[face=trebuchetms]>> Please, add some cm_ commands for cursor navigation:
>> select / unselect
>> go to
>> I would support adding cm_ commands for all special actions
>>that currently may be done only via keyboard (e.g. like Space or Insert selection actions).[/face]
Remotely calling build-in commands would be more reliable than simple sending cursor move up/down commands.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have considered it, but it would require far too many commands. It would take a lot of time to implement, and almost no one would use it then because it's not really useful on a button.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Yeah, i asked the same 6 posts more up ^^I would like to add my support for just adding a command that does the same as the insert key
I add also a Cm_.... Command who exactly does as Shift+Del : http://ghisler.ch/board/viewtopic.php?t=43731&highlight=
2ghisler(Author)
Thank you for adding some commands.
It would be grate to have some more possibilities (for using in scripts):
- move cursor up
- move cursor down
- move cursor left (helpful for brief or thumbinals view)
- move cursor right
- move cursor to another panel symmetric about vertical separator
- select file under cursor (without moving)
- unselect file under cursor (without moving)
- toogle selection under cursor (without moving)
- place cursor on last folder or file (like End key)
- place cursor on last folder or file or if it already last - then place cursor on first folder or file
- place cursor next unselected file or directory
- place cursor previous unselected file or directory
- place cursor on first directory (if it exist) - like cm_GoToFirstFile but for directories
- place cursor on last directory (if it exist)
Thank you for adding some commands.
It would be grate to have some more possibilities (for using in scripts):
- move cursor up
- move cursor down
- move cursor left (helpful for brief or thumbinals view)
- move cursor right
- move cursor to another panel symmetric about vertical separator
- select file under cursor (without moving)
- unselect file under cursor (without moving)
- toogle selection under cursor (without moving)
- place cursor on last folder or file (like End key)
- place cursor on last folder or file or if it already last - then place cursor on first folder or file
- place cursor next unselected file or directory
- place cursor previous unselected file or directory
- place cursor on first directory (if it exist) - like cm_GoToFirstFile but for directories
- place cursor on last directory (if it exist)
Last edited by LonerD on 2016-06-09, 16:14 UTC, edited 1 time in total.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
2ghisler(Author)
Thanks for all the new commands - very handy!
Just a few minor hints. cm_Reverse isn't consistantly named with the cm_Exchange* commands which also invert the selection. I guess it should be done consistently. It also doesn't use 'Sel' for selection in its name which most selection commands do.
The three new related commands should also reflect the fact that the cursor is set to the next item - it's advanced. So it could be for example
cm_SelectAdvCursor
cm_UnSelectAdvCursor
cm_ExchangeSelAdvCursor
Thanks for all the new commands - very handy!
Just a few minor hints. cm_Reverse isn't consistantly named with the cm_Exchange* commands which also invert the selection. I guess it should be done consistently. It also doesn't use 'Sel' for selection in its name which most selection commands do.
The three new related commands should also reflect the fact that the cursor is set to the next item - it's advanced. So it could be for example
cm_SelectAdvCursor
cm_UnSelectAdvCursor
cm_ExchangeSelAdvCursor
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2LonerD
Better use the new WM_USER+50 interface to get the number of files, folders etc. and then use
CM_GOTOFIRSTENTRY 0
CM_GOTOFIRSTENTRY 1
CM_GOTOFIRSTENTRY 2
etc.
or
CM_GOTOFIRSTFILE 0
CM_GOTOFIRSTFILE 1
CM_GOTOFIRSTFILE 2
You can also send them via script, just put the numbers in lparam.
Better use the new WM_USER+50 interface to get the number of files, folders etc. and then use
CM_GOTOFIRSTENTRY 0
CM_GOTOFIRSTENTRY 1
CM_GOTOFIRSTENTRY 2
etc.
or
CM_GOTOFIRSTFILE 0
CM_GOTOFIRSTFILE 1
CM_GOTOFIRSTFILE 2
You can also send them via script, just put the numbers in lparam.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Great. Now I understand what meansghisler(Author) wrote: CM_GOTOFIRSTENTRY
or
CM_GOTOFIRSTFILE
(some commands from this list still not work in TC 9.0b1)/15.05.16 Added: The following commands now accept a numeric parameter in the button bar or start menu: CM_WAIT CM_SELECT CM_UNSELECT CM_REVERSE CM_GOTOFIRSTENTRY CM_GOTOFIRSTFILE CM_SWITCHDRIVE CM_DELETE CM_LEFTSWITCHTOTHISCUSTOMVIEW CM_RIGHTSWITCHTOTHISCUSTOMVIEW CM_SEARCHFORINCURDIR CM_DIRECTORYHOTLIST (32/64)
It's powerful functional.
But it's will be big hard scripts for simple movements. And for example - it's still hard move cursor left in brief view or select simple file without movements.
It's my list of movements I need in scripts.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Which ones? They should all work!some commands from this list still not work in TC 9.0b1
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I canot make these work:Which ones? They should all work!
CM_SWITCHDRIVE
CM_LEFTSWITCHTOTHISCUSTOMVIEW
CM_RIGHTSWITCHTOTHISCUSTOMVIEW
CM_SEARCHFORINCURDIR
I cannot tell whether CM_WAIT X works.
CM_DELETE X always only deletes 1 file (not X files as expected).
CM_DIRECTORYHOTLIST X only opens the Directory Hotlist in different positions on the screen depending on X - I had expected it to highlight (or even execute the X'th entry in the list.
Last edited by petermad on 2016-06-13, 19:38 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re:
Bump for TC 11.LonerD wrote: 2016-06-09, 14:00 UTC 2ghisler(Author)
Thank you for adding some commands.
It would be grate to have some more possibilities (for using in scripts):
- move cursor up
- move cursor down
- move cursor left (helpful for brief or thumbinals view)
- move cursor right
- move cursor to another panel symmetric about vertical separator
- select file under cursor (without moving)
- unselect file under cursor (without moving)
- toogle selection under cursor (without moving)
- place cursor on last folder or file (like End key)
- place cursor on last folder or file or if it already last - then place cursor on first folder or file
- place cursor next unselected file or directory
- place cursor previous unselected file or directory
- place cursor on first directory (if it exist) - like cm_GoToFirstFile but for directories
- place cursor on last directory (if it exist)
Still dream, especially about cm_ for symmetric navigation like this:
https://disk.yandex.ru/i/Okw9BAmp9_M-nQ
Last edited by LonerD on 2023-05-14, 19:48 UTC, edited 2 times in total.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
Re: New cm_ commands for navigation
2LonerD
Some of those already exist in TC 11:
- move cursor up = cm_GotoPrev
- move cursor down = cm_GotoNext
- select file under cursor (without moving) = cm_Select -1
- unselect file under cursor (without moving) = cm_UnSelect -1
- toogle selection under cursor (without moving) =cm_Reverse -1
- place cursor on last folder or file (like End key) = cm_GoToLast
- place cursor on first directory (if it exist) - like cm_GoToFirstFile but for directories = cm_GoToFirstEntry
Some of those already exist in TC 11:
- move cursor up = cm_GotoPrev
- move cursor down = cm_GotoNext
- select file under cursor (without moving) = cm_Select -1
- unselect file under cursor (without moving) = cm_UnSelect -1
- toogle selection under cursor (without moving) =cm_Reverse -1
- place cursor on last folder or file (like End key) = cm_GoToLast
- place cursor on first directory (if it exist) - like cm_GoToFirstFile but for directories = cm_GoToFirstEntry
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar