You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
"Use preview tabs" says tabs will stay open if double-clicked, but they don't #156
I figured it out while trying a few more things. If you double-click the tab itself (not the file in the Tree View), it becomes permanent. So ... perhaps not a bug? I still think this will be a common misconception.
This only works currently if the tab itself is double-clicked, but not if the filename is double-clicked from the tree-view. I think we'd have to tweak the behavior of clicking on files in the tree-view a bit. Currently, single-clicking opens a file but keeps focus on the tree-view, and double-clicking focuses the editor; we'd have to change it so that single-clicking opens a preview tab and focuses the editor, and double-clicking opens the file and focuses the editor.
This is a bit trickier than I thought at first – I think tabs will have to provide a service for tree-view to consume in order for tree-view to be aware of Preview Tabs.
I'm extremely excited to have this - preview tabs have probably been my biggest pain point with Atom. You mentioned that it is trickier than you originally thought. Any estimate on when this will be ready?
Just wanted to 👍 this issue. I did subscribe as I once read repo owners use number of subscribers to work out how many people care about a given issue, but I'm not sure how true that is (I certainly can't see an easy way (admittedly as a non-package-owner) to sort by number of subscribers, etc.).
In the version I use (the Beta) preview tabs now works exactly as expected - single click in tree = preview, double click in tree = permanent, double click preview tab titlebar (or edit text buffer in some way) = preview becomes permanent.
Can I ask how to disable this option now that it's disappeared? I accept that I'm in the minority but I massively dislike having to think beforehand if I have to single- or double-click a filename based on whether I might edit it in the future... so I need to be able to stop this behaviour from happening, since it's not something I enabled.
Where's the option to bring back the expected, consistent behaviour, where single-clicking opens a new permanent tab?
Atom updated to 1.7.1 on Windows 10 and the old behavior is completely gone for me. I have unchecked "Allow pending pane items" and now single-clicking a file does nothing.
Expectation: disabling this option should give me the old behavior, where I could open a file with a single click.
Result: disabling this option gives me new behavior, where there's no preview at all, single click does nothing, I always have to double-click to open a file.
Reacted by Chris, Rob Drimmie, Paul and GOE-KatsuhikoNakahira
Activity
lee-dohm commentedon Jun 3, 2015
I figured it out while trying a few more things. If you double-click the tab itself (not the file in the Tree View), it becomes permanent. So ... perhaps not a bug? I still think this will be a common misconception.
mnquintana commentedon Jun 3, 2015
This only works currently if the tab itself is double-clicked, but not if the filename is double-clicked from the tree-view. I think we'd have to tweak the behavior of clicking on files in the tree-view a bit. Currently, single-clicking opens a file but keeps focus on the tree-view, and double-clicking focuses the editor; we'd have to change it so that single-clicking opens a preview tab and focuses the editor, and double-clicking opens the file and focuses the editor.
mnquintana commentedon Jun 3, 2015
FWIW we probably should add this enhancement because it's how the feature works in Sublime and it would feel much more intuitive, I think.
lee-dohm commentedon Jun 3, 2015
The reason why single-clicking does not focus the editor is so that you can click a file in the Tree View and press Backspace to delete it.
mnquintana commentedon Jun 3, 2015
Ah alright then, so updated:
Current behavior
Proposed behavior
Does that seem reasonable?
lee-dohm commentedon Jun 3, 2015
Yes, it does 😀
mnquintana commentedon Jun 3, 2015
This is a bit trickier than I thought at first – I think tabs will have to provide a service for tree-view to consume in order for tree-view to be aware of Preview Tabs.
acontreras89 commentedon Jun 5, 2015
@mnquintana , @lee-dohm thanks for the effort!
looking forward to having this enhancement
cjihrig commentedon Jun 5, 2015
I'm extremely excited to have this - preview tabs have probably been my biggest pain point with Atom. You mentioned that it is trickier than you originally thought. Any estimate on when this will be ready?
ha404 commentedon Jun 6, 2015
I just came here to say, "Yes, this, please". I expected Sublime behavior. Thanks!
adamreisnz commentedon Jun 7, 2015
Would be great to have file double clicking open them permanently, instead of having to double click the tab.
cstockton commentedon Jun 8, 2015
I want to +1 this as well, just noticed it when I updated packages and saw sublime text was deprecated and wouldn't work anymore.
alexrussell commentedon Jun 9, 2015
Just wanted to 👍 this issue. I did subscribe as I once read repo owners use number of subscribers to work out how many people care about a given issue, but I'm not sure how true that is (I certainly can't see an easy way (admittedly as a non-package-owner) to sort by number of subscribers, etc.).
zirho commentedon Feb 7, 2016
+1
midudev commentedon Feb 10, 2016
For those who come from Sublime Text this addition is a must. Thanks!
zirho commentedon Feb 10, 2016
I think this is fixed.
I updated it and works fine now.
-- update: forget about this it does not work...
but it works when file tab is double clicked.
adamreisnz commentedon Feb 10, 2016
It is supposedly fixed in 1.6.0 beta of Atom. See also atom/atom#9165
alexrussell commentedon Feb 10, 2016
In the version I use (the Beta) preview tabs now works exactly as expected - single click in tree = preview, double click in tree = permanent, double click preview tab titlebar (or edit text buffer in some way) = preview becomes permanent.
lee-dohm commentedon Feb 10, 2016
I'm also adding some stuff to the Flight Manual about this:
atom/flight-manual.atom.io#163
ddavison commentedon Feb 10, 2016
@lee-dohm et al.. since Preview Tabs was previously the sublime tabs package, here is the "spec" of features that was offered by sublime tabs.
ddavison/sublime-tabs#43 (comment)
double clicking to make tabs permanent was built-in.
fwiw
hellosteadman commentedon Mar 24, 2016
Can I ask how to disable this option now that it's disappeared? I accept that I'm in the minority but I massively dislike having to think beforehand if I have to single- or double-click a filename based on whether I might edit it in the future... so I need to be able to stop this behaviour from happening, since it's not something I enabled.
Where's the option to bring back the expected, consistent behaviour, where single-clicking opens a new permanent tab?
Thanks!
JTabel commentedon Mar 24, 2016
@iamsteadman I just foundYou can disable it in the core setting "Allow Pending Pane Items". When you uncheck the box, it will use the old behaviour.
hellosteadman commentedon Mar 24, 2016
@JTabel Perfect, you're a lifesaver. Thank you.
msssk commentedon Apr 16, 2016
Atom updated to 1.7.1 on Windows 10 and the old behavior is completely gone for me. I have unchecked "Allow pending pane items" and now single-clicking a file does nothing.
Expectation: disabling this option should give me the old behavior, where I could open a file with a single click.
Result: disabling this option gives me new behavior, where there's no preview at all, single click does nothing, I always have to double-click to open a file.
acontreras89 commentedon Apr 16, 2016
@msssk there's already a PR in the
tree-viewpackage (atom/tree-view#804) to address this.