-
Notifications
You must be signed in to change notification settings - Fork 86
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
Provide "edit" command #2
Comments
Didn't know that extension by Dave Hein, but I was actually already working on this. I had a different implementation of "edit " in mind, being to open a temporary file with that specified todo item. You could be able to specify more numbers, or maybe even a +Project to edit all items in that project. That last item is not implemented yet. Regarding item 2, I'd say to use a flag (-d) instead a full word. "archive" could also be a regular expression that matches items with the word archive in it. |
Great :) I'm waiting then for the update.
That would be very useful. Any ETA on this?
Agreed. |
ETA is difficult to tell. I could deliver functionality 1) very soon to master because that's basically ready. I just waited because I assumed to be the only user :) At the moment I'm a bit busy with other things, but item 3) is something I miss myself in my day-to-day work so probably I'll scratch that itch somewhere this month or next month. |
Feature is not ready yet, but since it's a part of issue #2 I already went ahead and pushed the first part.
+1 on this! |
implements topydo#2 - `topydo edit` will still open todofile in $EDITOR - `topydo edit 1 2 3` will open tmpfile with corresponding todos
I really believe that code above is not ready for merge, but hey, it works! Waiting for insights, comments and patches :)
For that to happen we need to implement it in |
On some systems EDITOR is unset by default, so in such situation topydo would throw KeyError exception instead of opening todo.txt in vi.
implements topydo#2 - `topydo edit` will still open todofile in $EDITOR - `topydo edit 1 2 3` will open tmpfile with corresponding todos
implements topydo#2 - `topydo edit` will still open todofile in $EDITOR - `topydo edit 1 2 3` will open tmpfile with corresponding todos
implements topydo#2 - `topydo edit` will still open todofile in $EDITOR - `topydo edit 1 2 3` will open tmpfile with corresponding todos - `topydo edit -e @Home due:today` will open tmpfile with todos matching the expression
I'll leave this issue open since the |
This implements archive option from topydo#2.
Closing as it is fully implemented now and merged in master. |
It would be nice to have possibility to edit todo.txt in $EDITOR. I can imagine 3 ways of using this command:
todo edit
- open todo.txt in $EDITORtodo edit archive
- open done.txttodo edit <NUMBER>
- open todo.txt and go to specified task/lineBottom line: inspired by work of Dave Hein @dhein
http://github.com/dhein/todo.txt-cli/blob/pub-addons-new_export2/edit
The text was updated successfully, but these errors were encountered: