VSCodeVim / VSCodeVim/Vim

Can't open tab with new file using `:new {file}`

Open
#5,808 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
When using :new command the new tab opens an Untitled

To Reproduce
Let's say we are in a folder with two files, selecting one of them just type :new otherfilename

Expected behavior
Open the requested tab

Screenshots(GIF)

2020-12-02 11-29-47_2

Environment:

{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 25,
		"activateCallTime": 1,
		"activateResolvedTime": 2,
		"activationReason": {
			"startup": true,
			"extensionId": {
				"value": "vscodevim.vim",
				"_lower": "vscodevim.vim"
			},
			"activationEvent": "*"
		}
	},
	"runtimeErrors": []
}
  • Extension Version: 1.17.2
  • OS Version: Windows_NT x64 10.0.19042
  • VSCode version: 1.51.1

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

Reproduce the issue in VS Code by opening a folder with two files and running :new otherfilename from the extension. Trace the handling of the :new command and verify that the requested file opens in the new tab instead of an Untitled tab.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.