bodil / vscode-file-browser

https://marketplace.visualstudio.com/items?itemName=bodil.file-browser
GNU Lesser General Public License v3.0
86 stars 22 forks source link

requires too many keystrokes for the standard use-case #19

Open grozan opened 4 years ago

grozan commented 4 years ago

Hi,

I think the use-case number one for most people is to quickly switch between different exisiting files It's nice to be able to create new files and folders, but I think most people use existing files most of the time

Let's say I'm in a folder with those files

foobar1
foobar2
foobaz1
foobaz2

What I'd expect, to speed up my workflow, would be that:

Don't you think this would be a more fluid workflow?

Right now, if I want to quickly jump to another existing file, I have to make sure I type the beginning of the filename, cause otherwise pressing TAB is not going to autocomplete and open the first match.

In my example, I cannot just type z2 then TAB and have the foobaz2 file opened. Instead, if I type z2 I have the option to create a file called z2 first (Again, I don't think it's the use-case number one to constantly create new files/folders). I then have to go down once, to select my file, and then press ENTER.

The list is reorganised, and the files containing z2 are at the top of the list, but the others are still there, which I find very confusing. Why not hiding them, as they are no match for z2?

would you consider changing the workflow, or to introduce new options to make "fast switching" faster, as well as "hide items that don't match" possible?

matklad commented 4 years ago

Uhu, as a new user of the extension, I also find the the create action being default confusing:

image

I'd love to have an option to put the "Open as new file.." option to the bottom, or maybe remove it altogether in favor of something like "pressing ! or ctrl+enter creates the file"

But otherwise, it's a very lovely extension, thanks! I didn't even realize how much I miss helm :-)

samaaron commented 1 year ago

I'd love to have an option to put the "Open as new file.." option to the bottom, or maybe remove it altogether in favor of something like "pressing ! or ctrl+enter creates the file"

Agreed that (at least for me) creating new files isn't as common as opening existing files. Personally I imagined that "open as new file" is just fine at the top, but perhaps the 2nd item in the list (the best match for file open) should be selected as default. This would mean users would need to hit the up arrow and then return to create a file or just hit return to open a file - rather than the current behaviour which requires users to press down then return to open a file.