[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35796: 26.1; tabulated-list-sort user-friendliness

From: Boruch Baum
Subject: bug#35796: 26.1; tabulated-list-sort user-friendliness
Date: Sun, 19 May 2019 01:09:34 -0400
User-agent: NeoMutt/20180716

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

CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]