question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] User can create search command with predefined condition

See original GitHub issue

Use 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:closed
  • Created 2 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tadashi-aikawacommented, Aug 10, 2022

Thank you for your report, @rapatel0 😃

That is a good point out. But unfortunately, the search using Command Prefix don’t consider Default Input and Ignore prefix path patterns for now.

I’ll consider them by modifying the UI of the dialog. Please wait for the next beta release 👍

1reaction
tadashi-aikawacommented, Feb 1, 2022

Hi, @jzhang-brex.

I agree with your use case and solution.

The plugins will register this command with Obsidian

I will try it as well as I can.

Users can specify predefined conditions and other options (e.g. ignore normal path patterns).

I will consider the predefined conditions (obviously), but I will not consider the options.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use basic search and filters to find requests and issues | Jira ...
This page will show you how to search for issues in Jira Service Management. Any agent can search for issues, although they will...
Read more >
Create a request and define search settings in Subject Rights ...
Learn how to create a new subject rights request and define search settings in Microsoft Priva Subject Rights Requests.
Read more >
Basic searches and search results - Splunk Documentation
The Search Assistant is a feature in the Search app that appears as you type your search criteria. The Search Assistant is like...
Read more >
Advanced Search - GitLab Docs
You can use Advanced Search in: Projects; Issues; Merge requests; Milestones; Users; Epics (in groups only); Code; Comments; Commits; Project wikis (not ...
Read more >
Zendesk Support search reference
The wildcard operator is useful when you want to search various forms of a word. For example, searching for photo* returns results that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found