azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

Allow to give tabs names without saving to a file

Open martinoss opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

When I'm analyzing data or when nearly doing any kind of task with databases, my tabs quickly look like this: image

Many tabs hold some temporary results I need for another query. Don't have the intention so save most of the queries but I want to be able to quickly give them names without the need to save them.

It's a huge pain to switch back an forth between query tabs that have no speaking name (applies to SSMS too BTW).

Describe the solution or feature you'd like I would like to have a context menu option to give the tab a name without having to save it to a file.

image

image

(confirm with ENTER (or Check Button), abort with ESC (or X Button within Textbox).

After some renamings, it could look like this:

image

Describe alternatives you've considered

Additional context

martinoss avatar Nov 17 '23 09:11 martinoss

if we can vote on new enhancement, i would like to vote for this one this is absolutely required, i dont think it needs a shortcut key

right click and rename is good enough

in addition to rename, it would be nice to also color code tabs

shishini avatar Dec 05 '23 15:12 shishini

I believe it would be a fantastic feature if this could be implemented; it's something I've been eagerly anticipating for quite some time. The ability to name my tabs without having to save them as files has been a long-standing desire of mine. It would add a whole new level of convenience and organization to my workflow. I genuinely look forward to the day when this becomes a reality, making my digital experience even more enjoyable and efficient.

PhilippAxa avatar Dec 08 '23 09:12 PhilippAxa

An alternative option is what VS Code have done - if a file is new and unsaved, they automatically use the first 40 characters of the first line in the file as the tab title (both below tabs are new tabs that have not yet been saved as files):

image

This way many tabs automatically distinguish themselves with no manual intervention required.

If the first line is blank, it simply remains untitled:

image

This is not to say that both features couldn't co-exist. A context menu could be used to override the behaviour I described.

sp-white avatar Feb 19 '24 12:02 sp-white

@sp-white This would be indeed an improvement. Just updated to the latest version, but it's not behaving like this. Is the feature yet to be released?

martinoss avatar Feb 21 '24 09:02 martinoss

@martinoss VS Code has behaved like this for as long as I can remember. I just disabled all my extensions and confirmed they weren't interfering. I'm using version 1.86.2 on Windows.

sp-white avatar Feb 21 '24 10:02 sp-white

@sp-white Sorry, didn't read your message right, you were talking about VS Code. I thought the feature has found it's way in Azure Data Studio 🙈

martinoss avatar Feb 21 '24 10:02 martinoss