Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show an error message if there are any spaces in the global filter #3237

Open
5 tasks done
echoleaf opened this issue Dec 11, 2024 · 1 comment
Open
5 tasks done

Show an error message if there are any spaces in the global filter #3237

echoleaf opened this issue Dec 11, 2024 · 1 comment
Labels
scope: global filter Anything to do with the global filter scope: settings Issues referring to the Tasks Settings panel in Obsidian type: enhancement New feature or request

Comments

@echoleaf
Copy link

⚠️ Check request is valid.

  • My request is about the Tasks plugin for Obsidian.
  • I am only requesting a single feature in the Tasks plugin. Multiple changes should be split into individual requests, with links between them.
  • I believe my requested feature will be generally applicable to other Tasks plugin users, not just me: it is not uniquely tied to my personal workflow.

⚠️ Please check that this feature request hasn't been suggested before.

🔖 Feature description

When adding a tag to the global filter, an error message should appear if there are any empty spaces in the field.

✔️ Solution

When adding a tag to the global filter field that includes one or more empty spaces, a modal popup should appear to notify the user about the error.

❓ Alternatives

No response

📝 Additional Context

I had problems with task queries because I did not realize that I entered the tag for the global filter with a space before and after the tag:
task-settings

As a result, task queries would only recognize the global filter if it wasn't the first word in a task (ie missing the space before) or the last word in a task (ie missing the space after).

@echoleaf echoleaf added the type: enhancement New feature or request label Dec 11, 2024
@claremacrae
Copy link
Collaborator

Super - thanks for picking up my request to log this.

Just to note that the spaces problem was identified using the explain instruction, as shown here:

image

@claremacrae claremacrae added scope: global filter Anything to do with the global filter scope: settings Issues referring to the Tasks Settings panel in Obsidian labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: global filter Anything to do with the global filter scope: settings Issues referring to the Tasks Settings panel in Obsidian type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants