Comments (6)
There isn't any configuration for that. See
Line 182 in 0709609
from bufler.el.
If you wanted to implement something like that, you could probably model it on tab-line-tabs-window-buffers
.
from bufler.el.
Thanks a lot, I can do the customization with that information.
from bufler.el.
Please let me know what you come up with, or feel free to submit a PR.
from bufler.el.
I investigated how tab-line uses tab-line-tabs-buffer-group-sort-function and it turns out that it only uses it inside seq-sort functions as a sort predicate, the name of the variable is misleading, it should be something like tab-line-tabs-buffer-group-sort-predicate-function, but anyway, this makes easy to integrate the same behaviour in bufler's existing code, I just redefined bufler-workspace-buffers as follows:
(cl-defun bufler-workspace-buffers (&optional (frame (selected-frame)))
"Return list of buffers for FRAME's workspace.
Works as `tab-line-tabs-function'."
;; This is specifically for `bufler-workspace-tabs-mode', but it
;; needn't be only for that, so it probably belongs here.
(let (buffers)
(--tree-map-nodes (bufferp it)
(push it buffers)
(bufler-buffers :path (frame-parameter frame 'bufler-workspace-path)))
(if tab-line-tabs-buffer-group-sort-function
(cl-sort buffers tab-line-tabs-buffer-group-sort-function)
(cl-sort buffers #'string< :key #'buffer-name))))
In this way the customization is the same as in tab-line and is optional, preserving the original bufler sorting (maybe expected by
other users).
With this I can customize the predicate function to do the sorting as I want.
I also noted a tab-line-tabs-buffer-groups-sort-function (note the additional s in groups) that I think sorts tab-bar elements, but I'm
not sure, and there is no documentation in the code. Maybe a similar customization can be done in that case.
from bufler.el.
I'll look at this again in the future. It's likely that bufler-workspace-tabs-mode
will need to be adjusted or rewritten for changes in Emacs 27/28, and I'll have to do that after testing it for a while.
from bufler.el.
Related Issues (20)
- Warnings with bufler-switch-buffer HOT 3
- cons: Symbol’s value as variable is void: max-width HOT 3
- Bufler doesn't display buffer kills on exwm windows HOT 6
- bufler-list-buffer-switch does not respect window cofiguration HOT 10
- Switching to buffer without deleting window? HOT 3
- Bufler installation from MELPA fails with compilation error HOT 8
- max-width variables seem un-used HOT 8
- Error while loading autoloads HOT 12
- bufler-groups explanation HOT 2
- Sidebar? HOT 4
- tab-bar-switch-to-{prev,next}-tab and related issues HOT 1
- replace $HOME in Path on *Bulfer* HOT 2
- Simple example to add a buffer with a certain name to Bufler's list? HOT 3
- bufler-mode-map/bufler-mode as minor mode? HOT 1
- Relative path column HOT 1
- Add bookmark function
- butler-reverse inconsistent with documentation HOT 1
- Subgroups and syntax? HOT 3
- (buffler-group-auto-parent-project) don't work, if homedir is git repository HOT 3
- README does not correctly reflect state of bufler-tabs-mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bufler.el.