unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Some ideas to improve Tab Bar
@ 2020-11-25  0:35 Gabriel do Nascimento Ribeiro
  2020-11-25  7:47 ` Juri Linkov
  2020-11-26 23:08 ` Gabriel do Nascimento Ribeiro
  0 siblings, 2 replies; 9+ messages in thread
From: Gabriel do Nascimento Ribeiro @ 2020-11-25  0:35 UTC (permalink / raw)
  To: emacs-devel@gnu.org

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-02 19:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25  0:35 Some ideas to improve Tab Bar Gabriel do Nascimento Ribeiro
2020-11-25  7:47 ` Juri Linkov
2020-11-25 17:19   ` Gabriel do Nascimento Ribeiro
2020-11-25 19:22     ` Juri Linkov
2021-02-27 20:12     ` Juri Linkov
2021-03-01 23:15       ` Gabriel do Nascimento Ribeiro
2021-03-02 19:46         ` Juri Linkov
2020-11-26 23:08 ` Gabriel do Nascimento Ribeiro
2020-11-27  8:22   ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).