From: Gabriel do Nascimento Ribeiro <gabriel376@hotmail.com>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Some ideas to improve Tab Bar
Date: Wed, 25 Nov 2020 00:35:59 +0000 [thread overview]
Message-ID: <CH2PR01MB5879C29C3B023B1DA0DE97AD8BFA0@CH2PR01MB5879.prod.exchangelabs.com> (raw)
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
next reply other threads:[~2020-11-25 0:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 0:35 Gabriel do Nascimento Ribeiro [this message]
2020-11-25 7:47 ` Some ideas to improve Tab Bar 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CH2PR01MB5879C29C3B023B1DA0DE97AD8BFA0@CH2PR01MB5879.prod.exchangelabs.com \
--to=gabriel376@hotmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).