emacs-devel
[Top][All Lists]
Advanced

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

Re: Custom vtable.el sorters


From: Adam Porter
Subject: Re: Custom vtable.el sorters
Date: Thu, 3 Oct 2024 18:35:28 -0500
User-agent: Mozilla Thunderbird

Hi Kristoffer,

I recently discovered the wonderful vtable.el built-in package. As far
as I can tell, vtable is meant to eventually be a drop-in replacement
for tabulated-list-mode (despite (elisp) Tabulated List Mode mentioning
that vtable is geared toward variable pitch fonts, whereas
tabulated-list mode is for monospace fonts) -- please correct me if I am
wrong.

In any case, I noticed that in vtable.el, vtable--sort (which appears to
be where column sorting is implemented) has hard-coded behavior for
sorting, namely, simple numerical and string sorters. I would like to
ask about whether there any plans to add the ability for users to set
custom sorters for their columns. Tabulated-list-mode has a version of
this by setting tabulated-list-format: every column can use its own
sorter.

I can't find any bug reports mentioning "vtable sort", so I guess there are no such plans yet. The Vtable manual indeed says that only numerical and string sorting is done, depending on the type of value returned by the getter function. But it seems like a reasonable idea to me, to allow custom sort functions. So, patches welcome, I guess. :)

--Adam



reply via email to

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