-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make pinning of editors configurable #5554
Comments
In the designs we discussed in issue #224 we talked about how preview editors would show up in the open editors list. When you use Ctrl+P to go to a file which is not already open it will be opened as a preview and will show up in the list of open editors. |
So how does the Preview Tabs differ then? Do they disappear as soon as you switch to another editor? |
In both cases, tab or editor groups contain one preview tab. With tabs, a preview tab sits next to any other open tabs. Whenever you preview a new file, the content in the preview tab is refreshed with the content of the newly previewed file. With the open editors/working files list, the name of the previewed file shows up in the list next to the other open editors. Whenever you preview a new file, the name of the newly previewed file replaces the name of the previously previewed file in the open editors list. |
I see. Then I would prefer for Ctrl+P opening a file as permanent. Go to definition is another matter where a preview might actually be beneficial. But as it is now, my work flow seems to have files "vanish" since I try to work keyboard only and making an preview permanent requires double clicking. |
Thanks for the suggestion. We will have a command that you can execute via some keybinding that will promote a preview tab to a permanent tab. But we'll also spend more time thinking about the actions that cause a file to open in a preview tab or a permanent tab as we get deeper into the details when we start implementing these designs. We'll also consider a setting or some other way to specify when and how files are opened as preview or permanent tabs. |
👍 for making this configurable |
@stevencl Configuration sounds great! |
@stevencl it would be interesting in your study to find out if people are happy with a setting. |
So is there any consensus on this whether ctrl+p will add to working files? |
Probably will be a setting that is disabled by default. |
@bpasero That sounds like a similar scenario. Opening a file from the explorer doesn't seem like you'd want a preview. But perhaps that's just my workflow. I use Total Commander, so I preview all my files using read-only notepad by pressing F3. I see no problem with using the same setting. |
@csholmq well the idea for preview editors in general is to reduce the number of tabs that get open when you click around. If we provide this setting most of the editors you open will be stable tabs and you will have to manage a lot more. So it seems to me that the setting should be scoped to files only and then anywhere you open a file it will be pinned by default. Other editors (markdown preview, diff editors) would not be pinned by default even if this setting is enabled. |
Personally I'd prefer a separate setting. I will often click around files in the explorer searching for what I want, so it may not be a file I'm interesting in keeping open. But quick find I know exactly what I want. |
I'm totally fine with double clicking the tab to add as working tab or some On Monday, May 30, 2016, Daniel Imms [email protected] wrote:
|
With the new preview tabs the experience is much better. Opening a file as a preview is now much clearer i.m.o. I still think a configuration option is good though. |
Since we have another request to have a config to pin each file I am wondering if we should just introduce one setting for both, along the lines of "editor.autoPinLevel" and you have "always", "moderate", "default" and based on those we derive how things pin. Not a big fan of introducing 2 options... |
@stevencl having a hard time on making the decision around these settings. Do we really want to introduce a new top level settings category for this called First question is, do we talk about If we end up talking about |
I agree, we should make this be about the editor. So would something like the following work? "editor.preview.enableInExplorer": true, And I also agree that we should introduce the notion of preview. It's becoming a standard (Sublime and VS support the same experience for example) so I think will be well understood. |
@stevencl actually looking into the future we will have a set of new configuration settings that are all coming from the fact that we now have stacks and tabs. More things to consider:
I can also see that in the future we will have more users asking for configuration around this so maybe we come up with a category that solves this for all these settings under one parent key? |
Discussion on settings names continues in #7643 |
There is a desire to configure preview editors via settings:
Original Post:
I would expect Ctrl+P opening a new editor (which it does) and then adding that file to working files (which it doesn't). Instead the file is just revealed in the tree view and I have to double click on it to add it.
Surely Ctrl+P should be viewed as a "I mean to edit" action and not "Just a quick glance"? Does anybody else share my view?
The text was updated successfully, but these errors were encountered: