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

tab completion on vim command line should work #745

Closed
lzybkr opened this issue Sep 9, 2016 · 10 comments · Fixed by #3639
Closed

tab completion on vim command line should work #745

lzybkr opened this issue Sep 9, 2016 · 10 comments · Fixed by #3639

Comments

@lzybkr
Copy link

lzybkr commented Sep 9, 2016

What did you do?

ESC : e c:

What did you expect to happen?

tab completion of files in c:\

What happened instead?

nothing

Technical details:

  • VSCode Version: 1.5.1
  • VsCodeVim Version: 0.1.10
  • OS: Win10 Anniversary Edition
@johnfn
Copy link
Member

johnfn commented Sep 9, 2016

Great suggestion, @lzybkr!

@rebornix any idea if this is even possible? Can we manipulate the text in the popup?

If not, is there another type of display that we could manipulate? We could do the thing I do with search, but that is somewhat subpar.

@rebornix
Copy link
Member

@johnfn I'm implementing :reg {arg} command and has similar feature request and I'm still playing with that part. If there is not such API, then it's a real valid feature request for VS Code. Will drop more info later.

@rebornix
Copy link
Member

Related to microsoft/vscode#426

@xconverge
Copy link
Member

This should be doable now that we moved the commandline to the status bar

@lipp
Copy link

lipp commented Oct 24, 2018

Any news on this? IMHO - as a vim user - navigating files with :e + autocomplete / tab and switch with :b + autocomplete / tab is super important. Would be very cool and I'd love to switch to vscode :)

@dgaleazzo
Copy link

@lipp this is the only reason I'm still using vim instead to use vscode.

@japhillips87
Copy link

this will probably be a deal breaker for me too.

@keith-ferney
Copy link
Contributor

I have started on a fix for this, it is not complete yet but here is the repo link
https://github.com/keith-ferney/Vim

keith-guru added a commit to keith-ferney/Vim that referenced this issue Mar 8, 2019
jpoon pushed a commit that referenced this issue May 10, 2019
* added tab support  for commands in command mode

* Merge branch 'master' of https://github.com/VSCodeVim/Vim

* missed a file in merge

* add cursor to search mode and update tab completion

* file completion on tab support #745

* file completion

* fix missed merge conflicts

* add path symbols to tab autocomplete '~/', './', '../', '/'

* replace var with let/const

* tab completion optimizations and refactors

* fix esc in search mode conflict

* remove tabCompletion.ts because it had the wrong name format

* add command line tab completion tests

* tab completion test add space after comma's

* tab completion test equal instead of not equal

* remove console log

* added cursor location test and moved GetTrimmed from statusBar to actions CommandNavigateInCommandlineOrSearchMode

* moved absolute path calculation to path util and created more verbose tests for command line tab completion

* remove console.log from cursorLoaction.test.ts

* missed a merge conflict

* rename AbsolutePathFromRelativePath to GetAbsolutePath, update the comment to match and use untildify instead of os.homedir()

* revert changes to package-lock.json
@osdf
Copy link

osdf commented Jul 15, 2019

Hallo,
on a Mac, typing ':e ~/' and then hitting tab does not work for folders -- these are not completed. Tab completion seems to work for files. Typing in a folder name, e.g. '~/tmp/', tab completion works for the files in this folder. This is also true for e.g. ':b'. Is there a solution/workaround here?

@weizheheng
Copy link

Hello,
I am using VSCodeVim on a ubuntu machine. I have one issue when i tried to use the tab completion for files in the working folder. It seems that the "/" is not added after my current directory when I try to search for files in a folder. For example, I am currently in "workspace/jobs-listing", then when I tried to search for files in my templates folder, I do ":e templates/" in vim command line. Unfortunately, I received the error as shown in the picture.
vscodevim-error

I think this is fixable but I do not know how. Hope to hear from you guys here. Thanks and have a great day!

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

Successfully merging a pull request may close this issue.