Mixed sorting of folders and files, or sort by size?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jcmn
Junior Member
Junior Member
Posts: 5
Joined: 2006-12-06, 14:17 UTC

Mixed sorting of folders and files, or sort by size?

Post by *jcmn »

Actually in TC I can't find the possibility of sort folders the same way as files (e.g. by date). Folders are always kept first even if they are older (or younger according to sort order) that files.

There are other file managers that handle this.

Does TC have this possibility or any workaround?

Often I have lister views with many folders wher I can't see the first file unless scrolling down.
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post by *jjk »

Configuration/Display Sorting directories
Choose Like files

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

Post by *Hacker »

jcmn,
No, sorry, it is not possible to sort files in between or before directories.

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.
jcmn
Junior Member
Junior Member
Posts: 5
Joined: 2006-12-06, 14:17 UTC

Post by *jcmn »

I have that configuration setup but it doesn't do what I want

Let me give an example


Folder1 - 10/07/2008
Folder2 - 10/10/2008
File1 - 10/09/2008

dates in format MMDDYYYY

this three objects should be in descending sort order by date like

Folder2
File1
Folder1
jcmn
Junior Member
Junior Member
Posts: 5
Joined: 2006-12-06, 14:17 UTC

Post by *jcmn »

OK I understood

I only see a workaround : filter folders out with *.*|*\

Is that sort feature difficult to implement?
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

jcmn wrote:Is that sort feature difficult to implement?
The author has said that many functions rely upon directories being at the beginning of file lists, so I guess yes, it would be difficult.

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.
goldworld
Junior Member
Junior Member
Posts: 3
Joined: 2010-09-26, 13:38 UTC

Mixing Folders and Files

Post by *goldworld »

There is a work around to sort files and folders together.

The trick is to create a shortcut for your folder in the same parent directory.

If you create your shortcut for your folder on the same day you create the folder the creation dates will be the same and the folder shortcut can be sorted with your other files.

If however you have older folders you want shortcuts with the same date for the remedy is to change the time stamp on your shortcut.

There are several freeware utilities to accomplish this:

KW_StampEm32 File Stamper

eXpress TimeStamp Toucher

* * *
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@Hacker
I don't see how that can be accurate.
Open up a command prompt, Dir %winDir%\system32 > __DIR.txt

Code: Select all

            1491 File(s)    256,852,423 bytes
              24 Dir(s)   4,584,701,952 bytes free
That generates/calculates in less than a second. (and my PC is antideluvian -- already celebrated it's 5th birthday).

Not that I really want this functionality: I have to use a Mac sometimes (and periodically more than _sometimes_) and it drives me absolutely nuts that its crippled finder needs to be hacked to pieces to get a "sane" list of Dirs before files --- and only IF you edit system files to change the name of a directory - adding a space in front of it's name AND sort everything by type...
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Balderstrom,
I beg your pardon?

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
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I said, I don't see how there can be a performance gain to keeping Dirs and Files separate. Even the deprecated CMD.exe can quickly generate a List of Dirs/Files sorted by Name - with Dirs mixed in with Files.

Here is an extremely basic, ahk example that creates a the System32 directory in a mixed Dir/File listview with a scollbar and AutoResizing columns -- as quick as cmd.exe can dump the list into a file.

Code: Select all

#g::
EnvGet, dir, WinDir
dir.="\System32"

; Create the ListView with two columns, Name and Size:
Gui, Add, ListView, r20 w700 gMyListView, Name|Size (KB)

; Gather a list of file names from a folder and put them into the ListView:
Loop, %dir%\*, 1
	if( InStr(A_LoopFileAttrib, "D") )
	    LV_Add("", "\" A_LoopFileName "\", A_LoopFileSizeKB)
	else
	    LV_Add("", A_LoopFileName, A_LoopFileSizeKB)
	

LV_ModifyCol()  ; Auto-size each column to fit its contents.
LV_ModifyCol(2, "Integer")  ; For sorting purposes, indicate that column 2 is an integer.

; Display the window and return. The script will be notified whenever the user double clicks a row.
Gui, Show
return
Pretty much straight from the Ahk-Help Doc, changing MyDocuments to System32 and adding a distinction for \DIRs\
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Balderstrom,
I said, I don't see how there can be a performance gain to keeping Dirs and Files separate.
I know, but I do not understand why your comment is directed at me. Have I said anything related?

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
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I guess not, I somehow interpreted rely upon as performance related prior to my morning coffee.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Wojtek
Junior Member
Junior Member
Posts: 65
Joined: 2010-02-07, 11:58 UTC
Location: Germany

Post by *Wojtek »

Hello!

As many years have passed, is there already a way to sort files and folders together?

like this:

File 1.ext
File 2.ext
File 3.ext
[Folder 1]
[Folder 2]
Some other file.ext
The last file.ext
[Unnamed Folder]
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

Hi,

No, not with the "sort methods" of TC.

Maybe, you are interested in this suggested procedure(s):
http://ghisler.ch/board/viewtopic.php?t=45501
cm_ExecuteDOS
dir /ON <ENTER>

etc.
Post Reply