Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to line in relative to current cursor #211516

Open
j7168908jx opened this issue Apr 27, 2024 · 1 comment
Open

Go to line in relative to current cursor #211516

j7168908jx opened this issue Apr 27, 2024 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality quick-open Quick-open issues (search, commands)

Comments

@j7168908jx
Copy link

Hi, dear developers, I would like to ask for the feature that enables using the go to line functionality in relative to the current cursor position.

Currently, we may use Ctrl + G (in Windows) to open a prompt choosing which line we want to jump to, and I noticed that it is supported even with a negative index (similar to indexing in Python).

Can we add the feature to jump relative to the current cursor? It would be acceptable (at least for me), to type something like :c+10 or :c-30, to trigger the relative mode. Or even in a more complicated case, if we have multiple cursors in use, typing :c+10 refers to the first, :C+10 refers to the last.

IMHO this would be a really helpful tool when I am navigating some long logs output by my program, when debugging where had been wrong, say, I knew I had a vector of length 1234 printed out in verbose debug mode and I tried to jump above 1234 lines like we use 1234k in Vim. (but I don't want Vim keybinds except for this feature).

Thank you for any help and advice!

@andreamah andreamah assigned bpasero and unassigned andreamah Apr 29, 2024
@bpasero bpasero added feature-request Request for new features or functionality quick-open Quick-open issues (search, commands) labels Apr 30, 2024
@bpasero bpasero assigned TylerLeonhardt and unassigned bpasero Apr 30, 2024
@VSCodeTriageBot VSCodeTriageBot added this to the Backlog Candidates milestone Apr 30, 2024
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality quick-open Quick-open issues (search, commands)
Projects
None yet
Development

No branches or pull requests

5 participants