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

Feature Request: Syntax Extensions via Hooks #3737

Open
aricursion opened this issue Dec 26, 2024 · 0 comments
Open

Feature Request: Syntax Extensions via Hooks #3737

aricursion opened this issue Dec 26, 2024 · 0 comments

Comments

@aricursion
Copy link

aricursion commented Dec 26, 2024

To my knowledge, Task Warrior does not really have a good way to support syntax extensions at the moment. For example, if I currently put a task as due:monday it will make the task as being due the date of the next monday, at 00:00:00. However, one might want to instead have a shorthand for monday at 23:59:59. To resolve this issue, it would be nice to be able to write due:monday-eod or something to that effect. This is currently not possible with Hooks as parsing happens before hooks execute, and monday-eod will fail to parse correctly.

One way to address this, and perhaps the easiest way, would be to allow for hooks before parsing. This way, the syntax extensions could be accomplished by simply find and replacing one's desired syntax with an elaboration. I currently do this via shell scripts, but I would rather have a hook for it.

@aricursion aricursion changed the title Feature Request: Syntax Extensions viaHooks Feature Request: Syntax Extensions via Hooks Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant