Hello,
I have a question that comes more from curiosity than actual necessity.
When creating an entry via custom_open_command, you have the option to filter it by certain conditions. For example, you can define that a command should only appear for specific file types (e.g., only for *.ext).
My question is: is it also possible to filter based on the origin of the search?
For example:
Can a custom command be shown in the context menu only when the results come from a content: search (i.e., based on the search query type) and match a specific file extension?
In other words, can the context menu entry depend on how the search query was performed, not just on the file type or selection?
Thank you!
Conditionally show custom_open_command based on search query
-
Native2904
- Posts: 112
- Joined: Mon Nov 22, 2021 8:36 pm
-
void
- Developer
- Posts: 19901
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Conditionally show custom_open_command based on search query
The custom_open_command filter only works on filenames at the moment, not the current search.