Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

[RFE] Request for an option to prevent the 'Project' pane from opening on startup #1370

Open
pneedle-rh opened this issue Dec 16, 2020 · 60 comments

Comments

@pneedle-rh
Copy link

pneedle-rh commented Dec 16, 2020

Summary

This is a request for an option to prevent the Project pane from opening when Atom is used to open a single file.

Motivation

I typically open single files in Atom from the command line, by using the following command:

$ atom <file>.adoc

I do this many times in a day and I jump in and out of different Git projects. I don't use the project features within Atom and prefer to navigate from the CLI and open files in Atom from there. Often I close Atom when I have finished editing a single file.

It seems that recently a change was introduced in Atom that results in the Project pane being open when Atom is started against a single file. The project pane states that "Your project is currently empty". This means that I have to close the project pane every time I open Atom, to be able to view a file in the whole Atom window.

It would be great to have the option to suppress the Project pane on startup, so that I don't have to close it numerous times per day.

Describe alternatives you've considered

  1. Using the CTRL+\ keyboard shortcut on Fedora, or CMD+\ on MacOS, to close the pane each time. This is not really a workaround, because I still have to do this many times per day. It is just quicker to do this rather than using the mouse to close the pane each time.

  2. Disabling tree-view in Edit -> Preferences -> Packages. This prevents the pane from opening when Atom is used to open a single file. However this is not a suitable long term solution because then the tree-view functionality is not available at all. It would be better to have the option to prevent the pane from opening on startup, but to still have it available to open when you need it.

@pneedle-rh pneedle-rh changed the title [RFE] Request for an option to prevent the Project pane from opening on startup [RFE] Request for an option to prevent the 'Project' pane from opening on startup Dec 16, 2020
@pneedle-rh
Copy link
Author

pneedle-rh commented Dec 16, 2020

Perhaps something like a 'Restore current pane configuration when Atom is restarted' option could resolve this. Or, you could instead add a more specific option in the preferences to prevent Tree View from showing on startup.

Another option would be to restore the previous behaviour. Before something like three weeks ago (IIRC), this was not an issue and the pane did not open every time I started Atom to view a file. This has been observed on Fedora 32 and MacOS.

@pneedle-rh
Copy link
Author

pneedle-rh commented Dec 16, 2020

Looking at the Atom Release Notes, I am pretty sure that this change in behaviour was introduced in Atom 1.53.0 through this tree-view pull request:

@mortar-and-pestle
Copy link

mortar-and-pestle commented Jan 14, 2021

Looking at the Atom Release Notes, I am pretty sure that this change in behaviour was introduced in Atom 1.53.0 through this tree-view pull request:

* #1315 - Always show Tree View

@pneedle-rh

Yep.

Possible Drawbacks
Tree View will now appear, even when no projects are open.

Hopefully, we can get the option to disable this functionality.

@tcatlas
Copy link

tcatlas commented Feb 17, 2021

Yeah can we get an option to disable this?

I don't need Atom telling me how I can add a project every time I open it. I know how to do it if I need to. I mostly use Atom for single-file editing, and this stupid pane just adds to the bloat.

@zekeadam
Copy link

Its so annoying to have a tab auto open that I don't need 9/10 times

@Oktopuce
Copy link

Same for me I just use Atom to open single files and don't need the project pane and it's boring to always have to close it manually.

@michaeljohns2
Copy link

michaeljohns2 commented Mar 24, 2021

I am coming back to atom after a year or so. I spent about 30 minutes in disbelief that I could not auto-hide the tree view on each start of atom. My pattern is similar to @DiscoveryOV and @pneedle-rh where I often open a single file and rarely open projects.

@JohnGlassmyer
Copy link

Forcing a little-used feature onto a valuable chunk of screen real estate, time after time, relentlessly, is perhaps not a great way to encourage use of the feature.

@angstschweiss
Copy link

I concur, it is supremely annoying having to manually close the tree view every time.

@moritzpoll
Copy link

moritzpoll commented Mar 27, 2021

Seconded. Tried everything in this thread and nothing seems to work anymore: https://discuss.atom.io/t/hide-treeview-by-default/7718/20. The brute force way is to go into setting and disable the package tree-view altogether. Since I practically never use it, that's my solution for now, but it's not a pretty one.

@pokono
Copy link

pokono commented Apr 6, 2021

Pleeeaaaseeee, pretty pleeeaaassseeee!!

I got all my co-workers into Atom over the last year and now they hate me!! We use it mostly for scratch files and that pane is really annoying.

@giorgioskij
Copy link

I've just spent the past hours trying to prevent that damn pane from auto opening, at least now I know I'm not alone.

Please give us the option to have it hidden on startup, I feel like this is literally the only thing preventing atom from being the best go-to text editor!

@nuoxoxo
Copy link

nuoxoxo commented Apr 12, 2021

Now i'm done trying to hide the pane and back to work. Fortunately it's quick on mac.
cmd+\ will do it, but have to do it everytime

@zekeadam
Copy link

I had enough of atom's annoyance's and switched to vs code, glad I did

@tcatlas
Copy link

tcatlas commented Apr 13, 2021

I had enough of atom's annoyance's and switched to vs code, glad I did

I can't remember the reason I switched from VS Code to Atom, I feel like it was speed related or maybe Atom's ease of extension install - but regardless this is damn annoying for sure. All we need it for someone to submit a PR removing it by setting, but I am unfortunately not that guy. Anyone?

@starcatter
Copy link

+1 As a new user when I opened a file I was greeted with 2/3 of my screen taken up by project pane and welcome messages, neither of which I had any interest in. At this point I don't care what the editor can do, I just want to work on the file I opened, I'm capable of looking for extra features when I need them.

I suggest showing the welcome/project panes if the editor was started with no files specified, and otherwise only showing the project pane if the file being opened belongs to a project.

@slugrustle
Copy link

slugrustle commented Jun 14, 2021

I just switched from Visual Studio Code to Atom because the former was bombarding me with dialogs about protected mode tabs. I just want a text editor to edit text files with, not bombard me with unwanted dialogs.

Atom is great except for this useless pane opening every time. Glad I could disable it entirely, wish I could just start Atom with it minimized.

@joaotmartins
Copy link
Contributor

joaotmartins commented Jun 14, 2021

Probably this needs to be fixed in tree-view package.
There's already an issue open there (1375)

@smenor
Copy link

smenor commented Jul 22, 2021

I'm desperately itching for this hidden on startup feature to be released because I literally never want that pane and have to hide it every time Atom starts up

@dima-y
Copy link

dima-y commented Jul 27, 2021

Another vote for this feature.

@graziosov
Copy link

Another vote for this feature. Please !

@joaotmartins
Copy link
Contributor

The fix is already in tree-view package release v0.229.0.
I was waiting for it to be picked up here by the maintainers, but if it isn't I'll submit a pull request for updating the package references.

@stefmikhail
Copy link

The fix is already in tree-view package release v0.229.0.
I was waiting for it to be picked up here by the maintainers, but if it isn't I'll submit a pull request for updating the package references.

For some reason my Atom on OSX won't update to that version: it is saying v0.228.3. Am I doing something wrong that I can't update to v0.229.0? I'm so annoyed by that Project panel always appearing when I just want to edit a file. lol

@joaotmartins
Copy link
Contributor

For some reason my Atom on OSX won't update to that version: it is saying v0.228.3. Am I doing something wrong that I can't update to v0.229.0? I'm so annoyed by that Project panel always appearing when I just want to edit a file. lol

Probably because the latest release of Atom (1.58.0) still lists v0.228.3 in its dependencies.
I'll submit a pull request to update it soon.

@palbera
Copy link

palbera commented Aug 9, 2021

For some reason my Atom on OSX won't update to that version: it is saying v0.228.3. Am I doing something wrong that I can't update to v0.229.0? I'm so annoyed by that Project panel always appearing when I just want to edit a file. lol

Probably because the latest release of Atom (1.58.0) still lists v0.228.3 in its dependencies.
I'll submit a pull request to update it soon.

Hi there, any news about the pull request? I updated ATOM to 1.58.0 on my Mac but the tree-view package is still v0.228.3
Thanks in advance

@ladar
Copy link

ladar commented Dec 10, 2021

@angstschweiss @beyondcompute @cstout1 @dima-y @DiscoveryOV @giorgioskij @graziosov @jmredfern @JohnGlassmyer @michaeljohns2 @moritzpoll @nuoxoxo @palbera @pneedle-rh @pokono @slugrustle @smenor @starcatter @stefmikhail @xanoni

Hi everyone. I know this feature will eventually trickle down to us, the indigent userbase., but for those of us that don't feel like waiting (like myself), just add the snippet below to your Atom init file. It will collapse (aka hide) the tree view pane automatically when Atom starts. Since the package isn't disabled, you can still reveal the tree view pane using the menu option, the keyboard shortcuts, or the arrow that appears when you move your mouse to the right spot.

To use this workaround, you can either create (or edit) an init.coffee file in your Atom home directory, or if you don't know where that is, you can simply launch Atom and select Edit -> Init Script. Once you have the file open, paste the text below into your init file and enjoy.

waitForPackageActivation = (causeTreeToggle) ->
  disposable = atom.workspace.onDidOpen ({item}) ->
    atom.commands.dispatch atom.views.getView(atom.workspace), 'tree-view:toggle'
    disposable.dispose()
waitForPackageActivation()

@ladar
Copy link

ladar commented Dec 10, 2021

I updated the above snippet. It seems the original version created a race condition that made it hard to reveal the tree view using the shortcuts/menu. The updated version should work better for ya'll.

@dima-y
Copy link

dima-y commented Dec 13, 2021

Thanks ladar, that works!
(Minor point, at least on Windows, it is not Edit -> Init Script, it is File -> Init Script.)

@NuCNCV
Copy link

NuCNCV commented Jan 5, 2022

@angstschweiss @beyondcompute @cstout1 @dima-y @DiscoveryOV @giorgioskij @graziosov @jmredfern @JohnGlassmyer @michaeljohns2 @moritzpoll @nuoxoxo @palbera @pneedle-rh @pokono @slugrustle @smenor @starcatter @stefmikhail @xanoni

Hi everyone. I know this feature will eventually trickle down to us, the indigent userbase., but for those of us that don't feel like waiting (like myself), just add the snippet below to your Atom init file. It will collapse (aka hide) the tree view pane automatically when Atom starts. Since the package isn't disabled, you can still reveal the tree view pane using the menu option, the keyboard shortcuts, or the arrow that appears when you move your mouse to the right spot.

To use this workaround, you can either create (or edit) an init.coffee file in your Atom home directory, or if you don't know where that is, you can simply launch Atom and select Edit -> Init Script. Once you have the file open, paste the text below into your init file and enjoy.

waitForPackageActivation = (causeTreeToggle) ->
  disposable = atom.workspace.onDidOpen ({item}) ->
    atom.commands.dispatch atom.views.getView(atom.workspace), 'tree-view:toggle'
    disposable.dispose()
waitForPackageActivation()

Frustratingly this doesn't work on Mac, Atom v 1.58

Atom -> Init Script -> Paste Code -> Pane still loads on open

@progonkpa
Copy link

progonkpa commented Jan 11, 2022

The init.coffee unfortunately doesn't work for me either on Manjaro.

@NateAtB4
Copy link

Yes, would be great to have the project pane disabled on MacOS. I only use it for single file edits and open it from the command line. Seems unusually for it to take this long to get something simple resolved.

@Jas0n99
Copy link

Jas0n99 commented Feb 13, 2022

Even though Atom is up to 1.59, and treeview on github is up to 0.229.1, Atom still is at 0.228.3 and refuses to update.

I've been suffering for almost 3 years of that annoying project pane ALWAYS THERE IN YOUR FACE when trying to just do a quick edit on a single text file. I don't want to disable it completely as I do use it when working on github projects.

@jawanns
Copy link

jawanns commented Feb 17, 2022

Please, please, please provide a native method for disabling the project pane at startup in macOS. Literally never use it.

@mycosavant
Copy link

mycosavant commented Feb 27, 2022

i've been annoyed with this feature for a couple of weeks and finally decided to search for a solution. It's good to see that i'm not the only one, but a little disheartening that it's been going on so long without a real solution.

@smenor
Copy link

smenor commented Feb 27, 2022 via email

@progonkpa
Copy link

Yup, me too.
I will not let my software bully me.

@Jas0n99
Copy link

Jas0n99 commented Mar 13, 2022

I give up. Even with the 1.60.0 update and treeview is finally at 0.229.1 even if you check the box in treeview it's still appearing every time I try to edit a single file or even just open atom with no file! Switching permanently to MS Code.

@cstout1
Copy link

cstout1 commented Mar 14, 2022

I'm sorry to say that VS Code has stolen my heart as well.

@rFalque
Copy link

rFalque commented Mar 17, 2022

@angstschweiss @beyondcompute @cstout1 @dima-y @DiscoveryOV @giorgioskij @graziosov @jmredfern @JohnGlassmyer @michaeljohns2 @moritzpoll @nuoxoxo @palbera @pneedle-rh @pokono @slugrustle @smenor @starcatter @stefmikhail @xanoni

Hi everyone. I know this feature will eventually trickle down to us, the indigent userbase., but for those of us that don't feel like waiting (like myself), just add the snippet below to your Atom init file. It will collapse (aka hide) the tree view pane automatically when Atom starts. Since the package isn't disabled, you can still reveal the tree view pane using the menu option, the keyboard shortcuts, or the arrow that appears when you move your mouse to the right spot.

To use this workaround, you can either create (or edit) an init.coffee file in your Atom home directory, or if you don't know where that is, you can simply launch Atom and select Edit -> Init Script. Once you have the file open, paste the text below into your init file and enjoy.

waitForPackageActivation = (causeTreeToggle) ->
  disposable = atom.workspace.onDidOpen ({item}) ->
    atom.commands.dispatch atom.views.getView(atom.workspace), 'tree-view:toggle'
    disposable.dispose()
waitForPackageActivation()

It kind of solves the problem on my side (ubuntu) ... still disabling it to edit single files would be great

@JinhaPark
Copy link

@rFalque Very helpful solution. Thank you

@rFalque
Copy link

rFalque commented Mar 24, 2022

For some reasons, the previous fix I quoted does not work anymore but the script described there works when used in the init.coffee file.

atom.workspace.onDidOpen ({item}) ->
  itemName = item.constructor.name
  if (itemName  != 'TreeView') # no action if open TreeView intentionally
    dock = atom.workspace.paneContainerForURI('atom://tree-view')
    if dock && dock.isVisible()
      dock.hide()

That said I noticed there is an option Hidden on startup in the tree-view package. It does not seems to work properly tho.

@joaotmartins
Copy link
Contributor

