Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature request: open file at position supports negative index

Open
#684 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start by tracing how the edit readme.md:10 argument is parsed and how line and column positions are currently applied. Support negative positions relative to the end of the file, then verify that -1 selects the last line and -5 selects line 16 in a 20-line file.

Written by the indexing model from the issue text.

Description

It would be nice if the line and column position supports the negative numbers and start counting from the end of the file.

Example:

We have a readme.md file filled with 20 lines.

edit readme.md:10 - opens the file at line 10
edit readme.md:-1 - opens the file at the last row
edit readme.md:-5 - opens the file at line 16

Dominant language
Rust
Stars
14.6k
Forks
735
Avg merge
8h 40m
Merged PRs (30d)
4

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.

More from microsoft/edit

All issues in microsoft/edit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.