[REQ] More search-criteria

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Dark-Star
Junior Member
Junior Member
Posts: 74
Joined: 2004-12-01, 14:15 UTC
Location: Reutlingen, GERMANY

[REQ] More search-criteria

Post by *Dark-Star »

Hi,

Recently I needed to search for all files (on a network share) which had a certain domain user as owner. Since TC couldn't do that, I had to write a custom tool. I think it would be nice to have (at least) this option in the "search file" dialog.

While I think that searching for arbitrary ACLs would be a big hassle to implement, some of the following options might be an interesting feature for some use cases:
- Search by owner (as described above)
- Search files/directories (not) readable by current user
- Search files/directories (not) writeable by current user

Opinions?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Dark-Star
Opinions?
There is no need for a feature request. For custom searches TC has a content plug-in system.

Search for owner is available in
http://www.totalcmd.net/plugring/SecInfo.html
http://www.totalcmd.net/plugring/FileX.html

For access rights there will be plug-ins sooner or later.
User avatar
ND
Member
Member
Posts: 150
Joined: 2006-04-10, 16:24 UTC
Location: Sibiu, RO

Post by *ND »

Lefteous wrote:Search for owner is available in...
And even Lefteous' own
http://www.totalcmd.net/plugring/shelldetails.html


And (1 year ago) in the comments/description for Security Info plugin
Alextp wrote:In the future versions it will also allow to show access permissions
so maybe now he can be persuaded to implement that.
aNDreas Bolotă
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Re: [REQ] More search-criteria

Post by *eugensyl »

Dark-Star wrote:Hi,

Recently I needed to search for all files (on a network share) which had a certain domain user as owner. Since TC couldn't do that, I had to write a custom tool. I think it would be nice to have (at least) this option in the "search file" dialog.

While I think that searching for arbitrary ACLs would be a big hassle to implement, some of the following options might be an interesting feature for some use cases:
- Search by owner (as described above)
- Search files/directories (not) readable by current user
- Search files/directories (not) writeable by current user

Opinions?
I agree to do this with a plugin like Lefteous.

In addition... I don't want to add another topic... because it's the right one. :roll:

What about a new search criteria:
[x] Only Files (NEGATION - not Directory Attribute)

Is mean, if you looking for ONLY files named 'language' you don't need a lot of 'language' directories. Sometimes...

Now we can find a directory (by Directory Attribute) but only files I don't know how.
Maybe if I put *.*\ in IGNORE list but in this case I don't see anything. Anyway is more complicated.

However it's quite simple to do a check box.

In extension, in advanced tab search, a check box for inverse any criteria it will be interesting. Don't you?

I want to be more clear:
NOT date between ...
NOT older than...
NOT size like...
NOT attribute...

Global switch for all is enough, I suppose. This is like ' | ' for files mask.



Best wishes,
My Best Wishes,

Eugen
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2eugensyl
Now we can find a directory (by Directory Attribute) but only files I don't know how.
You just have to remove the square in the checkbox next to Directory in the Attributes section of the Advanced tab - See: http://madsenworld.dk/tcmd/dir1.png

If you on the other hand ONLY want to find directories (and not files) then you mark Directories whit a checkmark like this: http://madsenworld.dk/tcmd/dir2.png

The attributes checkboxes has 3 states - not 2!
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

petermad wrote:2eugensyl
Now we can find a directory (by Directory Attribute) but only files I don't know how.
You just have to remove the square in the checkbox next to Directory in the Attributes section of the Advanced tab - See: http://madsenworld.dk/tcmd/dir1.png

If you on the other hand ONLY want to find directories (and not files) then you mark Directories whit a checkmark like this: http://madsenworld.dk/tcmd/dir2.png

The attributes checkboxes has 3 states - not 2!
2petermad
That's it!

Thank you very much! It's a good point.
In search section, in wincmd.ini file it was saved:

language |*.*\

witch doesn't work if this string is introduce in search field. NOP
Unfortunately, in HELP those 3 states of attributes, new I think, are not documented. YET! :lol:

On the other hand, bellow 'Attribute' in 'Search - Advanced tab' is enough space to put an short explanation like this:

No/Yes/Doesn't matter

Thanks again!

Best wishes,
My Best Wishes,

Eugen
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

those 3 states of attributes, new I think
That is not new - it has been since that for ages - I just checked that with an old Windows Commander v 4.03 from 1999.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

My req at this topic, not relataed with the prevous one:

It would be nice to have <= and >= options in file size definition.
Today, while determinig the best cluster size, I wanted to know how many files would fit in one cluster (depending on it's size). So I did 3 searches: < 32769, < 65537, < 131073 bytes. Wouldn't it be nicer to write <= 32 KB, <= 64KB, <= 128 KB ?
Of course I could leave this one byte, write < 32KB etc., but because some file types are aligned (i.e. executables), the result may significantly different.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2m^2
Use a custom search. All operators are already there.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Thanks, Lefteous, that's it. But woudn't it be better to have it in Advanced window?
Post Reply