Disable Folders always on top

English support forum

Moderators: Hacker, petermad, Stefan2, white

7995
Junior Member
Junior Member
Posts: 8
Joined: 2021-12-13, 10:44 UTC

Disable Folders always on top

Post by *7995 »

When i use sorting by date (option for folders is as files) i get files and folders by date but folders always on top, above files. How to let TC mix when by date together?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Disable Folders always on top

Post by *Stefan2 »

Hi and welcome

7995 wrote: 2021-12-13, 10:46 UTC ...
How to let TC mix when by date together?

This is not possible and will not be implemented by author.

Folders will always stay separated on top to have them in view, that's a main security concept of TC.



 
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6981
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Disable Folders always on top

Post by *Horst.Epp »

I follow Christians design decision.
If folders and files are mixed one can easily delete complete trees
just by marking a range of files.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
7995
Junior Member
Junior Member
Posts: 8
Joined: 2021-12-13, 10:44 UTC

Re: Disable Folders always on top

Post by *7995 »

Stefan2 wrote: 2021-12-13, 11:44 UTC that's a main security concept of TC
What's the point? I have hundred folders in my tab. It's inconvenient to search for files and work with them. If i get a new file i have to scroll down everytime. Any reasonable cause for that? I'm sure users are responsible for their decisions.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6981
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Disable Folders always on top

Post by *Horst.Epp »

7995 wrote: 2021-12-13, 13:13 UTC
Stefan2 wrote: 2021-12-13, 11:44 UTC that's a main security concept of TC
What's the point? I have hundred folders in my tab. It's inconvenient to search for files and work with them. If i get a new file i have to scroll down everytime. Any reasonable cause for that? I'm sure users are responsible for their decisions.
Thats not a problem.
Just use a button to only show files.

Code: Select all

TOTALCMD#BAR#DATA
cd *.*|*\

WCMICONS.DLL,24
Files only

0
-1
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
7995
Junior Member
Junior Member
Posts: 8
Joined: 2021-12-13, 10:44 UTC

Re: Disable Folders always on top

Post by *7995 »

Horst.Epp wrote: 2021-12-13, 13:19 UTC Just use a button to only show files.
Thanks for workaround but i still don't understand why the author doesn't want to let users choose what they want. Anyway, maybe i can move folders below files? I mean to setup files always on top.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6981
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Disable Folders always on top

Post by *Horst.Epp »

7995 wrote: 2021-12-13, 13:22 UTC
Horst.Epp wrote: 2021-12-13, 13:19 UTC Just use a button to only show files.
Thanks for workaround but i still don't understand why the author doesn't want to let users choose what they want. Anyway, maybe i can move folders below files? I mean to setup files always on top.
No, you can't.
I use buttons to show Files, Folders or All
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Disable Folders always on top

Post by *Stefan2 »

7995 wrote: 2021-12-13, 13:13 UTC
Stefan2 wrote: 2021-12-13, 11:44 UTC that's a main security concept of TC
What's the point? I have hundred folders in my tab. It's inconvenient to search for files and work with them.
If i get a new file i have to scroll down everytime. Any reasonable cause for that? I'm sure users are responsible for their decisions.

It's a design decision of the programmer to prevent user from doing mistakes.


You can use internal command cm_GoToFirstFile so you don't have to scroll down yourself.

See TOTALCMD.INC text file
cm_GoToFirstFile=2050;Place cursor on first file in list

You can type it in TC command line, add an button with that command, assign an keyboard shortcut to or add an alias for the TC command line.



 
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Disable Folders always on top

Post by *Hacker »

Stefan2,
It's a design decision of the programmer to prevent user from doing mistakes.
It is rather a program logic decision. When working with file lists, TC assumes that folders are always first and files always last. For this to change, TC's code would have to be checked for all the places which implicitly assume this to be the case.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Dalai
Power Member
Power Member
Posts: 9970
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Disable Folders always on top

Post by *Dalai »

When in a directory with many files I often use the filter function: press Ctrl+S and start typing the name you want, usually with an asterisk in front of it if it's unclear if the name starts with the first term/character. That way the list is reduced to the matching files (and directories) so it's easier to find the relevant things.

See also TC's Options > Quick Search.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
7995
Junior Member
Junior Member
Posts: 8
Joined: 2021-12-13, 10:44 UTC

Re: Disable Folders always on top

Post by *7995 »

Stefan2 wrote: 2021-12-13, 14:04 UTC
See TOTALCMD.INC text file
cm_GoToFirstFile=2050;Place cursor on first file in list



 
Nice. Thanks.

But i'm still confused, why the author decides what users need? Okay, some users can make mistakes but some users need some options. Don't set "dangerous" option by default and everyone will be happy.
7995
Junior Member
Junior Member
Posts: 8
Joined: 2021-12-13, 10:44 UTC

Re: Disable Folders always on top

Post by *7995 »

Horst.Epp wrote: 2021-12-13, 13:19 UTC

Code: Select all

TOTALCMD#BAR#DATA
cd *.*|*\

WCMICONS.DLL,24
Files only

0
-1
Can you give me the code for toggle? This button only hides folders. But how to show them back? Can you give me the code for button hide/show folders?
xiaomm250
Junior Member
Junior Member
Posts: 25
Joined: 2021-12-03, 09:43 UTC

Re: Disable Folders always on top

Post by *xiaomm250 »

7995 wrote: 2021-12-13, 15:03 UTC
Horst.Epp wrote: 2021-12-13, 13:19 UTC

Code: Select all

TOTALCMD#BAR#DATA
cd *.*|*\

WCMICONS.DLL,24
Files only

0
-1
Can you give me the code for toggle? This button only hides folders. But how to show them back? Can you give me the code for button hide/show folders?
folders always on top makes me unhappy too
User avatar
tuska
Power Member
Power Member
Posts: 4060
Joined: 2007-05-21, 12:17 UTC

Re: Disable Folders always on top

Post by *tuska »

  1. CTRL+F10 Show all files
    Menu "Help" - "Keyboard" ...
  2. Menu "Show" - "All Files Ctrl+F10"
  3. Button with command:

    Code: Select all

    cm_SrcAllFiles
    See: cm_CommandBrowser => Filter: cm_Srca

    Code: Select all

    cm_SrcAllFiles	312	Source: All files
7995
Junior Member
Junior Member
Posts: 8
Joined: 2021-12-13, 10:44 UTC

Re: Disable Folders always on top

Post by *7995 »

tuska wrote: 2021-12-13, 15:39 UTC
  1. CTRL+F10 Show all files
    Menu "Help" - "Keyboard" ...
  2. Menu "Show" - "All Files Ctrl+F10"
  3. Button with command:

    Code: Select all

    cm_SrcAllFiles
    See: cm_CommandBrowser => Filter: cm_Srca

    Code: Select all

    cm_SrcAllFiles	312	Source: All files
This is a separate button. Can i create a button which as a toggle has two commands: show/hide foiders?
Post Reply