ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Ability to apply filter search results

Open Georgy-Losenkov opened this issue 3 years ago • 1 comments

Issue Right now search is quite limited but some additions seems easy to implement.

If we search for member it will be helpful to limit search results by type name, namespace, assembly name. If we search for type it will be helpful to limit search results by namespace and assembly name.

Proposed solution Modify search syntax the following way: main search will be denoted by string without prefixes or string with prefix but without plus sign or minus sign. Additional filters will be denoted by prefix with plus sign or minus sign.

That is m:Get +t:/^I/ will search for members with name containing Get within types with name starting with I m:Get -t:/^I/ will search for members with name containing Get within types with name not starting with I m:=Get +t:/^I/ will search for members with name equal to Get within types with name starting with I m:Get -m:=GetValue will search for members with name containing Get but not equal to GetValue If current selection of 'Search for' is Member search Get -=GetValue will search for members with name containing Get but not equal to GetValue search Get -m:=GetValue will do the same If current selection of 'Search for' is Type search Get -=GetValue will search for types with name containing Get but not equal to GetValue search Get -m:=GetValue will search for types with name containing Get. Part -m:=GetValue will be ignored as inapplicable.

Users will use prefixes n: for namespaces, a: for assemblies.

Almost all functionality is already implemented.

Georgy-Losenkov avatar Aug 15 '21 08:08 Georgy-Losenkov

Related #2387, #828 and #1175.

siegfriedpammer avatar Aug 17 '21 16:08 siegfriedpammer