Support for negative parameters other than -1 for cm_Select, cm_Unselect and cm_Reverse for selecting previous x files

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Support for negative parameters other than -1 for cm_Select, cm_Unselect and cm_Reverse for selecting previous x files

Post by *petermad »

I suggest to allow negative parameter values for cm_Select, cm_Unselect and cm_Reverse.

Currently it works like this:
Help wrote:Change selection of the next x files from the current cursor position
I would like it to be to extended to:
Change selection of the next x files from the current cursor position.Use negative value to change the selection of the previous x files
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
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: Allow negative parameter values for cm_Select, cm_Unselect and cm_Reverse

Post by *sa16 »

2petermad
Not like now?
History.txt wrote:03.05.23 Release Total Commander 11.00 beta 1
02.05.23 Added: cm_select, cm_unselect, cm_reverse: Negative parameter toggles only current item, cursor stays in place, e.g. cm_reverse -1 (32/64)
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Allow negative parameter values for cm_Select, cm_Unselect and cm_Reverse

Post by *petermad »

I was thinking of values smaller than -1, so that for example -3 would select the file itself and the previous two files.

Since the value of 1 only selects the file under the cursor, then -1 would still do the same with my suggestion, but it should only be for values smaller than -1 that the cursor should be moved (to the item before the last selected item) - this way the current implementation of -1 can coexist with my suggestion.

The description in Help could be:
Change selection of the next x files from the current cursor position. Use negative values smaller than -1 to change the selection of the previous x files.
Use -1 to change the selction of the file under the cursor without moving the cursor
Currently the -1 parameter is not mentioned in the Help.
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
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Allow negative parameter values for cm_Select, cm_Unselect and cm_Reverse

Post by *white »

2petermad
So a better topic title would be: Create the ability to select the previous x files for cm_Select, cm_Unselect and cm_Reverse.
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: Allow negative parameter values for cm_Select, cm_Unselect and cm_Reverse

Post by *sa16 »

2petermad
Currently, negative parameter-1 means the same as -5 or -10.
After your proposal, won't there be compatibility problems?
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Support for negative parameters other than -1 for cm_Select, cm_Unselect and cm_Reverse for selecting previous x files

Post by *petermad »

2white

Changed the topic title to: Support for negative parameters other than -1 for cm_Select, cm_Unselect and cm_Reverse for selecting previous x files
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
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Support for negative parameters other than -1 for cm_Select, cm_Unselect and cm_Reverse for selecting previous x files

Post by *petermad »

urrently, negative parameter-1 means the same as -5 or -10.
After your proposal, won't there be compatibility problems?
The only place that the use of negative parameters is mentioned is in the history.txt file, and here it is mentioned with an example of -1 - so I doubt that there are many, if any, that have used anything else but -1 - why should they?
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
Post Reply