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

Up and down buttons should not move when reaching the first or last line #1187

Open
herrbrixter opened this issue Oct 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@herrbrixter
Copy link

herrbrixter commented Oct 27, 2024

Is your feature request related to a problem? Please describe.
Up and down should keep the cursor's columnar position but this doesn't happen on the first and last lines.

  1. Pressing up when the cursor is on the first line would place the cursor at the start of the first line.
  2. Pressing down when the cursor is on the last line would place the cursor at the end of the last line.

If there is only one line, pressing either up or down would misplace the cursor. These buttons shouldn't do anything when there are no other lines.

Describe the solution you'd like

  1. Pressing up when the cursor is on the first line would not move the cursor.
  2. Pressing down when the cursor is on the last line would not move the cursor.

Use case
For text formatting, if you only want to edit a certain column, the current behavior requires you to go back to the middle position because the Up and Down buttons brought the cursor to the start or end of the line.

Describe alternatives you've considered (if any)
Manually moving the cursor back to the original middle position.

@herrbrixter herrbrixter added the enhancement New feature or request label Oct 27, 2024
@herrbrixter
Copy link
Author

Related to #1076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant