Use case or problem
Linking to a search.
Obsidian URIs work well but I have to either use a template or look them up each time, and then edit both search term and display text, replacing e.g. spaces with %20 and # with %23.
Proposed solution
- Automatically convert tag:#foo and file:bar into search links.
- Pick another parameter for regular searches, e.g. search:foobar.
- Other search parameters could be used in the same way, e.g. “line:” and “section:”
- Parentheses would also work, ideally. E.g. file:(Feb plan). After an open parenthesis the search link would be ended with the close parenthesis or end of line.
- Nice to have: optional display text, e.g. [Display Text]file:bar
Alternative/tweak:
- If these clash with something else, add something easy to the parameters, e.g. obs_tag: obs_file:
Note: “file:bar” currently renders as a link, but doesn’t successfully link to anything.