My fix to the original implementation (#1396 ) has finally been merged into master, hopefully this will make it into a next tree-view release.

@smenor
Copy link

smenor commented Mar 25, 2022 via email

@pneedle-rh
Copy link
Author

My fix to the original implementation (#1396 ) has finally been merged into master, hopefully this will make it into a next tree-view release.

@joaotmartins thank you!

@smenor
Copy link

smenor commented Mar 25, 2022 via email

@ryanmsnyder
Copy link

Any updates on this? This is a horrible feature. I otherwise really like Atom.

@gorbysj
Copy link

gorbysj commented Apr 22, 2022

This is a bad design. I won't use atom until it's fixed.

@ihsanpraditya
Copy link

For some reasons, the previous fix I quoted does not work anymore but the script described there works when used in the init.coffee file.

atom.workspace.onDidOpen ({item}) ->
  itemName = item.constructor.name
  if (itemName  != 'TreeView') # no action if open TreeView intentionally
    dock = atom.workspace.paneContainerForURI('atom://tree-view')
    if dock && dock.isVisible()
      dock.hide()

That said I noticed there is an option Hidden on startup in the tree-view package. It does not seems to work properly tho.

It works for me.
macOS 12.3.1 21E258 x86_64.
MacBookAir 7,1
Kernel: 21.4.0

@fncll
Copy link

fncll commented May 4, 2022

The Hidden on startup option doesn't work for me either. A strange decision to opt for the current startup behavior by default!

@Hacksign
Copy link

Hidden on startup doesn't work +1

@jawanns
Copy link

jawanns commented May 21, 2022

For some reasons, the previous fix I quoted does not work anymore but the script described there works when used in the init.coffee file.

atom.workspace.onDidOpen ({item}) ->
  itemName = item.constructor.name
  if (itemName  != 'TreeView') # no action if open TreeView intentionally
    dock = atom.workspace.paneContainerForURI('atom://tree-view')
    if dock && dock.isVisible()
      dock.hide()

That said I noticed there is an option Hidden on startup in the tree-view package. It does not seems to work properly tho.

It works for me. macOS 12.3.1 21E258 x86_64. MacBookAir 7,1 Kernel: 21.4.0

This works for me too on the same release.

@robertocannella
Copy link

For some reasons, the previous fix I quoted does not work anymore but the script described there works when used in the init.coffee file.

atom.workspace.onDidOpen ({item}) ->
  itemName = item.constructor.name
  if (itemName  != 'TreeView') # no action if open TreeView intentionally
    dock = atom.workspace.paneContainerForURI('atom://tree-view')
    if dock && dock.isVisible()
      dock.hide()

That said I noticed there is an option Hidden on startup in the tree-view package. It does not seems to work properly tho.

It works for me. macOS 12.3.1 21E258 x86_64. MacBookAir 7,1 Kernel: 21.4.0

This works for me too on the same release.

Works for me.

% system_profiler SPSoftwareDataType SPHardwareDataType

Software:

System Software Overview:

  System Version: macOS 12.4 (21F79)
  Kernel Version: Darwin 21.5.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: NewMBPro
  User Name: Roberto Cannella (robertocannella)
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 16:32

Hardware:

Hardware Overview:

  Model Name: MacBook Pro
  Model Identifier: MacBookPro17,1
  Chip: Apple M1
  Total Number of Cores: 8 (4 performance and 4 efficiency)
  Memory: 16 GB
  System Firmware Version: 7459.121.3
  OS Loader Version: 7459.121.3
  Serial Number (system): FVFGF4GZQ05P
  Hardware UUID: E939CAD6-C771-5351-AD1B-64409B90C8B5
  Provisioning UDID: 00008103-001A74601E60801E
  Activation Lock Status: Enabled

@JaceJu-frog
Copy link

I think I have found the solution(I am a Windows User) .Just Click 'File'-->Settings-->Packages,then search for tree-view.Get to its setting-->Convert to "Hidden on startup".Then the annoying project bar is gone.
image

@marothe
Copy link

marothe commented Nov 10, 2022

I think I have found the solution(I am a Windows User) .Just Click 'File'-->Settings-->Packages,then search for tree-view.Get to its setting-->Convert to "Hidden on startup".Then the annoying project bar is gone. image

Does it really solve it for you? I already had "hidden on startup" ticked on, but I still have the project bar at startup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests