Page 1 of 2

Go to previous/next sibling folder

Posted: 15 Aug 2025 10:49
by admin
Today, I realized that I had been missing this functionality for years, both as buttons and as keyboard shortcuts, when the focus is not in the tree.

Am I the only one?

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 11:17
by Filehero
Yes. :biggrin:

It‘s your product. Since you miss it you should add it.

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 15:43
by Horst
I miss this sometimes because I have this function in Total Commander :)

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 15:48
by WirlyWirly
As someone who doesn't use the tree, it is handy when I remember it.

viewtopic.php?f=7&t=16243

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 15:49
by admin
Really? Can't find anything about it. Is there a default keyboard shortcut?

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 15:52
by Horst
admin wrote: 15 Aug 2025 15:49 Really? Can't find anything about it. Is there a default keyboard shortcut?
For whom is this question ?

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 16:00
by admin
Horst wrote: 15 Aug 2025 15:52
admin wrote: 15 Aug 2025 15:49 Really? Can't find anything about it. Is there a default keyboard shortcut?
For whom is this question ?
For you, Horst.

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 16:22
by Horst
This is made with the TC Add-on TCFS2.
The functions are started as TC buttons, no keyboard shortcut.
TCFS2 provides its on script engine.
It's free as all TC add-ons and plugins.

Code: Select all

TCFS2 Addon for Total Commander
-------------------------------
Tool allows controlling TC window modes:
+ maximize/restore window
+ move/resize window
+ hide/show window title
+ enable topmost window mode
+ hide/show any TC interface item
+ change dirs in panels
+ move file panels separator
+ send keypresses
+ undo last action using backup command
+ etc...

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 16:24
by admin
Well, it will be cooler here. :)

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 19:38
by Norn
This is what I implemented for a new user in 2023. It’s not elegant but simple. . .
#523; sel "+1"; if(exists(<curitem>) == "2") {#160;};

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 20:48
by admin
Seems to go up. Not to sibling.

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 21:25
by bossi
its just 2 functions , assignable to a shortcut via User Commands :

Code: Select all

"_ : go_down"    
	go_down();
	function go_down()      
		$parentFolders = listfolder(gettoken(<curpath>, -2, "\",,1), , 2);
		$count_folders = gettoken($parentFolders, "count", "|"); // count all folders

		$cur_index = gettokenindex(<curpath>, $parentFolders, , ""); //  Index of curent folder
		$next_index = $cur_index+1;
		if($next_index <= $count_folders) // if current index is less  than max ix of folders
			{
			$item = gettoken($parentFolders, $next_index, "|"); 
			goto $item;
			}
		else {break;
	}
//
"_ : go_up"	   
	go_up();
	function go_up()        
		$parentFolders = listfolder(gettoken(<curpath>, -2, "\",,1), , 2);
		$count_folders = gettoken($parentFolders, "count", "|"); // count all folders		

		$cur_index = gettokenindex(<curpath>, $parentFolders, , ""); //  Index of curent folder
		$next_index = $cur_index-1;
		if($next_index <= $count_folders) // if current index is less  than max ix of folders
			{
			$item = gettoken($parentFolders, $next_index, "|");  
			goto $item;
			}
		else {break;
	}

Re: Go to previous/next sibling folder

Posted: 15 Aug 2025 21:44
by admin
Nice :tup:

Re: Go to previous/next sibling folder

Posted: 16 Aug 2025 21:01
by Norn
admin wrote: 15 Aug 2025 20:48 Seems to go up. Not to sibling.
Sort Folders Apart...
(Will this not be added to the VB version? No problem, I will recommend the tB version to new users.)

Re: Go to previous/next sibling folder

Posted: 16 Aug 2025 21:06
by admin
Yep, tb only.