Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficult to create folder in left panel file view if the open folder only contains folder #1043

Closed
Tyriar opened this issue Dec 5, 2015 · 30 comments
Assignees
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues on-testplan ux User experience issues
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Dec 5, 2015

Open a folder that a lot of folders (enough to fill the height of the screen) and no files, it seems impossible to create a folder or file in the root folder without closing all files in the text view.

@egamma egamma added the feature-request Request for new features or functionality label Dec 8, 2015
@egamma
Copy link
Member

egamma commented Dec 8, 2015

Not as simple as it should be, but you can select a file in the root folder and then use the new folder action from the toolbar.

@Tyriar
Copy link
Member Author

Tyriar commented Dec 8, 2015

This is specifically about a root folder containing only folders, I imagine it's a pretty common use case to open a folder containing many git repositories but no files.

@Tyriar Tyriar closed this as completed Dec 8, 2015
@Tyriar Tyriar reopened this Dec 8, 2015
@egamma
Copy link
Member

egamma commented Dec 8, 2015

(closed by accident, sorry)

Thanks for the additional info:

about a root folder that containing only folders

@motowilliams
Copy link

Same applies for a root level file, correct? I had to first select a file in the root directory and then select the New File icon. Otherwise it will use the last selected directory as the context for the new file location.

@Tyriar Tyriar added the ux User experience issues label Aug 6, 2016
@Tyriar Tyriar assigned stevencl and bgashler1 and unassigned bpasero Aug 6, 2016
@niieani
Copy link

niieani commented Aug 6, 2016

Note that the same issue also applies to Drag and Drop when you try to move a file/folder top level - currently impossible.

I'll copy & paste my solution suggestions from the other issue:

  • allow dragging files to the project name, which is an always visible UI element
  • add a slight padding to the bottom of the files list in the Files Explorer, so there is always room to drag files out to the top-level after scrolling down

@rhys-vdw
Copy link

It would be nice if there was some way to also drop between folders - currently impossible.

cant-drop

@danmarshall
Copy link

I think the icons could remain when the root folder is collapsed, instead of hiding them. When root is collapsed, the icons pertain to the root.
root

@bpasero
Copy link
Member

bpasero commented Jul 7, 2017

Fixed by always showing the root folder in the explorer when you collapse:

image

@bpasero bpasero closed this as completed Jul 7, 2017
@dataflowjs
Copy link

dataflowjs commented May 18, 2018

UP! (just add the button "create new folder in selected folder" and "create new folder in project folder" OR right click on PROJECT folder with items "create new file", "create new folder")

@chhh
Copy link

chhh commented May 18, 2018

This can be remedied with plugins though. I've found this one (ext install create-file-folder) to do the kob well with the default key combo Ctrl + Alt + Shift + N to create a new folder.

@oliversturm
Copy link

Bump! I've been using the "right-click on scrollbar" method to create a root level folder for months now, but with my recent update to 1.28.2 this technique doesn't work anymore because the context menu doesn't come up!

@ThomasWillumsen
Copy link

Hilarious how it is still not working. There's no root folder present in my solution.
Imagine this being an issue in 2018 q:^)

@rhys-vdw
Copy link

I feel like this is workable:

image

@oliversturm
Copy link

@rhys-vdw Cool, never noticed that! :) Yep, that works for me.

@oliversturm
Copy link

@rhys-vdw Hm... spoke too soon. I saw the icons on the top level and I assumed they would create new folders or files on that level. However, they don't - they create folders and files on the level of whatever folder is currently selected in the hierarchy - the same thing I can achieve by using the context menu. So I take back what I said - I still don't see any way of creating a new folder or file on the top level, if the tree list is so full that I can't right-click in empty space anywhere.

@apjyotirmay
Copy link

Why is it so difficult to not display the opened project as a part of explorer? Just make the root folder appear like a normal folder, so that we are able to click on it and use the context menu. 2018 is coming to an end, and things are still the way they used to be.

@StephenWeatherford
Copy link

My natural inclination is to click on the titlebar, since after all it's titled with the top-level folder name. B But that does not work as expected.
This has been confusing for both us developers and customers. See for instance:
#10343
microsoft/vscode-azurestorage#252
Plus, if the files/folders list takes up all the vertical space, I'm not sure it's possible to get a context menu on the top-level folder at all:

@so-jelly
Copy link

Am i missing a solution for dragging / pasting a root level folder from elsewhere? There was a thread about dragging that was merged here, but this is a different story.

@Cloudmersive
Copy link

How is this issue from 2015 still not fixed?

@Cloudmersive
Copy link

Opened a related issue here: #75571

@isidorn
Copy link
Contributor

isidorn commented Aug 9, 2019

Now there are 3 alternatives how to create file/folder top level in a full explorer view:

  1. It is possible to scroll beyond the last element, so you can right click in the empty space
  2. You can press Escape to clear both focus and selection and use the top level actions to achieve this
  3. You can right click on the scroll bar

This is not a definitie solution. We have pushed it to insiders to gather feedback from users and team members. So let us know what you think

explorer

@StephenWeatherford
Copy link

Looks like it's in stable 1.37?

Might have found it via #2, might not have (it requires two presses of ESC), but that is an improvement thanks. Definitely would never find it via the scrollbar.

Personally, I'm not sure it makes sense to have the top-level actions be context-sensitive at all, though. Why not have them add folders/files at the top level all of the time? You can use context menus to create subfolders/subfiles.

@isidorn
Copy link
Contributor

isidorn commented Aug 12, 2019

@StephenWeatherford changes mentioned in my previous comment are not in stable 1.37. They will be in the next one. But you can try them out in the latest insiders.
As for changing the top level actions thanks for the idea, however changing that would be breaking behavior to what most of our users are used to over the years. So I would definitely be against that.

@shalvah
Copy link

shalvah commented Sep 16, 2019

Wow, 4 years on, I'm glad something is finally being done about this. Even though all of the mentioned fixes are pretty unintuitive and out of place for a friendly tool like VS Code.

Personally, I'm not sure it makes sense to have the top-level actions be context-sensitive at all, though. Why not have them add folders/files at the top level all of the time?

I agree with @StephenWeatherford, and I think this is the general expectation by default. Hopefully we get this in an update soon. I don't think the change in behaviour will be as big a deal as you might think.

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues on-testplan ux User experience issues
Projects
None yet
Development

No branches or pull requests