[Feature Request] User can create search command with predefined condition
See original GitHub issueUse Case
My vault contains personal and work-related notes. I place all work-related notes under the same folder or tag them with #work
When I am at work, I want to only search notes related to work. I can start each query with “#work” but it becomes very tedious.
If I am actively working on project-a, I may need to start each query with #work #project-a
.
Solution
In the plugin’s settings page, users can add a custom search command. Users can specify predefined conditions and other options (e.g. ignore normal path patterns).
For example, I will add a custom search command. Name it “work search”. And set the predefined conditions to “#work”. As for the options, we can narrow the search to a specific folder.
The plugins will register this command with Obsidian. Then the user can either access it through the command palette or assign a shortcut.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (8 by maintainers)
Thank you for your report, @rapatel0 😃
That is a good point out. But unfortunately, the search using
Command Prefix
don’t considerDefault Input
andIgnore prefix path patterns
for now.I’ll consider them by modifying the UI of the dialog. Please wait for the next beta release 👍
Hi, @jzhang-brex.
I agree with your use case and solution.
I will try it as well as I can.
I will consider the predefined conditions (obviously), but I will not consider the options.