Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Visual Assist Object browser filter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tiancovici
Junior Member

21 Posts

Posted - Jun 17 2024 :  09:08:33 AM  Show Profile  Reply with Quote
alt+shift+o is used to open the file browser
when i search by file name, I get too many unwanted files

i.e. .pyc, .obj, .html, .cs, .bak, .lastbuildstate

I can't seem to use the ignore feature, and I'd really like to be able to have an inclusion filter instead of exclusion

I just want to browse .c, .h (and maybe occasionally .cpp, and .hpp)

Is this possible?

feline
Whole Tomato Software

United Kingdom
18840 Posts

Posted - Jun 18 2024 :  06:29:24 AM  Show Profile  Reply with Quote
If you right click into the file list, you can turn On:

Open File in Solution dialog -> Right Click -> Display edit control for persistent filter

and enter the following filter, to filter out all of these extensions:

-.pyc -.obj -.html -.cs -.bak -.lastbuildstate

or you could use a positive filter, like:

.c., .h, .cpp, .hpp

space is used to separate filter terms, and a comma is used to tell VA to OR the terms, since by default AND is used on the filter terms.

You can hide the persistent filter it you want, but it will still be applied, even if not shown.

zen is the art of being at one with the two'ness
Go to Top of Page

tiancovici
Junior Member

21 Posts

Posted - Jul 03 2024 :  4:33:40 PM  Show Profile  Reply with Quote
I don't understand, this doesn't fix anything for me. Do I also have to do this every time?

I really don't need to see any files here other than .c, .h, .cpp, .hpp and .asm, .S







Edited by - tiancovici on Jul 03 2024 4:34:38 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18840 Posts

Posted - Jul 04 2024 :  07:24:44 AM  Show Profile  Reply with Quote
The filter field you are using is positive matches, so it is including all files that match the pattern "word starting with c AND word starting with h" Since the filter is only word starting with, it isn't matching a full file extension.

If you use the bottom filter, this filter is always applied, and you can hide it, to avoid having to keep working around this filter.

The filter:

-.pyc

will exclude all entries that have a "word" starting with "pyc", and an extension is considered a word. But if you want to include or exclude a single character extension you need to use a dot before and after the extension, so for example

.c.

will include files with the .c extension, since only files with the filename or extension of exactly "c" will be included. Place a minus in front to exclude matching files.

Does this make more sense?

Have you tried placing the filter string:

-.pyc -.obj -.html -.cs -.bak -.lastbuildstate

into the bottom filter field, once you have turned on showing the persistent filter?

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000