Skip to content

Go To Line Behavior - Jump to line only on enter.  #228844

@josephjaspers

Description

@josephjaspers

Current Behavior:
Current go to line behavior jumps the courser to the inputted line on every insert.
Feature Request:
Only jump the courser after the user has hit "enter"

Rationale:
It is visually unpleasant and difficult to track when jumping to a line.
IE If I'm on line 300, and I want to go to 305. Ctrl-G (goto line) will jump my page all the way to line '3', then to '30', then to '305'. Then I need to readjust and refocus my eyes to find the courser as my original positioning on my page is completely lost.

Other standards to compare to:
Big VisualStudio. Dialogue requesting goto-line only jumps after pressing enter.
Vim: ':' and goto only jumps to line after pressing enter.
Vim (VsCode plugin) follows the same implementation of Vim.

Update:
Willing to make this PR myself if given some pointers to the relevant files/classes

Metadata

Metadata

Assignees

Labels

editor-coreEditor basic functionalityfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions