all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Gabriel do Nascimento Ribeiro <gabriel376@hotmail.com>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Some ideas to improve Tab Bar
Date: Wed, 25 Nov 2020 09:47:41 +0200	[thread overview]
Message-ID: <871rghlvxe.fsf@mail.linkov.net> (raw)
In-Reply-To: <CH2PR01MB5879C29C3B023B1DA0DE97AD8BFA0@CH2PR01MB5879.prod.exchangelabs.com> (Gabriel do Nascimento Ribeiro's message of "Wed, 25 Nov 2020 00:35:59 +0000")

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

Thanks for the ideas.

> 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'.

The most difficult part is to choose a good option name.
Maybe, `tab-bar-history-buttons-show' is not too bad.

> 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;

Sorry, I don't understand what is the problem.
When the user intentionally adds spaces in case 2.1.,
then why there is a need to trim spaces?

> 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)))
> =========================================

Do you propose to add functions that would allow doing this more easily?
Maybe using some hooks?

> 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'.

`winner-mode' should not be deprecated because it's still useful
for users who don't use tabs with `tab-bar-mode'.  So `winner-mode'
works fine when tabs are not used.  OTOH, `winner-mode' breaks tabs
when used with `tab-bar-mode', so `tab-bar-history-mode' is needed
to do the same when tabs are used.



  reply	other threads:[~2020-11-25  7:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25  0:35 Some ideas to improve Tab Bar Gabriel do Nascimento Ribeiro
2020-11-25  7:47 ` Juri Linkov [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rghlvxe.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=emacs-devel@gnu.org \
    --cc=gabriel376@hotmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.