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

Allow Tree-View when no file/folder #68

Closed
monkeymonk opened this issue Mar 4, 2014 · 21 comments · Fixed by #1315
Closed

Allow Tree-View when no file/folder #68

monkeymonk opened this issue Mar 4, 2014 · 21 comments · Fixed by #1315

Comments

@monkeymonk
Copy link

Because I usually drag a project folder inside the Tree-View... but for now that open a new window Editor. That's mean I have an editor with my project folder and the tree-view and a editor with nothing...

@metalim
Copy link

metalim commented Dec 12, 2014

Ping on this one.
I was surprised, when I reopened Atom and the file, but was unable to toggle treeview back on. I consider it a bug, not a "feature request".
A temporary workaround: install "Save Session" package.

@deiga
Copy link
Contributor

deiga commented Dec 15, 2014

What should Tree-View show when there is no file/folder?

@metalim
Copy link

metalim commented Jan 14, 2015

No idea what should it show, when there's no file, but when there IS a file, then - folder containing that file.

@monkeymonk
Copy link
Author

In Sublime Text, we have a simple empty pane.
st3-empty

@xenio
Copy link

xenio commented Jan 18, 2015

I agree, tree view should be open also with no files, it is a simple behaviour of finding the start of the code always on the same position. If I start Atom without any files the code start on the left side of the screen and it is very annoying on large screen.

@ricardograca
Copy link

Well, I just completely wiped my Atom installation and user configuration and reinstalled Atom from scratch (two times) because I thought there was some bug in my configuration preventing the tree view from opening. When even the "Toggle Tree View" command does nothing, it sure looks like a bug.

@kfix
Copy link

kfix commented Mar 20, 2015

I have this at the end of my init.coffee to deal with this/my quirky behavior:

#bare opens of atom.app should bring up the file tree
if not atom.project.getPath()
  atom.project.setPath(atom.config.get('core.projectHome'))
  atom.commands.dispatch(atom.views.getView(atom.workspace), 'tree-view:show')

@mnquintana
Copy link
Contributor

From atom/atom#6179 (comment), it might be worth showing a notification if you try opening the tree view with no project folder added. That way it won't seem broken if nothing happens.

@ricardograca
Copy link

Or just open an empty tree view since that's probably the expected behavior.

@thedaniel
Copy link
Contributor

Or just open an empty tree view since that's probably the expected behavior.

Yes, and perhaps the tree view could have an empty state like the panes do that display a message.

@mnquintana
Copy link
Contributor

Yes, and perhaps the tree view could have an empty state like the panes do that display a message.

👍 That sounds good

@RacerDelux
Copy link

Going to poke this along, I just ran into this issue as well, waisted a couple hours of work time before I figured out what was wrong. Really something that needs to be added.

@dcrockwell
Copy link

Getting caught by this problem myself on Windows 7. Even when opening from Explorer, Atom cannot toggle the treeview with Ctrl+\, however it can be toggled via the drop-down menu.

@Swivelgames
Copy link

Swivelgames commented Jun 11, 2016

Two years later: Open

I just spent nearly an hour opening and closing Atom, trying to toggle via Context and Key Shortcut, looking at various Atom config files, and perusing. 😯

Any chance this enhancement bug will be addressed any time soon? It's quite frustrating...

@metalim
Copy link

metalim commented Jun 14, 2016

@Swivelgames Yes. Use Sublime 😤

@jamezpolley
Copy link

The title of this enhancement is "Allow tree view when no open file/folder", but I think that's overly specific.

The problem I had is that I was telling the tree view to open (via the usual keyboard shortcut, but also via the command palette) and nothing was happening.

Having the tree view open up would have been one way to solve this; but a "Cannot show tree view, no open file" error message would have worked nicely as well.

I'd suggest change this from an enhancement to a bug along the lines of "No user feedback when tree view can't be opened". That bug might be solved by an enhancement to "Allow tree view when no open file/folder", but there might also be a simpler solution to the bug.

@chakrihacker
Copy link

I am having the same issue in ubuntu 16.04 and my other lappy with 14.04 runs perfectly please help

@huckl3b3rry87
Copy link

Is there a solution for this?

@mda6
Copy link

mda6 commented Jan 6, 2017

Open since 2 years ago? This is funny.. but it scares me enough to go back to sublime - that such a small thing is not resolved YET.. i know, it's allot of stuff to work on to the atom devs but.. still.. i just wanted a polished awesome text editor..

@deiga
Copy link
Contributor

deiga commented Jan 10, 2017

@huckl3b3rry87 @mda6 @chakrihacker You are very welcome to donate your time and make a fix for this :)

@lazychino
Copy link

maybe showing the home folder by default if no file or folder is opened

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

Successfully merging a pull request may close this issue.