-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
WIP: GTD Base Features #60
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the first commit for a GTD module focusing on the full specifications of the process. At the moment it just creates the GTD module with a custom function add_task_to_inbox(), which will hopefully start an UI in order to insert the task to inbox.
I use core.ui to generate the prompt asking the user to add the task to the inbox list. Still there are some issues regarding core.ui: - after <CR>, the buffer keeps asking for an other user input. - If if press <C-c>, the buffer seems to close but the callback doesn't start
Divided documentation in USAGE/KEYBINDS/REQUIRES following the best practices
This is the start of command capabilities for gtd. At the moment it supports :Neorg gtd capture, which will call the funciton add_task_to_inbox()
At the moment it only defines the command, since i'm waiting for a function to open a file.
I defined a new function called open_file() in dirman, and used it to open the list when :Neorg gtd list inbox is called
At the moment it supports the syntax discussed in nvim-neorg#61 For example: This is a task @home +"This is a project" will be written in inbox as: * This is a project ** home - [ ] This is a task
I forgot to add the - [ ], before the task content
The due date support is done via $due:..., with ... being one of the following ($ treated as number): - $d: days from now (e.g 2d is 2 days from now) - $w: weeks from now (e.g 2w is 2 weeks from now) - $m: months from now (e.g 2m is 2 months from now) - tomorrow: tomorrow's date - today: today's date - Any date with the format specified below The format for date is YY-mm-dd
I added the support for start dates, with the same syntax as due dates. Futhermore, I refactored the finders to be only one function doing all, and the syntax is specified in module.private.syntax
Instead of calling the function for each syntax, i iterated through them, which is better for lisibility
In order to add or modify a syntax, we now only need to set or change values in the module.private.syntax table
Update GTD docs (formatting + contents)
1 task
I'm merging now this PR in |
esquires
pushed a commit
to esquires/neorg
that referenced
this pull request
Apr 12, 2022
WIP: GTD Base Features Former-commit-id: 293a20c
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the first iteration of GTD base features:
inbox.norg
fileNeorg gtd capture
gtda
(will probably be deleted/modified)This is a task @ExampleContext +"Example Project"
@home
)+"this is a project"
)$due:tomorrow
withtoday
,tomorrow
,$d
,$m
,$w
, and any date with formatYY-mm-dd
recognized. $ is treated as number, for example10d
is 10 days from now)$start:
)$note:"this is a note")
In order to test the implementation: