facebookarchive / nuclide

An open IDE for web and native mobile development, built on top of Atom
https://nuclide.io
Other
7.79k stars 682 forks source link

File tree - Cannot use keyboard at all on any file inside pane #1237

Open nahuelhds opened 7 years ago

nahuelhds commented 7 years ago

Issue and Steps to Reproduce

Cannot use any keyboard key or shortcut for any file inside the file tree pane.

Expected Behavior

Use cases:

  1. I wanna copy and paste a file, so I select the file in the pane, press "ctrl+c" go to the folder I wanna paste, press "ctrl+v" and nothing happens.
  2. I wanna rename a file, so I select it and press F2 and nothing happens.
  3. I wanna navigate with the file over the file tree, so I select any file and I press "Arrow down key" and nothing happens, the arrow pressing makes the line cursor go down instead of selecting the file below the one I've have selected
  4. I could go on, but you get it.

Actual Behavior

  1. Should be able to paste the file I've just copy in the clipbard.
  2. Should be able to rename the file.
  3. Should be able to navigate.
  4. Should be... but I'm not haha.

Versions

Additional Details

nahuelhds commented 7 years ago

This happened with Nuclide 0.236.0. It makes me want to disable the file tree, moving to Atom folder view. It's quite annoying

nahuelhds commented 7 years ago

I've disabled the Nuclide's tree view going to my ~,atom/config.cson and replacing "tree-view" for "nuclide-file-tree" into the "disabledPackages". That works fine but it's doesn't remain after Atom restart, so I have to do it manually every time. =S

matthewwithanm commented 7 years ago

Hey @nahuelhds! Can you explain (3) a bit more? If you focus the file tree and use the arrow keys, it should change the selected file (at which point you can hit return to open the selected one). As far as I can tell, this is how Atom's tree-view behaves too.

The first two are features we don't support yet. I'm not sure if/when we will, but PRs are welcome!

nahuelhds commented 7 years ago

Hi @matthewwithanm. Point 3:

If you focus the file tree and use the arrow keys, it should change the selected file (at which point you can hit return to open the selected one). As far as I can tell, this is how Atom's tree-view behaves too.

That's exactly what I expect but it doesn't happens on my Atom instance under Windows.

About points 1 and 2 it's a basic feature that every tree view have, so I don't see the reason to not support it. I mean, default's Atom tree view does it, so I think that any user that see it's tree view changed -without knowing that it would happen after installing Nuclide- it should at least contain the same basic features. It's very annoying copying and pasting using the right click and the mouse for it.

I love Nuclide so far, but the tree view, without those points it's just a pretty pane and not a useful tree view, in my opinion.

judewang commented 7 years ago

@matthewwithanm: I do think the same thing as @nahuelhds, trying finding ways to disable Nuclide file tree.