postcasio / tree-view-open-files

Atom package to show open files in a list above the tree view. (like Sublime Text)
MIT License
27 stars 20 forks source link

Should not add file when viewed as a "Pending Pane Item" but not opened #40

Open shanemgrey opened 8 years ago

shanemgrey commented 8 years ago

Atom has a behavior "Allow Pending Pane Items" in the core settings. When enabled clicking once on a file shows that file, but does not add it to the pane permanently. If that file is not changed, when navigating away from it, Atom removes that tab.

This package adds the file to a list on the top of the tree view, but it should not when the file is only in this temporary view state.

By putting the file at the top of the tree, (under some conditions, like when there are two already open) all the files below it are pushed down one. This causes the tree to move the files between clicking once and the second part of double click to fully open a file. That causes the wrong file to be opened.

mateddy commented 7 years ago

I got this problem too, and thought fixing a height of say 200px of pane as in #43. No one else have this problem in half year?