winsiderss / systeminformer

A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware. Brought to you by Winsider Seminars & Solutions, Inc. @ http://www.windows-internals.com
https://systeminformer.sourceforge.io
MIT License
10.82k stars 1.38k forks source link

Allow searching for exact string and/or in certain column #1876

Open CherryDT opened 11 months ago

CherryDT commented 11 months ago

Description of the feature, modification, idea or suggestion

I often use the search box (ctrl+K) to search for a specific process by name or ID.

Unfortunately I often run into the problem that the search is not looking for an exact match and I can't specify that, and it also searches all columns, including unwanted ones like command line. (Sometimes I want command line search, but most often I just want to search the name.)

For example, when I search for node, it will also show a ton of VSCode processes that have --ms-electron-run-as-node in the command line.

I'd love to have a way to...

1) Specify I want an exact match (but optionally with extra wildcards in places I specify), like "node" (doesn't match node.exe, only WSL node processes) or "node*" (which would match both). 2) Specify I want to search only a certain column, like Name:node / Name:"node" or something like that. 3) What would also be cool would be some way to set default options in which columns should be searched. I would then exclude the command line column by default, and I could still search in it by writing Command Line:stuff or something like that.

Proposed implementation details (optional)

No response

redsigma commented 5 months ago

You can use this regex to do an exact match of the .exe

\b(?=firefox\b)\w+\.exe

Replace the word firefox with node

CherryDT commented 5 months ago

Thank you for this workaround suggestion!

It's good it's possible somehow but of course it's a bit cumbersome to type out this abomination every time ^^'

I'd really love to have a nicer way!

EDIT: Actually, regex is a good idea. But you can do it much simpler. Just write ^firefox\.exe$!