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

click tag creates/opens a note that has a task query bared on the tag clicked #1940

Closed
2 tasks done
rhhub opened this issue May 8, 2023 · 4 comments
Closed
2 tasks done
Labels
status: wontfix This will not be worked on type: enhancement New feature or request

Comments

@rhhub
Copy link

rhhub commented May 8, 2023

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

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.

🔖 Feature description

This feature request is made to satisfy the following statement: Grab the next task then get all tasks that share context with it. #1939 Also shares this goal in different way.

In many modern task management app's it's possible to click on a tag and get a list of tasks with the tag. This feature request corresponds to obtaining that without creating a special popup ui.

✔️ Solution

It could be done by creating a note with a task query. Some required steps are as follows.

Feature's steps

  1. create or open a markdown note specified by user
  2. paste the generated query
```tasks
    tag includes #<clicked on tag>
    <some user defined query>
```

User's steps

  1. User must define the query.
  2. User must define a single note location or a folder location to cache the results of each query.
  3. User clicks on a tag monitored by the tasks plugin.

❓ Alternatives

No response

📝 Additional Context

No response

@rhhub rhhub added the type: enhancement New feature or request label May 8, 2023
@claremacrae
Copy link
Collaborator

Hi, Obsidian controls what happens when you click on a tag.

I think is proposing a very specific behaviour that would not be consistent with the standard Obsidian behaviour.

In case it helps, the way I solve what I think you are asking is:

  • I have about 15-20 contexts that I use for where to do a task - things like:
    • #context/home
    • #context/email etc...
  • I have a note for each of these, called e.g.
    • 02 - Context - home
    • 02 - Context - email etc...
  • I have a Templater template which I use to put a standard set of searches in each of these files...

For example:

  • A section with Tasks search that shows all the tasks with the context tag, that happens before tomorrow
  • As above, but happens in future
  • As above, but tasks with no date

It's a bit repetitive but it works really well.

Then when I am in a particular context, I open the note that has the pre-made searches for that context.

It works well, and you can make the searches as simple or complicated as you like.

@rhhub
Copy link
Author

rhhub commented May 9, 2023

That works really well. Even clicking on it in the tasks menu brings up Obsidian search. If that's sorted a to z it's at the top. It's only one extra click. Thanks for the implementation.

I agree that it isn't obsidian like. It could also cause confusion if some tags are for context and some are for query. I'm going to close the issue. Thanks again.

@rhhub rhhub closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2023
@rhhub
Copy link
Author

rhhub commented May 9, 2023

For anyone that might see this. This is my template script using the templater plugin.

file: settings/templates/tasks/context template.md

<%*
	let title = '02 - Context - '
	let suffix = await tp.system.prompt(title);
	await tp.file.move(`/settings/contexts/${title}${suffix}`); 
-%>
<%'#context/'+suffix%>
```tasks
tag includes #context/<%suffix%>
```

@claremacrae
Copy link
Collaborator

Thank you for the update and for sharing your template...

I'm glad you got something that works for you...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: wontfix This will not be worked on type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants