Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
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

Closed

Description

@lee-dohm

Using Atom v0.206.0-4941229 on Mac OS X 10.10.3.

screen shot 2015-06-02 at 7 38 29 pm

Repro Steps

  1. Open Atom
  2. Open Settings View
  3. Navigate to Tabs package settings
  4. Ensure "Use Preview Tabs" is checked
  5. Close Settings View
  6. Double-click any file in Tree View

Expected: Tab's title to not be italic (italic is the indicator that it is temporary)
Actual: Tab's title is italic

  1. Double-click another file in Tree View

Expected: Second tab to open
Actual: New file overwrites the tab of the original file

Activity

  1. lee-dohm commented on Jun 3, 2015

    @lee-dohm
    ContributorAuthor

    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.

  2. mnquintana commented on Jun 3, 2015

    @mnquintana
    Contributor

    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.

  3. mnquintana commented on Jun 3, 2015

    @mnquintana
    Contributor

    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.

  4. lee-dohm commented on Jun 3, 2015

    @lee-dohm
    ContributorAuthor

    we'd have to change it so that single-clicking opens a preview tab and focuses the editor

    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.

  5. mnquintana commented on Jun 3, 2015

    @mnquintana
    Contributor

    Ah alright then, so updated:

    Current behavior

    • Single-clicking opens a file but keeps focus on the tree-view
    • Double-clicking focuses the editor

    Proposed behavior

    • Single-clicking opens a preview tab but keeps focus on the tree-view
    • Double-clicking opens the file as a regular tab and focuses the editor

    Does that seem reasonable?

  6. lee-dohm commented on Jun 3, 2015

    @lee-dohm
    ContributorAuthor

    Yes, it does 😀

  7. mnquintana commented on Jun 3, 2015

    @mnquintana
    Contributor

    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.

  8. acontreras89 commented on Jun 5, 2015

    @acontreras89
    Contributor

    @mnquintana , @lee-dohm thanks for the effort!
    looking forward to having this enhancement

  9. cjihrig commented on Jun 5, 2015

    @cjihrig

    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?

  10. ha404 commented on Jun 6, 2015

    @ha404

    I just came here to say, "Yes, this, please". I expected Sublime behavior. Thanks!

  11. adamreisnz commented on Jun 7, 2015

    @adamreisnz

    Would be great to have file double clicking open them permanently, instead of having to double click the tab.

  12. cstockton commented on Jun 8, 2015

    @cstockton

    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.

  13. alexrussell commented on Jun 9, 2015

    @alexrussell

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

  14. self-assigned this
    on Jun 9, 2015
  15. zirho commented on Feb 7, 2016

    @zirho

    +1

  16. midudev commented on Feb 10, 2016

    @midudev

    For those who come from Sublime Text this addition is a must. Thanks!

  17. zirho commented on Feb 10, 2016

    @zirho

    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.

  18. adamreisnz commented on Feb 10, 2016

    @adamreisnz

    It is supposedly fixed in 1.6.0 beta of Atom. See also atom/atom#9165

  19. alexrussell commented on Feb 10, 2016

    @alexrussell

    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.

  20. lee-dohm commented on Feb 10, 2016

    @lee-dohm
    ContributorAuthor

    I'm also adding some stuff to the Flight Manual about this:

    atom/flight-manual.atom.io#163

  21. ddavison commented on Feb 10, 2016

    @ddavison

    @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

  22. hellosteadman commented on Mar 24, 2016

    @hellosteadman

    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!

  23. JTabel commented on Mar 24, 2016

    @JTabel

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

  24. hellosteadman commented on Mar 24, 2016

    @hellosteadman

    @JTabel Perfect, you're a lifesaver. Thank you.

  25. msssk commented on Apr 16, 2016

    @msssk

    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.

  26. acontreras89 commented on Apr 16, 2016

    @acontreras89
    Contributor

    @msssk there's already a PR in the tree-view package (atom/tree-view#804) to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions