heyman / heynote

A dedicated scratchpad for developers
https://heynote.com
Other
3.99k stars 199 forks source link

Feature suggestion: shortcut for markdown TODO #70

Open axchizhov opened 10 months ago

axchizhov commented 10 months ago

I want to quickly transform a couple of lines into a todo list. And sometimes I want to share my list without formatting, so I want an easy way to get rid of checkboxes.

Solution: a shortcut to toggle markdown todo for selected lines.

For example, you can do it in Apple Notes with: shift + command + L

heyman commented 10 months ago

What do you mean by "share my list without formatting"? If you copy the list, the checkboxes will be replaced with [ ] or [x], but maybe you don't mean share by copying the text?

Would this shortcut toggle the input checkbox for the current line?

axchizhov commented 10 months ago

What do you mean by "share my list without formatting"?

Sorry, bad wording. I meant: remove the prefix "- [ ]" from the lines.

The prefix confuses non-technical people, when I send plain text to them. Also it's a hassle when I need to paste a list in other app, which doesn't understand markdown.

Would this shortcut toggle the input checkbox for the current line?

Yep.


Thank you for building the app. It's really-really good! :)

heyman commented 10 months ago

I see, and I think I like the idea.

francescolaffi commented 9 months ago

This would be a nice addition, I use similar shortcuts in other software

For reference in obsidian its cmd-L, and it has multiple uses:

Thanks for the great app!

axchizhov commented 9 months ago

if used on lines that already have checkboxes then it toggles the value of the checkboxes [x] <=> [ ] this shortcut does not remove checkboxes from lines (not sure if there is another one to do so, but its a less common use case and its always possibile to use the multiple cursor and few backstrokes to remove cheboxes on multiple lines)

I've never unchecked multiple checkboxes :) What's your use case?

Ср, 24 янв. 2024 г. в 21:09, Francesco Laffi @.***>:

This would be a nice addition, I use similar shortcuts in other software

For reference in obsidian its cmd-L, and it has multiple uses:

  • if used on text lines or lists they become checkboxes, by prefixing with - [ ] or by adding [ ] if its alread a list, indentation is preserved
  • if used on lines that already have checkboxes then it toggles the value of the checkboxes [x] <=> [ ]
  • both of the above can be used both on single lines or selecting multiple lines
  • this shortcut does not remove checkboxes from lines (not sure if there is another one to do so, but its a less common use case and its always possibile to use the multiple cursor and few backstrokes to remove cheboxes on multiple lines)

Thanks for the great app!

— Reply to this email directly, view it on GitHub https://github.com/heyman/heynote/issues/70#issuecomment-1908667264, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP22CQNCX64RCNGUF3QVWUDYQFE4FAVCNFSM6AAAAABBCWGBT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGY3DOMRWGQ . You are receiving this because you authored the thread.Message ID: @.***>

francescolaffi commented 9 months ago

My main use case is transforming a normal list or plaintext lines in a list of checboxes.

In addition to that I was hinting at the default behaviour of obsidian.md for managing lists of checkboxes, imho is a good general reference for markdown management.

axchizhov commented 9 months ago

Oh, I see, that's reasonable. But if we simply compare Obsidian default with Apple Notes default (which is to delete []), I think the latter is more common.

Чт, 25 янв. 2024 г. в 00:15, Francesco Laffi @.***>:

My main use case is transforming a normal list or plaintext lines in a list of checboxes.

In addition to that I was hinting at the default behaviour of obsidian.md for managing lists of checkboxes, imho is a good general reference for markdown management.

— Reply to this email directly, view it on GitHub https://github.com/heyman/heynote/issues/70#issuecomment-1908927745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP22CQPNT6ZJRXZZ6B6FH3TYQF2WTAVCNFSM6AAAAABBCWGBT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYHEZDONZUGU . You are receiving this because you authored the thread.Message ID: @.***>

heyman commented 9 months ago

For reference in obsidian its cmd-L, and it has multiple uses:

  • if used on text lines or lists they become checkboxes, by prefixing with - [ ] or by adding [ ] if its alread a list, indentation is preserved
  • if used on lines that already have checkboxes then it toggles the value of the checkboxes [x] <=> [ ]
  • both of the above can be used on single lines or selecting multiple lines
  • this shortcut does not remove checkboxes from lines (not sure if there is another one to do so, but its a less common use case and its always possibile to use the multiple cursor and few backstrokes to remove cheboxes on multiple lines)

This sounds like a good way to implement it! (with some other default shortcut than CMD-L, since it's already used)