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

How to get TAB autocomplete to work? And general confusion over how to use #50

Open
todbot opened this issue Aug 30, 2023 · 3 comments
Open

Comments

@todbot
Copy link

todbot commented Aug 30, 2023

I was very excited to find this extension (I'm an old Emacs guy), I already like it much more than the standard VSCode file browser. But I am unclear how to get autocomplete to work. I also have the vscode-emacs-mcx extension.

The workflow I am used to: Let's say I'm after a file called file2.txt in a directory containing file1.txt, file2.txt and adirectory)

  • Ctrl-x-f to open file browser in current working directory
  • Type a few characters that begins filename ("fi")
  • Press TAB to autocomplete filename/directory as much as possible ("file")
  • Press TAB again to see a list of files that complete ("file1.txt, file2.txt")
  • Type 2 and TAB to complete to file2.txt
  • Press ENTER to open file.

When I try the same action with this extension installed, the TAB toggles between the file select region and two other regions I don't understand. Video demo below.

Screen.Recording.2023-08-30.at.1.32.18.PM.mov

And it doesn't autocomplete the part of the filename that matches (e.g. expand "fi" to "file"). It also does not complete directory names (e.g. typing "adirectory" in the example above yields "no matching results") . Also, I would expect just pressing TAB in a blank file browser would show me all files (e.g. matching all files)

What am I doing wrong?

@aguynamedben
Copy link

aguynamedben commented Nov 21, 2023

I'm also confused

I start here:

image

Then I hit Tab to try to attempt to complete "hornet" and land in apps/hornet/, but instead it puts me in apps/hornet/hornet which is a directory that doesn't even exist.

image

I was trying to get to apps/hornet/. Things seem to work as expected if I hit Enter, but my muscle memory is so hard on Tab for file navigation from Emacs+Helm. It seems like there's a bug, or that I'm missing something with how to set this up. It's soooo close though!

Also, I'm used to hitting Ctrl-l to go "up" a directory, that would be a sweet addition, i.e. if I hit Cmd-l it just does "../" for me.

@wojtyniak
Copy link

@aguynamedben I have the same problem with TAB completion repeating the directory name. Have you perhaps figured it out?

@aguynamedben
Copy link

@wojtyniak No I have not figured it out, but would like to! Along with Ctrl-l for clearing back a directory. Haven't made time to dig into the code here.

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

No branches or pull requests

3 participants