New cm_ commands for navigation

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Please, add some cm_ commands up/down select go to

Post by *Stefan2 »

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.




 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I would like to add my support for just adding a command that does the same as the insert key and a command for what the space key does. I would like to remap them.
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

2ghisler(Author)

If I want to select files from selection in other panel - I need
in cm_command for Tab key. Now I must use external tools ..
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
islogged
Senior Member
Senior Member
Posts: 205
Joined: 2008-09-17, 00:57 UTC

Post by *islogged »

I would like to add my support for just adding a command that does the same as the insert key
Yeah, i asked the same 6 posts more up ^^

I add also a Cm_.... Command who exactly does as Shift+Del : http://ghisler.ch/board/viewtopic.php?t=43731&highlight=
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Post by *LonerD »

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)
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
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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.
Author of Total Commander
https://www.ghisler.com
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Post by *LonerD »

ghisler(Author) wrote: CM_GOTOFIRSTENTRY
or
CM_GOTOFIRSTFILE
Great. Now I understand what means
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)
(some commands from this list still not work in TC 9.0b1)/

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

some commands from this list still not work in TC 9.0b1
Which ones? They should all work!
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14806
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Which ones? They should all work!
I canot make these 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.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will check them.
Author of Total Commander
https://www.ghisler.com
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re:

Post by *LonerD »

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)
Bump for TC 11.
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
User avatar
petermad
Power Member
Power Member
Posts: 14806
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New cm_ commands for navigation

Post by *petermad »

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
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply