`:e[dit]` with no parameters should reload current file, not open new file
Open
Nobody has claimed this yet.
area/commandline
kind/feature
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
The actual Vim behavior for the command :e (with no parameters) is to reload the current file in place. If the current buffer has been edited, this fails unless forced (as :e!).
2. Editing a file edit-a-file
:e :edit reload
:e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the
current file, when it has been changed outside of Vim.
This fails when changes have been made to the current
buffer and 'autowriteall' isn't set or the file can't
be written.
Also see ++opt and +cmd.
{Vi: no ++opt}
This extension's current behavior appears to be to display a file dialog to open a file.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TypeScript command handling for :e and reproduce the no-parameter behavior described in the issue. Compare it with Vim's documented reload semantics; done means :e reloads the current file and does not open a file dialog.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100