Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Find function and capitalization
mdy8893
Newbie
Posts: 14
Permalink
Post Find function and capitalization
on: February 14, 2020, 04:10
Quote

Hi there,

Is there any way to use the find function to find capitalized/uncapitalized words? For example, can I find every instance of 'the' which is uncapitalized? At the moment the find function seems to return all instances...

Many thanks

2MR2
Administrator
Posts: 1234
Permalink
Post Re: Find function and capitalization
on: February 14, 2020, 07:12
Quote

By Find do you mean the main window filter editor? That's what is opened on a Command-F sequence.

If so, the answer is unfortunately no. The filters are compiled and as I'm using Apple's predicate filter there is no way to add options to an operator on the fly. Years ago the decision was made to go with case insensitive.

Yate's filter system is designed to be extensible via actions. Basically you set a variable to true or false and then have a filter which tests the variable.

For example the following action will look for case sensitive 'the' in the Title field and will select all files which match the filter.

Expand Execution to Unselected Files
Test if the Title field contains "the" (Set result and Variable 1)
Stop Action and Select Files Matching Filter "Variable 1 is True"

The filter would look like the attached image.

If you would like a generalized action to do the 'find' on an arbitrary number of fields and possible support 'word boundaries' let me know. You'd get prompted for the pattern and the options.
Image

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.038 seconds.