Is it possible to map a shortcut in markdown mode for creating a to do list (check box)?
I know there is a shortcut for creating a bullet list (Option + Cmd + L). I also know it is possible to add new shortcuts directly in keymap-desktop.json
What would be the correct line to add in keymap-desktop.json for a to-do list (Option+Cmd+C in my example below)?
And, while we are at it, what would the corresponding command for a numbered list be?
Yes, I know there are shortcuts for numbered lists, bullet lists and check lists in the Rich Text editor but I try to write in the markdown mode where those shortcuts don't work.
The bit that goes into the command section is the "proper" name of the usual commands accessible via the command palette (ctrl/cmd + shift + p) which you can search in and it will display both its "proper" name and the more friendly one.
For the numbered list you should be able to use the textNumberedList command and for checkboxes it would be textCheckbox.
The palette is independent to the keybindings, that allows you to use the commands directly and I don't think any changes to the file show in the UI anyway.
Did you completely shut down Joplin? I.e. it wasn't just minimised to the system tray (or whatever the macOS equivalent is?).
Update: problem solved
Solution: I had to import the json file.
It wasn't enough to save the file in my text editor. As the json file is in a hidden config folder (subfolder to the user folder on a mac) I saved it temporarily on my desktop and imported it.
Comments:
Do remember to remove the last "," after the last command
I replaced my keyboard shortcut of choice with just "null" to enter the keyboard in the Joplin user interface instead. Then I could easily verify if the shortcut I had in mind was occupied or not.