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

prepend not correct on prioritized tasks #2

Closed
ginatrapani opened this issue Apr 25, 2009 · 3 comments
Closed

prepend not correct on prioritized tasks #2

ginatrapani opened this issue Apr 25, 2009 · 3 comments

Comments

@ginatrapani
Copy link
Member

$ t add test
TODO: 'test' added on line 114.
$ t pri 114 a
114: (A) test
TODO: 114 prioritized (A).
$ t prepend 114
Prepend: pretest         
114: **pretest (A)** test
@the1ts
Copy link
Contributor

the1ts commented Jun 22, 2009

Have taken a stab at this issue. Code checks for a priority, if found it is removed. Text is then added and priority reinserted. Its not pretty but it works with linux awk and sed.

commit: f9bb135

Paul

@the1ts
Copy link
Contributor

the1ts commented Jun 24, 2009

Have added a test script for this issue:
http://github.com/the1ts/todo.txt-cli/commit/0e2798accef06b6c796c7536fc5610cbf1aef5f9
Tests prepend with and without priorities set.

t1400-prepend.sh

Paul

@ginatrapani
Copy link
Member Author

Fantastic--merged! Thank you.

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

No branches or pull requests

2 participants