From: Phil Sainty <psainty@orcon.net.nz>
To: Bastien <bzg@gnu.org>
Cc: matus.goljer@gmail.com, emacs-orgmode@gnu.org,
John Kitchin <jkitchin@andrew.cmu.edu>
Subject: Re: Feature request: Radio button option for lists of checkboxes
Date: Wed, 12 Feb 2020 12:41:29 +1300 [thread overview]
Message-ID: <2ef6c2f0-012e-be7c-81d4-df7434c151a2@orcon.net.nz> (raw)
In-Reply-To: <87o8u4soto.fsf@gnu.org>
On 12/02/20 12:10 pm, Bastien wrote:
> From latest master, please try C-c C-x C-r on a checkbox or turn
> on M-x org-list-checkbox-radio-mode RET so that C-c C-c consider
> all checkboxes as radio buttons.
Brilliant, thanks Bastien!
A nice feature that may be missing from this implementation
is the ability to mark individual lists as radio-button lists,
and then have C-c C-c do the right thing contextually.
The syntax John and Matúš used was:
#+attr_org: :radio
- [ ] localhost
- [X] staging
- [ ] production
Then you can always just use C-c C-c to select a checkbox -- but
if the list is intended to be radio buttons then that behaviour
gets used automatically.
If that's practical to add to the new implementation, I would think
it would provide the best end-user experience for interacting with
such lists.
-Phil
p.s. Their code for detecting this was along similar lines:
(when (-contains? (org-element-property
:attr_org
(org-element-property :parent (org-element-context)))
":radio")
vs
(let ((list (org-radiobutton--get-list-at-point)))
(when (-contains? (org-element-property :attr_org list) ":radio")
next prev parent reply other threads:[~2020-02-11 23:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-03 8:52 Feature request: Radio button option for lists of checkboxes Phil Sainty
2020-02-11 23:10 ` Bastien
2020-02-11 23:41 ` Phil Sainty [this message]
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=2ef6c2f0-012e-be7c-81d4-df7434c151a2@orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=bzg@gnu.org \
--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.