Go to previous/next sibling folder

Features wanted...
Post Reply
admin
Site Admin
Posts: 64232
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Go to previous/next sibling folder

Post 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?
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Filehero
Posts: 2702
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Go to previous/next sibling folder

Post by Filehero »

Yes. :biggrin:

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

Horst
Posts: 1305
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Go to previous/next sibling folder

Post by Horst »

I miss this sometimes because I have this function in Total Commander :)
Windows 11 Home, Version 24H2 (OS Build 26100.5074)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1396a (x64), Everything Toolbar 2.0.3, Listary Pro 6.3.5.94

WirlyWirly
Posts: 246
Joined: 21 Oct 2020 23:33
Location: Win 10 @ 100% (3440x1440)

Re: Go to previous/next sibling folder

Post by WirlyWirly »

As someone who doesn't use the tree, it is handy when I remember it.

viewtopic.php?f=7&t=16243

admin
Site Admin
Posts: 64232
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Go to previous/next sibling folder

Post by admin »

Really? Can't find anything about it. Is there a default keyboard shortcut?
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Horst
Posts: 1305
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Go to previous/next sibling folder

Post 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 ?
Windows 11 Home, Version 24H2 (OS Build 26100.5074)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1396a (x64), Everything Toolbar 2.0.3, Listary Pro 6.3.5.94

admin
Site Admin
Posts: 64232
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Go to previous/next sibling folder

Post 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.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Horst
Posts: 1305
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Go to previous/next sibling folder

Post 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...
Windows 11 Home, Version 24H2 (OS Build 26100.5074)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1396a (x64), Everything Toolbar 2.0.3, Listary Pro 6.3.5.94

admin
Site Admin
Posts: 64232
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Go to previous/next sibling folder

Post by admin »

Well, it will be cooler here. :)
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Norn
Posts: 479
Joined: 24 Oct 2021 16:10

Re: Go to previous/next sibling folder

Post 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;};
Windows 11 24H2 @100% 2560x1440

admin
Site Admin
Posts: 64232
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Go to previous/next sibling folder

Post by admin »

Seems to go up. Not to sibling.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

bossi
Posts: 83
Joined: 30 Jul 2022 11:09

Re: Go to previous/next sibling folder

Post 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;
	}
Win11-Pro , 3840x2160@100% , XY=x64 newest

admin
Site Admin
Posts: 64232
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Go to previous/next sibling folder

Post by admin »

Nice :tup:
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Norn
Posts: 479
Joined: 24 Oct 2021 16:10

Re: Go to previous/next sibling folder

Post 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.)
Windows 11 24H2 @100% 2560x1440

admin
Site Admin
Posts: 64232
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Go to previous/next sibling folder

Post by admin »

Yep, tb only.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Post Reply