unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new tab with a name.
       [not found] <c24bc81d-1b99-4124-98cf-d28ca387159f@Spark>
@ 2019-12-20  1:45 ` HaiJun Zhang
  2019-12-21 23:21   ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: HaiJun Zhang @ 2019-12-20  1:45 UTC (permalink / raw)
  To: Trevor, Murphy, via, Bug, reports, for, GNU, Emacs, 38681

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

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.



[-- Attachment #2: Type: text/html, Size: 937 bytes --]

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

* bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new tab with a name.
  2019-12-20  1:45 ` bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new tab with a name HaiJun Zhang
@ 2019-12-21 23:21   ` Juri Linkov
  2019-12-22 11:12     ` HaiJun Zhang
  0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2019-12-21 23:21 UTC (permalink / raw)
  To: HaiJun Zhang; +Cc: 38681

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





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

* bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new tab with a name.
  2019-12-21 23:21   ` Juri Linkov
@ 2019-12-22 11:12     ` HaiJun Zhang
  2019-12-22 22:54       ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: HaiJun Zhang @ 2019-12-22 11:12 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 38681

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

在 2019年12月22日 +0800 AM7:23,Juri Linkov <juri@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.




[-- Attachment #2: Type: text/html, Size: 2283 bytes --]

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

* bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new tab with a name.
  2019-12-22 11:12     ` HaiJun Zhang
@ 2019-12-22 22:54       ` Juri Linkov
  0 siblings, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2019-12-22 22:54 UTC (permalink / raw)
  To: HaiJun Zhang; +Cc: 38681

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.





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

end of thread, other threads:[~2019-12-22 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <c24bc81d-1b99-4124-98cf-d28ca387159f@Spark>
2019-12-20  1:45 ` bug#38681: Emacs 27.0.50: [Feature request for tabs] Create new tab with a name HaiJun Zhang
2019-12-21 23:21   ` Juri Linkov
2019-12-22 11:12     ` HaiJun Zhang
2019-12-22 22:54       ` 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).