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

add same_line and anchored movements #10576

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 2, 2024

  1. add same_line movement commands (helix-editor#768)

    Commands added:
    * `move_same_line_char_left`
    * `move_same_line_char_right`
    * `extend_same_line_char_left`
    * `extend_same_line_char_right`
    * `append_mode_same_line`
    
    These new commands move cursors, while making them stay in the same
    line. So if a cursor would wrap around into another line, instead it
    won't move and stay at its current position.
    pantos9000 committed May 2, 2024
    Configuration menu
    Copy the full SHA
    9839d17 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2024

  1. add anchored movement commands

    Commands added:
    * `move_anchored_line_up`
    * `move_anchored_line_down`
    * `move_anchored_visual_line_up`
    * `move_anchored_visual_line_down`
    * `extend_anchored_line_up`
    * `extend_anchored_line_down`
    * `extend_anchored_visual_line_up`
    * `extend_anchored_visual_line_down`
    
    These new commands move cursors vertically. A cursor will move depending
    on its position:
    
    * If it is on a newline character of a non-empty line, the cursor will
      stay on newlines (i.e. on a line's last character).
    
    * If it is on a non-newline character of a non-empty line, the cursor
      will try to avoid newline characters. It will move normally, but if
      it would end up on a newline, instead it will be moved one position
      left of it (i.e. the line's second to last character).
    
    * If it is on the newline character of an empty line (that contains
      nothing except the newline character), the cursor will continue to
      move like before: If it stayed on newline before, it will continue to
      do so. Otherwise it will try to avoid them (except on empty lines).
    pantos9000 committed May 4, 2024
    Configuration menu
    Copy the full SHA
    6b45598 View commit details
    Browse the repository at this point in the history