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

Feature request: Hotkey to toogle checkboxs in Markdown blocks #300

Open
userfav opened this issue Jan 14, 2025 · 2 comments
Open

Feature request: Hotkey to toogle checkboxs in Markdown blocks #300

userfav opened this issue Jan 14, 2025 · 2 comments

Comments

@userfav
Copy link

userfav commented Jan 14, 2025

Have you searched existing Github issues to see if someone has already requested this feature?
Yes

Is your feature request related to a problem? Please describe.
I like that Heynote is very "keyboard centric", so you can quickly add/paste and move around blocks and buffers using just the keyboard.

But when you have some Markdown checkboxes, the only way to toogle them (that I found) is by using the mouse.

Describe the solution you'd like
I would think a hotkey that toogles the state completed/non completed in the positioned line (only when is a Markdown block and the line had a existint checkbox placed) would helps to avoid to switch to the mouse just for clicking.

In other software (more Tasks oriented) the same hotkey could convert a normal line in a task one (that means, if the line does not have a - [ ] it insert it and then just cycle the toogling between checked/unchecked but maybe that could be out of the scope of this software and could be handle it by text expander software.

Describe alternatives you've considered
Using atohotkey to make that switch (altough I don't know how)

Thanks!

@peterjaric
Copy link
Collaborator

peterjaric commented Jan 14, 2025

This is a poor workaround, but if you position the cursor to the right of the checkbox and type <backspace><backspace><x><]> the checkbox will become checked.

@userfav
Copy link
Author

userfav commented Jan 14, 2025

@peterjaric For now, I made a little script for Autohotkey that using Ctrl + T goes to the first position of the line, deletes "- [ ]" and inserts "-[X]" then goes to the end of the line again... (I limited it to the Heynote application to avoid problems)

#IfWinActive ahk_exe Heynote.exe
^t:: 
	SendInput {Home}{Del 6}- [X]{Space}{End}
return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants