Everything FAYT emulates the built-in FAYT Everything search, with the main difference that the search is performed only after pressing Return, so now you have enough time to think in the middle of typing, without the search starting and the bar closing!
I created this add-in script some time ago and I thought it might be useful for other people here in the forum, so I decided to share it.
Other features to highlight are:
- Local and global search in one command! (smart mode and by pressing the quick key 2 times to switch to local mode).
- It has options to perform the search ignoring diacritics, case-sensitive and with regular expressions.
- By default, results are stored in a user-specified collection instead of a temporary one.
- Results open in a tab, at source or destination (configurable).
- Can be called from any path, including empty tabs.
- Multilanguage (English and Spanish currently).
- Support for command history.
HOW TO INSTALL
Download the file below. Then run Prefs SCRIPTINSTALL
and select the downloaded file.
IMPORTANT: Needs at least DOpus v13.5.1
v1.2.0 : EverythingFAYT.opusscriptinstall
USAGE
Now you can go to Preferences / Filtering and Sorting / Quick Keys (you can use Prefs PAGE=quickkeys
for that) and change the command's assigned quick key. Change the hotkey to the one of your choice. By default it is set to use $, to avoid collisions. You can even assign the + key if you wish (remember to unassign it from EverythingGlobal first).
One of the most useful features is the ability to switch between local and global searches directly from the FAYT search bar. For example, to perform a global search, type the quick key once, followed by the text to be searched.
To perform a local search (related to the current path), type the quick key twice, followed by the text to be queried.
OPTIONS
In that same section, you can change some options too. Open the Everything FAYT menu and click/unclick according to your needs.
- Open results in new tab (dest): By default, the results collection opens in a source tab. With this you can open it in destination
- Don't use named collection: With this enabled, the results will be saved in the Search Results collection instead of the specified collection
- Don't ignore diacritics: By default, all diacritics are ignored. Checking this disabled that.
- Case sensitive, Regular Expressions and Whole words: Self explained.
There are also other configurations to consider. In the Script Management window, select Everything FAYT and click in the gear icon.
- coll_name: Name of the collection where the results will be saved. Default is Everything
- log level:Logging level to be displayed.
- OFF to show only errors.
- DEBUG to show all messages.
- STANDARD to show only the most relevant information.
- WARNING to show messages that needs your attention.
- delete_onstartup: (v1.0.3) If true, all results collections will be deleted after starting DOpus.
It only affects collections and subcollections created by this command. - flags_are_global: (v1.0.5) If true, flag search options (case, regex, diacritics, whole words) are applied globally for the rest of the search. Otherwise, they only affect the first search function.
- flags_quick_key: (v1.0.6) This option allows you to set the same flags without going all the way through Preferences > Filtering and Sorting > Quick Keys, simply by typing in the FAYT search bar the character configured in this option.
E.g. If I set internal_flags_dlg=?. My quick key is +. So after typing ++?+Return:
- query_as_name: (v1.0.3) If true, the results will be saved as sub-collections with the query used as name. This is useful mainly because it allows multiple searches to be performed without overwriting previous results. Note that only applies if Don't use named collection flag is off.
- quick_config_key: (v1.0.3) Typing this string in the FAYT bar for quickly invoke the script own configuration dialog.
CHANGELOG
v1.2.0 (Apr 21, 2024) : EverythingFAYT.opusscriptinstall (6.7 KB)
- Now the flags dialog use the font name/size configured in Preferences / Colors and Fonts / Fonts > Dialogs.
- Code updated/cleaned up.
Full changelog
v1.1.0 (Mar 03, 2024)
- Updated to work with the changes introduced in 13.3.2 (mostly affects when the script is the default filter).
- Added a new log level,
Standard
v1.0.9 (Feb 22, 2024)
- Improvement in flags configuration dialog (no more minimized listers).
- Improvement in command history. Now you can get suggestions for both local and global mode.
- Minor changes in code.
v1.0.8 (2024-01-23)
- Minor changes in script configuration dialog.
- Minor corrections.
v1.0.7 (2023-12-24)
- Added basic support for search history (appears as a list of suggestions when typing in the FAYT field).
v1.0.6 (2023-12-08)
- Flags can now be changed it from the script's own dialog or from Preferences and kept in sync.
v1.0.5 (2023-11-29):
- Now search flags (regex, case, diacritics, etc) are global for all search terms. Set
flags_are_global
to false if you don't like it. - Added flag for whole word search.
- Start the search with
::
to quickly change the collection for results, between Everything collection (or whatever you decided to call it incoll_name
) and Find Results. Useful for comparison, if you don't want the new search results to delete the last ones. Has no effect ifquery_as_name
is set to true.
v1.0.4 (2023-11-16):
*Minor update in order to use new v13.0.46 functions.
v1.0.3 (2023-11-11):
- Added the option to use the query as a subcollection name. Useful when you plan to perform several searches and want to keep the previous results.
- Added option to automatically delete results when starting DOpus.
- Added the possibility to quickly invoke the script configuration window by typing a configurable character in the FAYT bar.
- Better logging info.
- Code cleanup.
v1.0.2 (2023-11-03):
- No more duplicate tabs for results!
- The way results are opened has been slightly changed (e.g. if a search is performed when the active tab is the results tab itself, the tab is always reused regardless of whether Open results in new tab (dest) flag is checked or not).
- Fixed an error if a local search was attempted on an empty tab.
- If the results are opened at destination, they now obtain the focus.
v1.0.1 (2023-11-02) :
- Added multi-language support for some strings (currently English and Spanish).
- Added the possibility to set flags directly from the FAYT search bar, by typing the text configured in internal_flags_dlg
- Now debug has logging levels (OFF, ALL and WARNING).
- Minor bug fixes.
v1.0. (2023-10-22) : Initial release