Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
deckard
Junior Member
Junior Member
Posts: 80
Joined: 2003-10-10, 09:18 UTC

Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *deckard »

Hi all!

I have a lot of subdirectories (B) sorted in top level directories (A).

Is there any way I can be on the top level, and temporarily "flatten" one layer of directories to only show the subdirectories (B)? Like CTRL+B, but in a more limited way.

Thanks!
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *ZoSTeR »

Use "Search"
Select "Search in subdirectories" = 1 level
Under Advanced check Attributes + Directory

Start search and feed to listbox.

If you need a very specific level, you could also use the FileX plugin with "DepthLevel"
deckard
Junior Member
Junior Member
Posts: 80
Joined: 2003-10-10, 09:18 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *deckard »

Thanks for your quick reply!

Interesting solution to use search, thanks. :) It would be cool if a saved search could be invoked easily, but I don't think it seems possible to assign a keyboard shortcut to a saved search or put it in the Start menu?

The only "obstacle" left is that the directories are still sorted after original path, but I really appreciate this solution, thanks!
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *ZoSTeR »

You can add a custom column with "[=tc.name]" and sort by that. You can also save your search settings and apply them with a "LoadSearch" command and bind this to a hotkey. Options -> Misc -> Hotkey. It's basically the same for the Start menu. Use the magnifer icon and look for "Search" and "View".

To combine a search and view change you have to create a custom command.
deckard
Junior Member
Junior Member
Posts: 80
Joined: 2003-10-10, 09:18 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *deckard »

Cool, thanks for your generous help!

Although I can't find the "LoadSearch" command in the "Choose command" dialog box...?

Image: https://www.imagebam.com/view/MEG7TYD
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *Horst.Epp »

deckard wrote: 2022-10-31, 10:40 UTC Cool, thanks for your generous help!

Although I can't find the "LoadSearch" command in the "Choose command" dialog box...?

Image: https://www.imagebam.com/view/MEG7TYD
You run a to old version of TC.
Loadsearch is part of TC 10.52
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
deckard
Junior Member
Junior Member
Posts: 80
Joined: 2003-10-10, 09:18 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *deckard »

I actually upgraded to v10.52 just before posting this, strange.

What's the name of the command supposed to be? "cm_LoadSearch" or something?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *Horst.Epp »

deckard wrote: 2022-10-31, 11:31 UTC I actually upgraded to v10.52 just before posting this, strange.

What's the name of the command supposed to be? "cm_LoadSearch" or something?
No, its a command with parameters.
Its name is simply LOADLIST and its found under this category and unter All of course
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
deckard
Junior Member
Junior Member
Posts: 80
Joined: 2003-10-10, 09:18 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *deckard »

I cannot find LOADLIST nor LOADSEARCH in the Choose command search box. Weird. :?

I'm on TC v10.52 x64.
User avatar
tuska
Power Member
Power Member
Posts: 4113
Joined: 2007-05-21, 12:17 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *tuska »

These commands are located in the file "TOTALCMD.INC".

Code: Select all

Name/Ext	Size	Date			Attr
TOTALCMD.INC	28 096	26.10.2022 11:52	-a--
I would simply "install over" TC 10.52 again.
deckard
Junior Member
Junior Member
Posts: 80
Joined: 2003-10-10, 09:18 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *deckard »

Thanks for the tip. My file TOTALCMD.INC had the same properties that you posted, and I could see the rows containing LOADLIST and LOADSEARCH within the file. I also did a re-install (re-update, more correctly. I haven't uninstalled in between.).

But I still can't find those options in the GUI via Options / Misc / Command Chooser button... oh well, it's not super important. I don't want to waste anyone's time. :)

Thanks for all your input!
User avatar
tuska
Power Member
Power Member
Posts: 4113
Joined: 2007-05-21, 12:17 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *tuska »

deckard wrote: 2022-10-31, 22:20 UTC But I still can't find those options in the GUI via Options / Misc / Command Chooser button...
Ahh, now I understand - you were looking for these commands here: Redefine hotkeys (Keyboard remapping)
Configuration > Options... > Misc. > Hotkey, e.g. ✅ Ctrl + F6 > Click on the magnifying glass ...

To define a hotkey e.g. for the command LOADSEARCH <stored search> you need an em_command:
Assign a shortcut to an em_command
To get an overview of the already used shortcuts click on Configuration - Options - Misc., then on the drop-down arrow
to the right of "Hotkey" or menu "Help" - "? Keyboard".

Configuration - Options... - Misc. - Redefine hotkeys (Keyboard remapping) - choose your hotkey(s) by clicking the appropriate [dropdown] field(s),
e.g. Ctrl+F6, "Default command (no remapping)" is shown, then - click on the magnifying glass to the right - click on "usercmd.ini" under "Category",
Button "New..." - type in, e.g.: em_LOADSEARCH_MySavedSearch (no blanks!), OK, Command: LOADSEARCH, Parameters: MySavedSearch
OK, OK, Important: click on the green checkmark! - OK - FINISHED!

Remarks:
1. As an alternative, you can make a right-click on the button, click on "change"..., click on the magnifying glass to the right ...
2. As an alternative, you can type in: cm_CommandBrowser <ENTER> in command line of TC, click on "usercmd.ini" under "Category"...
The following commands can be found in the CommandBrowser:
- Enter cm_CommandBrowser in the TC command line and press ENTER.
- Option: Click on "Commands with parameters"
- Enter load in the "Filter"-field

Code: Select all

LOADLIST <filename>	   	Load complete list (like search result) from file (supports modifier 0 = no error dialogs)
LOADSEARCH <stored search>	Open stored search operation
User avatar
petermad
Power Member
Power Member
Posts: 16115
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *petermad »

2deckard
Is there any way I can be on the top level, and temporarily "flatten" one layer of directories to only show the subdirectories (B)? Like CTRL+B, but in a more limited way.
I am not quite sure what you want here - but there is the command: cm_DirBranchSel (Ctrl+Shift+B) that only shows branch view for selected directories
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 3015
Joined: 2020-01-18, 04:03 UTC

Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?

Post by *Fla$her »

Horst.Epp wrote: 2022-10-31, 10:52 UTCLoadsearch is part of TC 10.52
Loadsearch has been around for 15 years, starting with TC 7.0. :mrgreen:
But the improvement appeared in TC 10b1:
History.txt wrote:12.08.20 Added: Command LOADSEARCH <saved name> (e.g. on button): Put one equal sign = in front of name to start searching immediately, two == to start and feed to listbox after search (32/64)
2petermad
I also immediately thought of Ctrl+Shift+B. There was no clarification about the first level.
Overquoting is evil! 👎
Post Reply