davraamides / todotxt-mode

MIT License
58 stars 12 forks source link

Priority put after the text works but no syntax coloring #50

Open daniel-wojcik opened 2 years ago

daniel-wojcik commented 2 years ago

For the following file:

Task1 Task2 (A)

After sorting by priority Task2 is moved to before Task1, but (A) is not highlighted at all.

davraamides commented 2 years ago

I think you mean:

Task1 (A) Task2

(Priority must be at the beginning of the line - or right after the X completion code - according to the spec: https://github.com/todotxt/todo.txt )

But there is an issue where the decorations are not re-applied after some of the edit commands. If you just move your cursor, it should re-decorate and fix it (I just tried this and it worked). But this is a bug I've seen before and plan to fix it, I just haven't gotten around to it and will try and cut out some time soon.

On Mon, May 9, 2022 at 7:53 AM daniel-wojcik @.***> wrote:

For the following file:

Task1 Task2 (A)

After sorting by priority Task2 is moved to before Task1, but (A) is not highlighted at all.

— Reply to this email directly, view it on GitHub https://github.com/davraamides/todotxt-mode/issues/50, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOOZGNT24J5WHLT4PNTUNLVJD4ERANCNFSM5VOAP2QQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

daniel-wojcik commented 2 years ago

I know that it is meant to be (A) Task but in this case Task (A) shouldn't be taken into account when sorting by priority. I can see it as possible todo extension - priority symbol can appear also after task text, not only before.

davraamides commented 2 years ago

Ah, I understand now. That's a second bug!

On Mon, May 9, 2022 at 8:24 AM daniel-wojcik @.***> wrote:

I know that it is meant to be (A) Task but in this case Task (A) shouldn't be taken into account when sorting by priority. I can see it as possible todo extension - priority symbol can appear also after task text, not only before.

— Reply to this email directly, view it on GitHub https://github.com/davraamides/todotxt-mode/issues/50#issuecomment-1121031465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOOZGIGVLJUZGWW7CSVKVLVJD7X3ANCNFSM5VOAP2QQ . You are receiving this because you commented.Message ID: @.***>