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

Make todo list compatible with Markdown syntax #370

Open
JimmyLv opened this issue Dec 26, 2017 · 6 comments
Open

Make todo list compatible with Markdown syntax #370

JimmyLv opened this issue Dec 26, 2017 · 6 comments
Labels

Comments

@JimmyLv
Copy link

JimmyLv commented Dec 26, 2017

For now, these are some options to identify the open or done tasks, can we add - [ ] and - [x] as one option too, to make it compatible with Markdown syntax?

"open_tasks_bullet": "", // options: - | ❍ | ❑ | ■ | □ | ☐ | ▪ | ▫ | – | — | ≡ | → | › | [ ]
"done_tasks_bullet": "", // options: + | ✓ | ✔ | √ | [x]
@vovkkk
Copy link
Collaborator

vovkkk commented Jan 17, 2018

It was discussed previously: we cannot do this and keep compatibility with Taskpaper format at the same time, unless maybe some comes up with tricky regexp or something.

@vovkkk vovkkk added the feature label Jan 17, 2018
@JimmyLv
Copy link
Author

JimmyLv commented Apr 13, 2018

Thanks @vovkkk, could you please give me hint for changing it and I need to make it compatible with Markdown even giving up the Taskpaper format. ❤️

@vovkkk
Copy link
Collaborator

vovkkk commented Apr 13, 2018

Well, generally speaking if you want to make your own fork for this, first and foremost thing to change is regexes for tasks definitions in syntax files (PlainTasks.sublime-syntax for ST3 and PlainTasks.tmLanguage for ST2); there are three of them (pending, completed, and cancelled).
Every of those consists of two main parts separated by |, the second part starts with |^\s*(?:(-)(\s+ and this part (I mean the whole part from | until the end of regex) is what you want to remove in all three definitions;
also you have to add bullets into the fist parts, sth like this ^\s*(- \[ \]|❍|❑|■|□|☐|▪|▫|–|—|≡|→|›|\[\s\]), similar for other two.
Add desired bullets into the settings file.
Also PlainTasks.py contains regexes in PlainTasksCompleteCommand and PlainTasksCancelCommand—add the bullets there too.

@JimmyLv
Copy link
Author

JimmyLv commented Jul 10, 2018

Is it possible to add * [ ] firstly? as I know is that GitHub issues support the TODOs below:

* [ ] task1
* [ ] task2
* [x] task3

=>

  • task1
  • task2
  • task3

@vovkkk
Copy link
Collaborator

vovkkk commented Jul 10, 2018

Sure. Could you send a pull request?

JimmyLv added a commit to JimmyLv/PlainTasks that referenced this issue Jul 10, 2018
@JimmyLv
Copy link
Author

JimmyLv commented Jul 10, 2018

@vovkkk Hey, I just added a simple PR for it. #387

fnmeyer pushed a commit to fnmeyer/PlainTasks that referenced this issue Apr 11, 2024
fnmeyer pushed a commit to fnmeyer/PlainTasks that referenced this issue May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants