VSCodeVim / VSCodeVim/Vim

File completion for `:vnew` and `:tabnew` doesn't seem to work

Open
#5,105 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
The tabsuggestion for the :vnew and :tabnew commands produces incomplete and incorrect results

To Reproduce
Steps to reproduce the behavior:

  1. Open any project
  2. Type <<escape>> :tabnew <<tab>>
  3. Observe that many (but not all?) files in the current directory are not suggested. Observe that files that are not in the current directory but subfolders get suggested (and opening them fails)

Expected behavior

All files and folders in the current directory get suggested. Files and folders that are not in the current directory do not get suggested.

Screenshots
If applicable, add screenshots to help explain your problem.
If remapping-related, please attach log output: https://github.com/VSCodeVim/Vim#debugging-remappings.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.16.0

  • VSCode version: 1.47.3

  • OS: Fedora Linux 31 amd64

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing file completion with :vnew and :tabnew in a project, checking both current-directory files and nested paths. Trace the TypeScript completion handling for these commands; done means all files and folders in the current directory are suggested, while nested paths are excluded and suggested entries open successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.