From: Boruch Baum <boruch_baum@gmx.com>
To: 35796@debbugs.gnu.org
Subject: bug#35796: 26.1; tabulated-list-sort user-friendliness
Date: Sun, 19 May 2019 01:09:34 -0400 [thread overview]
Message-ID: <20190519050934.lt6dsr6oxk4qp5kr@E15-2016.optimum.net> (raw)
This is a feature request for function `tabulated-list-sort' to make it
more user-friendly.
When the function is called interactively without a prefix-argument, it
should prompt the user (using `completing-read'?) for which column to
sort by (taken from the car of each element of `tabulated-list-format').
When called with a prefix argument, that would be redundant since the
prefix argument *is* the sort column.
The mode should also have a means to directly and explicitly ask for the
direction of sort. Here are a few implementation ideas for that, but any
better one that you can come up would be fine by me:
1) Create explicit functions `tabulated-list-sort-ascending' and
`tabulated-list-sort-descending'. Allow the user to bind them as 'S'/'s'
or 'O'/'o' or whatever other binding that desire. ('S' and 'o' are
currently used by default by the mode).
2) Add code in the existing function to allow for negative prefix
arguments. Then interpret positive numbers as a request for an
ascending sort and negative numbers as a request for a descending
sort.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
next reply other threads:[~2019-05-19 5:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-19 5:09 Boruch Baum [this message]
2019-07-09 2:35 ` bug#35796: 26.1; tabulated-list-sort user-friendliness Lars Ingebrigtsen
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=20190519050934.lt6dsr6oxk4qp5kr@E15-2016.optimum.net \
--to=boruch_baum@gmx.com \
--cc=35796@debbugs.gnu.org \
/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.