[Qt-creator] Closing pinned files

EXT Mitch Curtis mitch.curtis at qt.io
Fri Nov 11 07:48:16 CET 2022


> -----Original Message-----
> From: Carel Combrink <carel.combrink at gmail.com>
> Sent: Friday, 11 November 2022 1:56 PM
> To: qt-creator at qt-project.org
> Cc: EXT Mitch Curtis <mitch.curtis at qt.io>; Eike Ziller <Eike.Ziller at qt.io>
> Subject: Re: [Qt-creator] Closing pinned files
> 
> On Mon, 31 Oct 2022 at 09:51, Eike Ziller via Qt-creator <qt-creator at qt-
> project.org <mailto:qt-creator at qt-project.org> > wrote:
> 
> 
> 
> 	> The idea is to avoid accidentally closing the pinned file via shortcuts.
> So not necessarily about forbidding closing it, but ensuring that it doesn't
> leave the open documents list.
> 
> 
> 
> 
> I also recently started using the "pin file" feature and was surprised that after
> spamming CTRL + W the pinned files were closed.
> I have no suggestions yet on what I expect to happen, but that they got
> closed was unexpected.
> 
> Thinking about it a bit it might make sense to close all editors and keep the
> pinned ones in the open documents list.

That sounds good to me.

> It sounds counterproductive since then they are not opened anymore, thus
> they don't fit in the list (new list or renamed panel?)

I think it makes sense though.

> What I don't want is to get 'stuck' on a pinned file when I try to close
> everything but the pinned ones with the shortcut.

Yes, that would be annoying.

> And then again, perhaps a shortcut to "close all except the pinned ones" is
> the correct way to handle this and then get stuck on a pinned one with a
> warning or indication as other people mentioned in this discussion.

There is Ctrl+Shift+W for that, but there's just no indication currently. I find that when I use that I'm more aware of what I'm doing, whereas when I'm spamming Ctrl+W it's usually out of habit and I'm less aware.

> Regards,
> Carel




More information about the Qt-creator mailing list