Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
Moderators: Hacker, petermad, Stefan2, white
Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
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!
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!
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
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"
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"
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
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!
Interesting solution to use search, thanks.

The only "obstacle" left is that the directories are still sorted after original path, but I really appreciate this solution, thanks!
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
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.
To combine a search and view change you have to create a custom command.
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
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
Although I can't find the "LoadSearch" command in the "Choose command" dialog box...?
Image: https://www.imagebam.com/view/MEG7TYD
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
You run a to old version of TC.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
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
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
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
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?
What's the name of the command supposed to be? "cm_LoadSearch" or something?
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
No, its a command with parameters.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?
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
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
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
I cannot find LOADLIST nor LOADSEARCH in the Choose command search box. Weird.
I'm on TC v10.52 x64.

I'm on TC v10.52 x64.
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
These commands are located in the file "TOTALCMD.INC".
I would simply "install over" TC 10.52 again.
Code: Select all
Name/Ext Size Date Attr
TOTALCMD.INC 28 096 26.10.2022 11:52 -a--
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
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!
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!
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
Ahh, now I understand - you were looking for these commands here: Redefine hotkeys (Keyboard remapping)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...
Configuration > Options... > Misc. > Hotkey, e.g.
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"...
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"...
- 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
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
2deckard
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 directoriesIs 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.
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
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
Re: Any way to temporarily view ("flatten") one layer of directories to only show the subdirs?
Loadsearch has been around for 15 years, starting with TC 7.0.

But the improvement appeared in TC 10b1:
2petermadHistory.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)
I also immediately thought of Ctrl+Shift+B. There was no clarification about the first level.
Overquoting is evil! 👎