lapce / lapce/lapce

Add negative lines for Goto Line (Ctrl + g)

Open
#2,232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature
Dominant language
Rust
Stars
38.9k
Forks
1.3k
Avg merge
19m
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.

When open a file, i really want to reach end of it (-1 line, or -10 etc)

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Nothing, have go to line -1 is really convenient to me and i think for others

Describe the solution you'd like

Have negative Go to line

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 at the Go to Line command and its Ctrl+g input flow. Trace how line numbers are parsed and applied, then verify that negative values such as -1 and -10 select lines relative to the end of the file.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
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.