emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Checkboxes in headings - opinions wanted
@ 2021-05-03  7:00 Arthur Miller
  2021-05-03  8:32 ` Bastien
  2021-05-03 15:50 ` Russell Adams
  0 siblings, 2 replies; 9+ messages in thread
From: Arthur Miller @ 2021-05-03  7:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: org-heading-checkbox.el --]
[-- Type: application/emacs-lisp, Size: 4104 bytes --]

[-- Attachment #2: Type: text/plain, Size: 854 bytes --]


Last night I have been playing with a minor mode to enable a checkbox in
a heading, or rather to fake a checkbox. To be honest, it was a 10
minute job. Took me way moare time to figure out avialable key
combination to use (which I didn't found).

In general, enable mode and use S+up/down to toggle a checkbox. A
heading with a checkbox is of form [ \t]*\\*+.*? followed by a [ ] or
[x] before a heading. It means a [ ] can be placed somewhere after the
leading stars, whitespaces ignored.

This has nothing todo with my previous hacks of todo keywords. This one
does not uses todo states at all so it can be used with todo states.

It is just a small prototype. I will use something else than
replace-string later on.

Just wonder if the approach is sane.

There is also a repo on gh for interested one:

https://github.com/amno1/org-heading-checkbox 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-05-04 10:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-03  7:00 Checkboxes in headings - opinions wanted Arthur Miller
2021-05-03  8:32 ` Bastien
2021-05-03  8:42   ` Timothy
2021-05-03 15:25     ` Arthur Miller
2021-05-03 15:21   ` Arthur Miller
2021-05-04  3:18     ` Ihor Radchenko
2021-05-04 10:47       ` Arthur Miller
2021-05-03 15:50 ` Russell Adams
2021-05-03 18:28   ` Arthur Miller

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).