atom / tree-view

🌳 Explore and open project files in Atom
MIT License
561 stars 364 forks source link

Add autoopen option #1345

Closed ardentbriar closed 4 years ago

ardentbriar commented 4 years ago

Since builds are currently failing #1344 I can't run tests, so leaving them to update after that's resolved. I'm calling this a draft PR until then.

Description of the Change

Adds boolean config setting Show On Attach to control whether the tree view is automatically shown when a new window is opened.

Default is true to preserve current behavior.

Alternate Designs

None. The change is small.

Benefits

Allow keeping the tree view hidden by default. This has been requested for years on the forum.

Possible Drawbacks

Choice fatigue. It adds a new option which must be thought through when the configuring the package.

I don't think there are excessive options. After this change there are 8 boolean options. The default value preserves current behavior so most people won't need to think about it.

Applicable Issues

ardentbriar commented 4 years ago

Sorry about the mess, I used the wrong branch. Replacing with #1346.