atom/atom

Open project folder dialog defaults to current filename

Aperta

#12.454 aperta il 18 ago 2016

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (17.233 fork)batch import
bughacktoberfesttriaged

Metriche repository

Star
 (60.802 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

When you press ctrl+shift+o to open a project folder the dialog defaults to the current file name, which is not a valid folder.

Screenshot where I had a file in the spec folder open and wanted to open that folder in a separate Atom window using ctrl+shift+o and then enter. In addition I also noticed that the entire file name is not shown in the dialog. Compare error dialog text with open folder dialog text. not a folder

Steps to Reproduce

  1. Open Atom in safe mode, add a project folder and open a file.
  2. With the file focused press ctrl+shift+o
  3. Try to open that folder by just pressing enter on the dialog, error because the folder is set incorrectly to a filename.

Expected behavior: The current open files folder opens as a project folder in a new Atom window.

Actual behavior: Error because file name is set to a file instead of a folder, if you clear the file name from the dialog before opening it opens the folder as expected.

Versions

Windows 7.

atom --version

Atom    : 1.9.8
Electron: 0.37.8
Chrome  : 49.0.2623.75
Node    : 5.10.0

apm --version

apm  1.10.0
npm  2.13.3
node 0.10.40
python 2.7.11
git 1.9.2.msysgit.0
visual studio

Guida contributor