gotoNextFile & gotoPreviousFile key mapping

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
radimchatkalahari
New Member
New Member
Posts: 1
Joined: 2009-07-22, 15:03 UTC

gotoNextFile & gotoPreviousFile key mapping

Post by *radimchatkalahari »

Hi everyone,
Total commander is cool, but the only thing I'm missing is hot-key mapping
for going to next item (file/dir)
and for previous item (file or dir).
I mean similar mappings that are currently provided
for selected items
cm_GotoNextSelected
and
cm_GotoPrevSelected

I would be great to enable
user-configurable mappings like cm_GotoNext & cm_GotoPrev

thanks
Radimch
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2radimchatkalahari
Do you mean something like cm_GotoPreviousDir, cm_GotoNextDir, cm_GotoPreviousLocalDir, cm_GotoNextLocalDir (already existing) or maybe the same functionality as for using arrows (up and down)?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

While there likely should be a number of internal cm_'s for what arrow keys do depending on their current context. There is an AHK workaround (though not as good as an internal solution).

This has the effect of making the scroll wheel move the cursor up, when the mouse pointer is over the FileList (TMyListBox) area, and shift is held down via a button on the mouse.

To do so w/o Shift or Ctrl, delete all the junk after the RegExMatch, and replace with: SendInput, {Up}
or: Send, {Up}

Code: Select all

Do_WheelUp(activeEXE)
{
	if (activeEXE = "TCMD")
	{
		MouseGetPos, , , id, control
		if( RegExMatch(control, "^TMyListBox[1-2]$" ))
		{
			if( GetKeyState("Shift") = 1 )
			{
				SendInput {Shift Up}{Up}{Shift DownTemp}
				return
			}
			else
			if GetKeyState("Ctrl") = 1
			{
				SendInput {Ctrl Up}{PgUp}{Ctrl DownTemp}
				return
			}
		}
	}
}
return
This is at the bottom of my AHK script, along with other application checks, which all define Mouse hotkeys, and call the relevant function.

Code: Select all

#ifWinActive, ahk_class TTOTAL_CMD
{
	WheelUp::  Do_WheelUp("TCMD")
	WheelDown::Do_WheelDn("TCMD")
	Xbutton1:: Do_MouseX1("TCMD")
}
return
schittli
Member
Member
Posts: 101
Joined: 2004-01-06, 16:13 UTC
Location: Switzerland, Biel Bienne

Post by *schittli »

it's really a pity that customers still have to cheat for great and obvious features.
Kind regards,
Thomas
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If you look at this subforum, you can see that there are 36 pages of "great and obvious" features! It would take 1000 years to implement them all, and make TC about 10GB large...
Author of Total Commander
https://www.ghisler.com
schittli
Member
Member
Posts: 101
Joined: 2004-01-06, 16:13 UTC
Location: Switzerland, Biel Bienne

Post by *schittli »

I'm sorry, but my daily business is software engineering, too and a feature like displaying the active Path or the optional keymapping discussed in this thread are simple and small. (The Display Active Path in Title Bar Hack needs about 10 lines of code and the Kay Maping Workaround about 15 - I'm pretty shure you don't need a lot more effort).

I have not analyzed all the requested features, but I think that 80% can be done with 20% of the time needed to implement all the features.

Wie auch immer...
Kind regards, Thomas
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2schittli
You forget about one think: it is not linear process. While your system grows there are more things to keep a look at. TC currently has few hundreds options available and Christian must be sure that something new will not interrupt already existing functionality.

I know that extensibility is a part of good software model but it makes implementing less bothersome but it does not solve everything.

80/20 rule simply does not work here. You say that you did not take a look on requested features but I did many times. Some of them might seem to be few liners but many - does not. Do not forget that TC is developed by one person who has to decide which from thousands (really!) should be implemented first. Everything needs time and each one of us have only one life :)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

It would... make TC about 10GB large...
Which isn't an option as TC is a 32 bit program ;-)
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

TSK TSK Lefteous, its not 32bit that can't be > 4Gig... its FAT32 ;)
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Balderstrom
Does it mean that 10GB totalcmd.exe would not need to be completely loaded into memory? ;)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Well, the 3Gig limit for memory on WinXP is an artificial restriction by Microsoft. IIRC Server2003 doesn't have that restriction. And neither does WinXP 64bit, but it doesn't have much to do with the OS being 32bit itself.

And I dunno, guess we'd need a big swap file for a 10GB TC :-)
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

2schittli
not sure how long you are in "software engineering" but I learned in those almost 20y I am in that business this: if you are not author (or if you cannot see source code) you cannot judge how much effort fill implementation of the new functionality and regression testing of the rest take.
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

hey guys! 10GB TC? No problem:
I guess we can have it even in 7.5 final if Christian will decide so. It will be 3MB SW with bundled full HD movie about development and how to use it, distributed on Blu-Rays ;-) :lol:
Post Reply