The verb nopath: can be used to modify a single search term to turn off "Match Path".
nopath: cannot be used as a global modifier for an entire search query. (Please allow this, too.)
Please add the verb match-path: to turn on "Match Path" for a single search term or for an entire search query.
Similarly no-match-path as a global modifier or single-term modifier.
Examples below.
The quick brown fox match-path: --> Asserts that "Match Path" is used for the entire search query.
match-path: The quick brown fox --> Asserts that "Match Path" is used for the entire search query. (note the space between "match-path:" and "The")
match-path:The quick brown fox --> Asserts that "Match Path" is used only for the word "The" and the rest of the search query uses the default Match Path setting.
match-path:The match-path:quick match-path:brown nopath:fox ...
match-path:The match-path:quick match-path:brown no-match-path:fox ...
match-path:<The quick brown> no-match-path:fox ...
The words "The" and "quick" and "brown" must appear anywhere in the path or object name, but the word "fox" must appear in the object-name (file or folder) and not just anywhere in the object's path.
Please allow nopath: to work as a global modifier the same as no-match-path: if it stands alone separated by spaces.
Suggest: Add "match-path:" modifier verb to turn on Match Path
Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
Use the :: prefix to enable a search modifier globally.
For example, to disable match path for the rest of the search:
::nopath:
Note: global modifiers will only apply to search terms to the right of the modifier.
I will consider a match-path: alias for path:
Thanks for the suggestion.
For example, to disable match path for the rest of the search:
::nopath:
Note: global modifiers will only apply to search terms to the right of the modifier.
I will consider a match-path: alias for path:
Thanks for the suggestion.
Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
Hi,
testing the global search modifier ::path: doesn't work as expected for me, with Version 1.5.0.1408a (x64):
Sample path:
D:\TMP\fruits\cherry.txt
Starting with match path deactivated from the menu,
::path: cherry fruit
does not match.
Maybe something wrong with my settings?
testing the global search modifier ::path: doesn't work as expected for me, with Version 1.5.0.1408a (x64):
Sample path:
D:\TMP\fruits\cherry.txt
Starting with match path deactivated from the menu,
::path: cherry fruit
does not match.
Maybe something wrong with my settings?
Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
The :: prefix was changed to reference the internal modifier.
Please use the ? prefix to enable a search modifier globally.
For example:
Please use the ? prefix to enable a search modifier globally.
For example:
?nopath:Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
Thank you for your quick reply, it was so helpful!
In viewtopic.php?p=75868#p75868, my I ask you to explain a litte deeper how to use the new modifyers,
maybe with examples?
What is the 'built-in modifier' where ::path: now referrs to, and what is the new function of ::path: ?
How would path*: treat the rest of the search literally? What does that mean?
At this occasion, let me thank you for this software which is just great!
In viewtopic.php?p=75868#p75868, my I ask you to explain a litte deeper how to use the new modifyers,
maybe with examples?
What is the 'built-in modifier' where ::path: now referrs to, and what is the new function of ::path: ?
How would path*: treat the rest of the search literally? What does that mean?
At this occasion, let me thank you for this software which is just great!
Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
I did some reading, and I hope my conclusion is correct, that
- in the case a macro named "path" is defined by the user
::path: would call the built-in modifier path:, while
path: would call the macro?
- in the case wildcards are used in a search string
path*: would escape all wildcards in the search string, while
path:"..." would still resolve the wildcards within the quotation marks (that are used to handle blanks)?
- in the case a macro named "path" is defined by the user
::path: would call the built-in modifier path:, while
path: would call the macro?
- in the case wildcards are used in a search string
path*: would escape all wildcards in the search string, while
path:"..." would still resolve the wildcards within the quotation marks (that are used to handle blanks)?
Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
Thank you for your feedback runmode,
::path: will always refer to the original path modifier.
Operators are no longer interpreted, eg: space is treated as a literal space instead of the AND operator.
An example:
This will find files/folders that have "program files" in the full path.
The space above is treated literally.
Any text after path*: is treated literally. -You cannot use any more search functions, search modifiers or operators.
An example:
will match files/folders directly in C:\Program Files.
An example:
will match files/folders directly in C:\Program Files.
If you are looking to disable wildcards, prefix your search with nowildcards:
An example:
The ? is treated as a literal ?
Although, Windows doesn't really allow ? or * in filenames..
Please ask here.my I ask you to explain a litte deeper how to use the new modifyers,
maybe with examples?
path: can be replaced with a user macro (bookmark or filter).What is the 'built-in modifier' where ::path: now referrs to, and what is the new function of ::path: ?
::path: will always refer to the original path modifier.
It means anything after path*: is treated literally.How would path*: treat the rest of the search literally? What does that mean?
Operators are no longer interpreted, eg: space is treated as a literal space instead of the AND operator.
An example:
path*:program filesThis will find files/folders that have "program files" in the full path.
The space above is treated literally.
Correct.- in the case a macro named "path" is defined by the user
::path: would call the built-in modifier path:, while
path: would call the macro?
Not quite, path*: will still match any specified wildcards.- in the case wildcards are used in a search string
path*: would escape all wildcards in the search string
Any text after path*: is treated literally. -You cannot use any more search functions, search modifiers or operators.
An example:
path*:C:\Program Files\*will match files/folders directly in C:\Program Files.
wildcards are still applied, even when quoted.path:"..." would still resolve the wildcards within the quotation marks (that are used to handle blanks)?
An example:
path:"C:\Program Files\*"will match files/folders directly in C:\Program Files.
If you are looking to disable wildcards, prefix your search with nowildcards:
An example:
nowildcards:foo?barThe ? is treated as a literal ?
Although, Windows doesn't really allow ? or * in filenames..
Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
Thank you for your explainations and examples, everything clear for me now.
BTW: to achieve the nice green letters on white background with a borderline, is there a BBCode for the CSS class available for normal forum users?
BTW: to achieve the nice green letters on white background with a borderline, is there a BBCode for the CSS class available for normal forum users?
Re: Suggest: Add "match-path:" modifier verb to turn on Match Path
There's two code style BBCode options:
[code]
foo bar
[/code]
=>
-or-
inline [c]foo bar[/c] example
=>
inline example
[code]
foo bar
[/code]
=>
Code: Select all
foo bar
inline [c]foo bar[/c] example
=>
inline
foo bar