This would make managing ToDo lists so much nicer.
Also, a keyboard shortcut for strikethrough would be nice.
{
"key": "alt+s",
"command": "markdown.extension.editing.toggleStrikethrough",
"when": "editorTextFocus && editorLangId == 'markdown'"
}
The code snippet above is pasted out of my own custom keybindings.json file.
It would just be nice to have it bound by default.
I didn't realise the syntax highlight was VSCode's responsibility. I'll take it up with them. Thanks!
The reason I didn't assign a default shortcut for toggleStrikethrough is because I didn't find a good one.
I will leave this open to see other users' opinions.
Alt+s has been working nicely for me and fits well with Alt+c for toggling task items.
Since this is in principle related, I wrote here instead of opening a new issue.
Will you consider to implement the similar functionality for ToDo list like this?
https://github.com/PKief/vscode-markdown-checkbox
Also I found "Information in status bar" is rather useful for Projects ToDo.
I understand that this functionality is far from Markdown, but maybe it correlates with your idea what is or does not resemble your project.
Also, IMO, the toggleStrikethrough command should act on the current line/paragraph as a whole, if no text is selected.
@godaygo I think the current solution (automatically add - [ ] when you press Enter) is better because you don't need to press other keybindings to "create task list".
As for the statusbar information of to-do, I am afraid it is not in my plan because personally I prefer to use other extension (like todo+ mentioned above).
@maranomynet It sounds like "quick mode" (like toggling bold). One difference is that "quick mode" of this extension smartly select the word under your cursor rather than a whole line/paragraph.
Awkward. only now do I learn about quick mode. :-) I like it, and appreciate the idea of making strikethrough behavie consistently with bold and italic.
However, my personal usage of strikethrough is like 95% to strike out whole lines in a bullet list of todos (or task items)
I just checked my code and the most easy way is reusing the "quick mode" code. That says that strikethrough will behave the same way as bold/italic.
I guess that striking out a task list is not a frequently used command. So let's live with its absence 馃槄
Oh, I didn't realize that I already implemented it 馃槀
An option to strike the whole line would be sweet though 馃槈
I'll do it after the Spring Festival
Although it is not documented, I can tell you secretly that quick mode will strike-through the whole line in task list (in v1.1.0) 馃槑
I change my mind now. Let's assign alt+s as the default keybinding.
As for this strikethrough decoration, I recommend Highlight extension with this setting
"highlight.regexes": {
"(~~.+?~~)": [
{
"rangeBehavior": 1,
"textDecoration": "line-through"
}
]
},