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

FR: search: Take implied contexts and projects into account #267

Open
navytux opened this issue Jan 17, 2020 · 0 comments
Open

FR: search: Take implied contexts and projects into account #267

navytux opened this issue Jan 17, 2020 · 0 comments

Comments

@navytux
Copy link
Contributor

navytux commented Jan 17, 2020

I realized for myself that for many todo items giving only one context or label (project in topydo speak) is enough to provide complete set of contexts or labels. For example if +pygolang is one of my work projects it can automatically also mean +work, and if e.g. @jerome is my co-worker it can also automatically mean +work. There are other associations - e.g. @metroA means @incity and many similar. Thus instead of explicitly writing all set of relevant contexts and labels for every todo item, one can setup a database with such associations, and specify in todo.txt only what is essential.

A draft patch that implements such functionality is here: https://lab.nexedi.com/kirr/topydo/commit/33619796

It is used like this:

	[implied]
	# X implies -> A B C ...
	+pygolang   = +work +python +go
	+wcfs       = +work
	@jp         = +work
	@jerome     = +work +zodbtools
	...
	$ t +work	# todo itmes related to work
	$ t -+work	# todo items related to not-work

this provides a bit of start for work/life balance without explictly
marking every todo with redundant +work label or using complex queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants