Mixed sorting of folders and files, or sort by size?
Moderators: Hacker, petermad, Stefan2, white
Mixed sorting of folders and files, or sort by size?
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.
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.
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.jcmn wrote:Is that sort feature difficult to implement?
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.
Mixing Folders and Files
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
* * *
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
* * *
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
@Hacker
I don't see how that can be accurate.
Open up a command prompt, Dir %winDir%\system32 > __DIR.txt
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...
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
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...
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
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.
Pretty much straight from the Ahk-Help Doc, changing MyDocuments to System32 and adding a distinction for \DIRs\
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
Balderstrom,
Roman
I know, but I do not understand why your comment is directed at me. Have I said anything related?I said, I don't see how there can be a performance gain to keeping Dirs and Files separate.
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.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
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.
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.
Re: Mixed sorting of folders and files, or sort by size?
Hi,
Any news about "mixed" sorting of files-folders??
Thank you,
Any news about "mixed" sorting of files-folders??
Thank you,
TC license #346559