davraamides / todotxt-mode

MIT License
59 stars 12 forks source link

Unable to figure out functionality of moveTasksToProject #7

Closed nrbray closed 4 years ago

nrbray commented 5 years ago

Environment:

Linux redwider 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ code-insiders --version 1.39.0-insider d3eb24828e2d977e4f3ac16ff1a332a020028464 x64

Steps:

  1. Higlight text in todo.txt "(B) add new task"
  2. todotxt-mode: Move tasks to Project Markdown file
  3. I dialog select Project.md

Effect:

Tasks

(A) here add more +test @laptop due:today note:tryout

davraamides commented 5 years ago

Yes, thanks for the report but I never finished the implementation of that feature. I was undecided on whether it should search for a matching "tasks" section per the regex and then append it there, and if it doesn't find that section, throw an error - or append it to the end of the file.

I will think about this more and try to push a change to complete the feature soon.

On Fri, Oct 4, 2019 at 8:01 AM nrbray notifications@github.com wrote:

Environment:

Linux redwider 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ code-insiders --version 1.39.0-insider d3eb24828e2d977e4f3ac16ff1a332a020028464 x64 Steps:

  1. Higlight text in todo.txt "(B) add new task"
  2. todotxt-mode: Move tasks to Project Markdown file
  3. I dialog select Project.md

Effect:

  • No change to file: Project.md

Tasks

(A) here add more +test @Laptop https://github.com/Laptop due:today note:tryout

  • Project.md has todo syntax highlighting (same before and after)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davraamides/todotxt-mode/issues/7?email_source=notifications&email_token=AAOOZGMSCHACVYA7WIH2J6TQM4WCVA5CNFSM4I5O46N2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPVAZDA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOOZGJVD3HLKYJSVAIWZ23QM4WCVANCNFSM4I5O46NQ .

DoctorRadar commented 4 years ago

This is the feature that made me install the extension! For me, in an ideal world you'd be able to move the task to a file with a name matching the +project tag, e.g. project.md. And yes, if the task is in the project file already, no need to duplicate it, just remove it from the todo.txt file.

davraamides commented 4 years ago

This one has been bugging me too recently as I’ve been trying to be better about following GTD. I will try and find some time to knock this out.

On Jan 23, 2020, at 10:39 AM, Graeme E Smith notifications@github.com wrote:

 This is the feature that made me install the extension! For me, in an ideal world you'd be able to move the task to a file with a name matching the +project tag, e.g. project.md. And yes, if the task is in the project file already, no need to duplicate it, just remove it from the todo.txt file.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

davraamides commented 4 years ago

This feature is now implemented in v1.4.14. The behavior is a little complex so I've copied the changelog notes below to explain: