alezost / bui.el Goto Github PK
View Code? Open in Web Editor NEWBuffer interface library for Emacs
License: GNU General Public License v3.0
Buffer interface library for Emacs
License: GNU General Public License v3.0
The default value of bui-revert-confirm
is t
, and :revert-confirm? nil
means "do not set the value" rather than "set it to nil".
So I have this situation: I have a list of objects that have these properties, each property having a name and a value.
I want to go through said list and, upon selecting an object, open a buffer from BUI containing the properties of said object.
Relatively uniform, I could do something like:
(bui-define-interface node_properties list
:buffer-name "*Object Properties*"
:format '((name nil 30 t) (value nil 70 t))
:sort-key '(name)))
The issue, though, is :get-entries-function
; because the BUI buffer is being triggered from the object in the list, what the entries are depends on which object is selected.
I may've missed something that might help me so I thought I'd ask if there's a way to pull this off.
Hi,
A feature I'm missing in tabulated-list-mode
is dynamic columns, i.e. the columns and their formats are fixed, and just reordering the columns requires modifying a lot of code in different places. Have you thought about providing this functionality in bui
?
I have a list
interface with the following :format
:
'((name nil 52 t)
(version nil 24 t)
(size nil 10 bui-list-sort-numerically-2 :right-align t)
(lastUnpacked bui-list-get-time 32 bui-list-sort-numerically-3 :right-align t)
(lastUnpackedBy nil 21 t)
(status nil 7 t))
The lastUnpacked
date is given as seconds.
Rendering the data, via bui-list-get-time
works like a charm; no issues there. But sorting the column goes to Hell. The dates are in, seemingly, a random order or another column is being used to sort things when the third column is told to be sorted because similar names in the name
column end up getting bunched together.
If I replace bui-list-get-time
with nil
, sorting works exactly as I'd expect and the dates are in proper order (though displayed as Epoch seconds instead of being formatted to date/times).
I thought maybe that the original numbers weren't being kept and so it was trying to sort Emacs time objects and tried removing bui-list-sort-numerically-3
but that just resulted in BUI saying it wasn't able to sort the column.
Neat package. I'm thinking about building a https://www.gnu.org/software/recutils/manual/ front-end. However, I'm wondering if there is any search-filtering functionality? I saw the filter functions. Is there any hope there is real-time filter-while-you-type functionality similar to Helm? If not, is it a reasonable feature idea?
But bui
specifies 24.3
as the minimal supported Emacs version.
lib/bui/bui-utils.el:484:1:Warning: the function ‘gensym’ is not known to be
defined.
Version 1.2.1 was tagged in 2018. There are however only 5 commits since them though.
Your package is now packaged for Debian:
https://tracker.debian.org/pkg/bui-el
Thank you for your work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.