From: Phil Sainty <psainty@orcon.net.nz>
To: emacs-orgmode@gnu.org
Cc: matus.goljer@gmail.com, John Kitchin <jkitchin@andrew.cmu.edu>
Subject: Feature request: Radio button option for lists of checkboxes
Date: Sun, 3 Nov 2019 21:52:13 +1300 [thread overview]
Message-ID: <58c2c0d3-f65c-45ba-dd45-5dcd29a17d42@orcon.net.nz> (raw)
(Where "radio button" means that for a list of checkboxes, only
one may be selected at any given time -- selecting a different
checkbox automatically de-selects the previous one.)
Hello org-mode,
John Kitchin posted this blog a few years back:
http://kitchingroup.cheme.cmu.edu/blog/2015/10/05/A-checkbox-list-in-org-mode-with-one-value/
Subsequently Matúš Goljer adapted that code here:
https://github.com/Fuco1/org-radiobutton
I'm slow in following this up, but I contacted both John and Matúš
last year suggesting that this facility would make a nice addition
to the core org-mode features. Both of them were happy for me to
submit the feature request, and both confirmed that they have
signed FSF copyright assignment, and so their code may be safely
adapted. I have CC'd them both to this message.
Matúš's github project has subsequently merged a branch from one
other contributor, so I have pushed a fork which excludes that
particular change, as I am not aware of the copyright status for
that. This FSF-safe fork is:
https://github.com/phil-s/org-radiobutton
(n.b. I've assigned FSF copyright for Emacs too, but none of the
code on this fork was written by me.)
John also independently made some later changes to his original
code, and the current version of that can be found here:
https://github.com/jkitchin/scimax/blob/740591268a868b4944193e0600bf71b6f2553f2b/scimax-org.el#L1426
Both implementations depend upon the dash library, so I expect
the relevant bits of code would need rewriting. I suspect that a
standard implementation would be able to approach things a bit
differently in any case; but the existing code would surely
provide at minimum a valuable reference for a core implementation,
and I imagine at least some of the code could be used verbatim.
I'm not familiar with org-mode internals, so I've not attempted
to provide a patch for this, but I'm hoping there's enough here
that someone with existing knowledge could run with it, as it
seems like a nice feature to include.
-Phil
next reply other threads:[~2019-11-03 8:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-03 8:52 Phil Sainty [this message]
2020-02-11 23:10 ` Feature request: Radio button option for lists of checkboxes Bastien
2020-02-11 23:41 ` Phil Sainty
2020-02-12 7:43 ` Bastien
2020-02-12 9:27 ` Matus Goljer
2020-02-12 9:34 ` Bastien
2020-02-12 22:01 ` Samuel Wales
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58c2c0d3-f65c-45ba-dd45-5dcd29a17d42@orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=emacs-orgmode@gnu.org \
--cc=jkitchin@andrew.cmu.edu \
--cc=matus.goljer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.