GNU bug report logs - #38681
Emacs 27.0.50: [Feature request for tabs] Create new tab with a name.

Previous Next

Package: emacs;

Reported by: HaiJun Zhang <netjune <at> outlook.com>

Date: Fri, 20 Dec 2019 01:46:01 UTC

Severity: wishlist

Merged with 38624, 38680, 38683, 44397

Found in versions 27.0.50, 28.0.50

To reply to this bug, email your comments to 38681 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38681; Package emacs. (Fri, 20 Dec 2019 01:46:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to HaiJun Zhang <netjune <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 20 Dec 2019 01:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: HaiJun Zhang <netjune <at> outlook.com>
To: Trevor Murphy via Bug reports for GNU Emacs, the Swiss army knife of text editors
 <bug-gnu-emacs <at> gnu.org>
Subject: Emacs 27.0.50: [Feature request for tabs] Create new tab with a name.
Date: Fri, 20 Dec 2019 09:45:18 +0800
[Message part 1 (text/plain, inline)]
I’m using macOS. Tab-bar-mode UI is not supported on macOS. The UI is not too important to me.
I want to use tabs like this:

1. create new every tab with a name
2. switch to a named tab

For 1, can tab-new prompts for a name to create the tab? Like when running with C-u M-x tab-new? Or provide a new command like tab-new-with-name?

For 2, is there a command which can switch to a named tab? It prompts for the name of the tab to switch to.


[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38681; Package emacs. (Sat, 21 Dec 2019 23:24:02 GMT) Full text and rfc822 format available.

Message #8 received at 38681 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: HaiJun Zhang <netjune <at> outlook.com>
Cc: 38681 <at> debbugs.gnu.org
Subject: Re: bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new
 tab with a name.
Date: Sun, 22 Dec 2019 01:21:28 +0200
> I’m using macOS. Tab-bar-mode UI is not supported on macOS. The UI is not too important to me.
> I want to use tabs like this:
>
> 1. create new every tab with a name
> 2. switch to a named tab
>
> For 1, can tab-new prompts for a name to create the tab? Like when
> running with C-u M-x tab-new? Or provide a new command like
> tab-new-with-name?
>
> For 2, is there a command which can switch to a named tab? It prompts
> for the name of the tab to switch to.

Yes, there is the new command 'C-x t RET' developed in bug#38624.

What do you think about using 'C-x t RET' to create a new tab
with the provided name?

This could work like 'C-x b': when there is a buffer with that name
already exists, then switch to it, otherwise create a new buffer
with that name.

'C-x t RET' could work the same way: when there is a tab with that name
already exists, then switch to it, otherwise create a new tab
with that name.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38681; Package emacs. (Sun, 22 Dec 2019 11:13:02 GMT) Full text and rfc822 format available.

Message #11 received at 38681 <at> debbugs.gnu.org (full text, mbox):

From: HaiJun Zhang <netjune <at> outlook.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 38681 <at> debbugs.gnu.org
Subject: Re: bug#38681: Emacs 27.0.50: [Feature request for tabs] Create
 new tab with a name.
Date: Sun, 22 Dec 2019 19:12:28 +0800
[Message part 1 (text/plain, inline)]
在 2019年12月22日 +0800 AM7:23,Juri Linkov <juri <at> linkov.net>,写道:
> Yes, there is the new command ‘C-x t RET' developed in bug#38624.
>

Thanks.

> What do you think about using 'C-x t RET' to create a new tab
> with the provided name?
>
> This could work like 'C-x b': when there is a buffer with that name
> already exists, then switch to it, otherwise create a new buffer
> with that name.
>
> 'C-x t RET' could work the same way: when there is a tab with that name
> already exists, then switch to it, otherwise create a new tab
> with that name.

It is OK. If it doesn’t create new tab, it will be better to me.

I think I will not create too many tabs. Instead, I will create constant number of tabs like this:
1. “source code”: for editing source code
2. “docs”: for editing documents
3. “debug": the debug view
4. “notes”: for writing notes, often with org mode files
5. “email”: for reading email with gnus

I will create these tabs in my emacs config file. And I think I will hardly create any temporary tabs and tabs other than the constant ones.
So I would like ‘C-x t RET’ not to create new tab when I input a tab name with typo. Or I want a command which just switches to an existing tab and doesn’t create new tabs.



[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38681; Package emacs. (Sun, 22 Dec 2019 23:16:02 GMT) Full text and rfc822 format available.

Message #14 received at 38681 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: HaiJun Zhang <netjune <at> outlook.com>
Cc: 38681 <at> debbugs.gnu.org
Subject: Re: bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new
 tab with a name.
Date: Mon, 23 Dec 2019 00:54:24 +0200
merge 38681 38624
quit

> So I would like ‘C-x t RET’ not to create new tab when I input a tab
> name with typo.  Or I want a command which just switches to an
> existing tab and doesn’t create new tabs.

Ok, so I'm merging this with bug#38624 where ‘C-x t RET' was developed.




Forcibly Merged 38624 38680 38681 38683. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Mon, 23 Dec 2019 23:18:02 GMT) Full text and rfc822 format available.

Forcibly Merged 38624 38680 38681 38683 44397. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Tue, 03 Nov 2020 19:34:01 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.