unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Ergus <spacibba@aol.com>
Cc: Juanma Barranquero <lekktu@gmail.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: Tab bar tabs landed on master
Date: Sun, 06 Oct 2019 00:55:33 +0300	[thread overview]
Message-ID: <87tv8myi8m.fsf@mail.linkov.net> (raw)
In-Reply-To: <87lfu4jbbu.fsf@Ergus.i-did-not-set--mail-host-address--so-tickle-me> (Ergus's message of "Wed, 2 Oct 2019 01:27:41 +0200")

> I would like to ask you the possibility to make the tab-bar-switch-*
> commands cyclic (after last go to first) even if not by default? The
> problem is that in xterm (and related) it is not possible to sent
> C-S-TAB, so in some cases (few tabs) it will be good enough to repeat
> C-TAB. Even without this xterm issues it is easier to repeat C-TAB 2 or
> 3 times than changing the hands to type C-S-TAB.

Now cyclic switching implementation is pushed to master.

Some examples of prefix arguments that support cycling:

C-2 C-TAB switches to the second next tab
C-- C-TAB switches to the previous tab

These switching commands interpret their arg as relative offsets.
If you want to select a tab by its absolute position, this is now
possible with e.g.

  (dotimes (i 9)
    (global-set-key (vector (list 'super (+ i 1 ?0)))
                    'tab-bar-select-tab))

I don't know what prefix key or modifier could be used by default,
but this example allows `s-1' to select the first tab
in the tab bar, `s-2' the second, etc.

A new option tab-bar-tab-hints shows absolute positions of tabs
in the tab bar to help in selecting tabs by their numbers.

The same way now the arg is interpreted by tab-close as the absolute
position of tab to close, so e.g.

C-2 C-x 6 0 closes the second tab (instead of the current tab by default)

tab-new could support the prefix argument as well, but
I don't know whether to interpret its numeric prefix argument
as absolute or relative position because both ways are useful:

C-2 C-x 6 2 - could create a new tab as the second tab in the tab-bar

OR

C-2 C-x 6 2 - create a new tab as the second next
              to the right from the current tab
C-u -2 C-x 6 2 - create a new tab as the second previous
                 to the left from the current tab

Maybe to add a rule that if tab-bar-new-tab-to option has a relative value
like 'right' then M-x tab-new should interpret its arg as relative, or if
tab-bar-new-tab-to option has an absolute value like 'rightmost' then M-x
tab-new should interpret arg as absolute?

Or maybe to add a new command tab-add as a wrapper for tab-new
to translate its relative arg to absolute number for tab-new?



  parent reply	other threads:[~2019-10-05 21:55 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-01 20:17 Tab bar tabs landed on master Juri Linkov
2019-10-01 21:43 ` Juanma Barranquero
2019-10-01 22:28   ` Juri Linkov
2019-10-01 22:35     ` Juanma Barranquero
2019-10-01 23:27     ` Ergus
2019-10-03 22:10       ` Juri Linkov
2019-10-05 21:55       ` Juri Linkov [this message]
2019-10-06 17:13         ` Eli Zaretskii
2019-10-06 18:48           ` Juri Linkov
2019-10-06 19:12             ` Eli Zaretskii
2019-10-06 19:23               ` Juri Linkov
2019-10-06 19:38                 ` Eli Zaretskii
2019-10-06 19:53                   ` Juri Linkov
2019-10-07 17:18                     ` Eli Zaretskii
2019-10-07 17:31                       ` Lars Ingebrigtsen
2019-10-07 17:49                       ` Ergus
2019-10-06 21:11                   ` Stefan Monnier
2019-10-06 21:27                     ` Juri Linkov
2019-10-06 22:53                       ` Stefan Monnier
2019-10-06 22:58                       ` add Tab to ELPA other-frame-window Stephen Leake
2019-10-07 16:07                         ` Eli Zaretskii
2019-10-07 20:14                         ` Juri Linkov
2019-10-08  7:48                           ` Eli Zaretskii
2019-10-10 22:46                             ` Juri Linkov
2019-10-11  8:10                               ` Eli Zaretskii
2019-10-19 22:07                                 ` Juri Linkov
2019-10-20  6:24                                   ` Eli Zaretskii
2019-10-20 17:37         ` Tab bar tabs landed on master Juri Linkov
2019-10-23 20:54           ` Juri Linkov
2019-10-26 22:16             ` Juri Linkov
2019-10-27 23:05               ` Juri Linkov
2019-10-23 20:59         ` Juri Linkov
2019-11-01 23:13           ` Ergus
2019-11-02  7:20             ` Eli Zaretskii
2019-11-02 11:46               ` Ergus
2019-10-02  8:55     ` martin rudalics
2019-10-02 16:30       ` Juri Linkov
2019-10-02 15:03   ` Eli Zaretskii
2019-10-02 16:27     ` Juri Linkov
2019-10-02 17:07       ` Eli Zaretskii
2019-10-02 19:55         ` Juri Linkov
2019-10-05 14:33           ` Eli Zaretskii
2019-10-05 22:07             ` Juri Linkov
2019-10-06 17:06               ` Eli Zaretskii
2019-10-07 19:15                 ` Juri Linkov
2019-10-07 19:23                   ` Eli Zaretskii
2019-10-09 10:51                     ` Eli Zaretskii
2019-10-09 18:43                       ` Juri Linkov
2019-10-09 18:59                         ` Eli Zaretskii
2020-01-11 23:57                           ` Juri Linkov
2020-01-12  3:28                             ` Eli Zaretskii
2020-01-12 23:25                               ` Juri Linkov
2020-01-13 16:49                                 ` Eli Zaretskii
2020-01-13 23:35                                   ` Juri Linkov
2020-04-18 23:56                                     ` Juri Linkov
2020-04-19 14:06                                       ` Eli Zaretskii
2019-11-14 23:37                       ` Juri Linkov
2019-11-15  8:21                         ` Eli Zaretskii
2019-10-03  8:16         ` martin rudalics
2019-10-03  8:15       ` martin rudalics
2019-10-03  3:40 ` Stefan Kangas
2019-10-03  9:02 ` Robert Pluim
2019-10-07 13:15 ` Stefan Kangas
2019-10-07 13:21 ` Stefan Kangas
2019-10-07 15:53   ` Ergus
2019-10-07 20:23     ` Juri Linkov
2019-10-07 20:58       ` Ergus
2019-10-07 21:48       ` Zach Pearson
2019-10-07 22:29         ` Juri Linkov
2019-10-08 14:29           ` Eli Zaretskii
2019-10-09 22:43             ` Juri Linkov
2019-10-10  7:52               ` Eli Zaretskii
2019-10-07 16:40   ` Eli Zaretskii
2019-10-07 20:19   ` Juri Linkov
2019-10-08  7:52     ` Eli Zaretskii
2019-10-20 22:39   ` Juri Linkov
2019-10-20 23:06     ` Ergus
2019-10-21  6:54       ` Eli Zaretskii
2019-10-21  6:43     ` Eli Zaretskii
2019-10-21 21:40       ` Juri Linkov
  -- strict thread matches above, loose matches on Subject: below --
2019-10-03 11:23 Andrii Kolomoiets
2019-10-03 12:19 ` Robert Pluim

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=87tv8myi8m.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=spacibba@aol.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 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).