Quick search - search for filesize

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Quick search - search for filesize

Post by *deus-ex »

I'd like to request a simple enhancement of the quick search feature. Presently you can quick search for filenames in the filewindow by typing in letters and numbers into the quick search field. I'd like to be able to quick search by filesize, too. This is especially useful in branch view on a huge set of files, allowing to quickly move the cursor to a file(s) with a certain filesize. I imagine a second input field next to the quick search field, which accepts numbers only, would by sufficient.
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Re: Quick search - search for filesize

Post by *Vochomurka »

First, if you switch to "Advanced" tab in "Find Files" dialog, you will see the "File size" controls with many options.
Second, in branch view you mention it is easy to visually find specific size.

I don't see any sense in adding the "Size" field in quick search window
Single user license #329241
PowerPro scripts for Total Commander
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Quick search - search for filesize

Post by *deus-ex »

Vochomurka wrote: 2018-08-06, 13:02 UTC First, if you switch to "Advanced" tab in "Find Files" dialog, you will see the "File size" controls with many options.
Second, in branch view you mention it is easy to visually find specific size.
I do now this functionality very well, however this does not belong here at all. This topic is about expanding the quick search functionality.
I don't see any sense in adding the "Size" field in quick search window
Then reread my request which includes a usage example, you might find a sense then.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Quick search - search for filesize

Post by *Dalai »

deus-ex wrote: 2018-08-06, 09:49 UTCI imagine a second input field next to the quick search field, which accepts numbers only, would by sufficient.
And the next person imagines a third input field for date, and the next an input field for attributes, and the next ...? I hope you get the idea.

You could make use of the search function, maybe saving them so you can access them via Num+ and/or Ctrl+F12 (Show > Custom).

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
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Quick search - search for filesize

Post by *deus-ex »

Dalai wrote: 2018-08-06, 14:24 UTCAnd the next person imagines a third input field for date, and the next an input field for attributes, and the next ...? I hope you get the idea.
And if so, what's the problem? That is hardly a argument against my suggestion. By default the quick search input box isn't visible until the user calls the functionality. Furthermore, any additional search field can be implemented either as optional field that could be toggled via an configuration dialog, or the existing quick search dialog could be reused and expanded by some radio-button logic allowing to switch between filename, filesize and what-not search.

If anybody would be so reluctant to additions and improvements, we would still be running Window Commander v1.0. There are many functions and options available in TC that I do not use and require and never asked for, but I understand that there are many other users who requested and are grateful for those. If nothing else, it is the plethora of options and functionality which makes TC stand out from the competition.

Dalai wrote: 2018-08-06, 14:24 UTCYou could make use of the search function, maybe saving them so you can access them via Num+ and/or Ctrl+F12 (Show > Custom).
Running a normal search for a certain filesize, you are presented with the files matching the search criteria, all other files are inaccessible (not visible in the filewindow) at this moment, until you reset the search criteria and reread the source. This is inconvenient and time consuming, especially when working with a huge set of files in branch view, like I described in the example of my initial post. Also, this time consuming search has to be reprocessed for each and every individual filesize. For the same reason the quick search for filenames was invented in the first place, with the label "quick" being key.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Quick search - search for filesize

Post by *Hacker »

deus-ex,
This can be done using QuickSearch eXtended.

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
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Quick search - search for filesize

Post by *deus-ex »

Hacker wrote: 2018-08-06, 16:11 UTCThis can be done using QuickSearch eXtended.
Hi Roman,

thanks for the tip. I already had a look at this tool earlier this day but could not find any hints in the manual whether it supports quick search for filesize. So I installed it now, yet I can't seem to figure out how to do a quick search for filesize. As you seem to know how, can you please provide a little guidance?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Quick search - search for filesize

Post by *Hacker »

deus-ex,
Sure. Not out of the box, unfortunately, but you can write a very simple WDX using WinScript Advanced, this should not take longer than 30 minutes from start to end, if you know a little bit of AHK (you need 2 lines of script). Then take a look at how to filter by content plugins using QSX.

HTH
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
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Quick search - search for filesize

Post by *deus-ex »

Well, that's quite a far cry from what one could expect when you wrote "This can be done using QuickSearch eXtended". Thank you for trying to help, much appreciated. So my initial request to expand TCs quick search feature remains active.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Quick search - search for filesize

Post by *petermad »

2deus-ex
yet I can't seem to figure out how to do a quick search for filesize
I don't use QSE myslef, but acording to the manual you can use any wdx plugin, so you can just use a wdx that provides filesize (there are many) and set it up under the tab "Content plugins" - page 4 and 6 in the manual.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Quick search - search for filesize

Post by *Usher »

I think that most users don't know exact file size, so such quick search is useless for them. I prefer to save selection defined for search and use it as a custom view (f.e. show files larger than 1 GiB). But it's not a perfect solution as I cannot define filesize range (f.e. between 1 GiB and 2 GiB). And such a feature would be welcome by many users, I think.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Quick search - search for filesize

Post by *Horst.Epp »

Usher wrote: 2018-08-10, 17:08 UTC I think that most users don't know exact file size, so such quick search is useless for them. I prefer to save selection defined for search and use it as a custom view (f.e. show files larger than 1 GiB). But it's not a perfect solution as I cannot define filesize range (f.e. between 1 GiB and 2 GiB). And such a feature would be welcome by many users, I think.
This can be done using Everything sytax in TC search.
The following finds all entries between 100 and 200mb for example:
ev:size:>100mb size:<200mb
or
ed:size:>100mb size:<200mb
Look on the Everything search syntax for more info.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Quick search - search for filesize

Post by *Dalai »

Usher wrote: 2018-08-10, 17:08 UTC[...] as I cannot define filesize range (f.e. between 1 GiB and 2 GiB).
Yes, you can with the Plugins tab:

Code: Select all

tc | size | > | 1 | Gbytes
tc | size | < | 2 | Gbytes
You can reduce the rules by one when combining it with the size option on the Advanced tab.

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
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Quick search - search for filesize

Post by *Usher »

Dalai wrote: 2018-08-10, 18:18 UTC Yes, you can with the Plugins tab
You can reduce the rules by one when combining it with the size option on the Advanced tab.
Ahaaa… Thanks for a very good hint.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Quick search - search for filesize

Post by *Hacker »

deus-ex,
WinScript Advanced 1.7

options.ini

Code: Select all

[Script] 
ActiveScripts=FileSize

[FileSize]
Script=FileSize.ahk
content=FileSize
extensions=*
FoldersPaths=1
FileSize.ahk

Code: Select all

#NoTrayIcon
SetBatchLines, -1

FileGetAttrib, Attributes, %FileName%
IfInString, Attributes, D
{
	DirSize = 0
	Loop, Files, %FileName%\*.*, FR
		DirSize += %A_LoopFileSize%
	Content = %DirSize%
}
Else
	FileGetSize, Content, %FileName%
tcmatch64.exe
Content Plugins
- Choose content plugin file - C:\Totalcmd\Plugins\Content\WinScript Advanced\WinScriptsAdv.wdx64
- Fields of the content plugin - FileSize
- Choose group - 2
- Add
- VV

QuickSearch eXtended
/123456789
(where 123456789 is the filesize being searched for in bytes)

HTH
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.
Post Reply