emacs-devel
[Top][All Lists]
Advanced

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

Some ideas to improve Tab Bar


From: Gabriel do Nascimento Ribeiro
Subject: Some ideas to improve Tab Bar
Date: Wed, 25 Nov 2020 00:35:59 +0000

Some little ideas on how Tab Bar can be further improved:

1. Options to disable `tab-bar-back-button' and `tab-bar-forward-button' when 
`tab-bar-history-mode' is on. This will be similar to what option 
`tab-bar-close-button-show' is to `tab-bar-close-button'.

2. Trim spaces of tab bar name. The tab bar name can have additional spaces on 
the right:
    2.1. When tab bar name name is set explicitly with `tab-bar-rename-tab';
    2.2. When `tab-bar-tab-hints' is true and `tab-bar-tab-name-function' 
returns an empty string;

3. An easier way to add more items to Tab Bar to make it act more like a 
general Bar. The following example was shared in Emacs Devel mailing list on 
how to add a simple clock to the right of Tab Bar:
=========================================
  (advice-add 'tab-bar-make-keymap-1 :around
              (lambda (orig-fun)
                (append (funcall orig-fun)
                        `((display-time menu-item
                                        ,(concat
                                          (propertize " " 'display '(space 
:align-to (- right 5)))
                                          (format-time-string "%H:%M"))
                                        ignore))))
              '((name . tab-bar-display-time)))
=========================================

4. Maybe deprecate `winner-mode' in favor to `tab-bar-history-mode', since 
these two modes have similar functions. Using `tab-bar-history-mode' with only 
one Tab is like using `winner-mode'.

Regards,
Gabriel


reply via email to

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