aziz / PlainTasks

An opinionated todo-list plugin for Sublime Text editor (version 2 and 3)
MIT License
3.29k stars 286 forks source link

Lines with text that starts with a dash counts as a task #365

Closed michaelgarde closed 6 years ago

michaelgarde commented 6 years ago

For example:

☐ My task
   - Personal note
   - http://google.com

The above will list as three tasks and not as one as i would personally expect. I would have thought that a line that starts with a dash would be considered an item in a list in the same way as Markdown does. Using an asterix as a bullet works but isn't as pretty as a dash in my opinion.

vovkkk commented 6 years ago

PlainTasks supports different bullets, and they work in the same time—this is one of the core features. Moreover, highlighting (i.e. syntax definitions) is static, it is not that easy to change syntax definitions on the fly, so it is not only the core feature (i.e. what we want to have), but it is the normal way as syntax highlighting works in ST. Also dash (or hyphen) is crucial for compatibility with TaskPaper—another important feature of PlainTasks.

The best bullet for a list item is , or you can use (minus); which can be easily typed with some sort of typographical keyboard layout (you can easily find a bunch on internet or, perhaps, you already have one in your OS).

michaelgarde commented 6 years ago

When I say dash i consider it synonymous with the minus character. This isn't technically correct, so I apologies for the confusion.

The best bullet for a list item is •, or you can use − (minus);

The point of my original post was to note that i would expect * (asterix), - (minus) and + (plus) all to act as an unordered list, (not as a task) as is often the case in other notations. Markdown is such an example.

However image

I didn't know about taskpaper before, so if this is the adopted semantic, then it is just a design decision, it just originally seemed counter-intuitive to me, that -, * and + each have their own semantic. In the above example, i would originally have expected the status bar to state 0/1 done.

vovkkk commented 6 years ago

I understood your point, and tried to explain that optional bullets (you can see them in default settings file) all are affecting the role of a corresponding line in a document regardless of which bullets are set as default for corresponding actions.

It is not minus on your screenshot:

2017-10-25_16-15-31

Plus sign is an optional done bullet, so user may avoid Unicode in a document (sometimes it may be necessary, sometimes it is just aesthetics) 2017-10-25_16-33-11

michaelgarde commented 6 years ago

I see. I had not thought about looking in the settings file. Can these be customized, such that - (as well as variations) and + are no longer considered tasks?

So when i push the key on my keyboard it generates a hyphen it seems. I have always thought that it was a minus character, in fact, i do not think i have ever considered them to be different. I am getting smarter everyday. I think i now understand what you mean. A true minus character does indeed generate an item in an unordered bullet list . Unfortunately my keyboard layout (danish) only generates hyphens (including the numpad "minus").

Anyway, no matter how you draw a short vertical line with similarity to a -, i still would expect it to be an item unordered bullet list. But now i know that PlainTasks was designed this way, which is fine. I initially just thought it was a bug.

I hope you do not get me wrong. I love this plugin and use it on a daily basis for work and personal task management. I usually have Sublime Text open for writing notes anyway, so PlainTasks supports my workflow in a positive way.

vovkkk commented 6 years ago

Can these be customized, such that - (as well as variations) and + are no longer considered tasks?

It can be achieved, but I already explained in previous messages why it is not going to happen. We may reconsider this matter in case of reliable and simple way to modify syntax definitions on the fly.

Unfortunately my keyboard layout (danish) only generates hyphens (including the numpad "minus").

If you are on Windows, you can use Microsoft Keyboard Layout Creator to make a custom layout; you can load an existing layout from File menu to simplify the process of creation.

If you’re on Mac or Linux, there are built-in ways to type all kinds of symbols.

michaelgarde commented 6 years ago

We may reconsider this matter in case of reliable and simple way to modify syntax definitions on the fly.

That would actually be a cool feature, as each user could then define their own syntax or one that is based on a well know syntax. Even something as json, xml og csv could be supported at some point i suppose.

If you are on Windows, you can use Microsoft Keyboard Layout Creator to make a custom layout; you can load an existing layout from File menu to simplify the process of creation.

If you’re on Mac or Linux, there are built-in ways to type all kinds of symbols.

Well that is just an awkward work-around really.