FEATURE: Add `view` command for read-only modes
Open
Nobody has claimed this yet.
kind/feature
upstream/vscode
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
What happened:
Wanted to open a file in read-only mode for referencing it without making any accidental changes. Did not work.
did you expect to happen**:
Open file in read-only mode.
How to reproduce it (as minimally and precisely as possible):
Try :view file.txt
Environment:
Win 64
- Extension (VsCodeVim) version: 0.14.0
- VSCode version: 1.24.1
- OS version: Win 10
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 tracing how the VSCodeVim command entry point handles :view file.txt and how read-only editor modes are represented. Confirm the expected behavior on the reported Windows and VS Code versions, then verify that opening a file with :view prevents accidental edits without changing normal file opening.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100