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

Use beginning-of-visual-line' in move-to-mode-line-start' #65

Merged
merged 1 commit into from Aug 3, 2020

Commits on Aug 3, 2020

  1. Optionally move visually in `move-to-mode-line-start'

    In some environments users expect crux's functions to respect visual lines. This
    can now be configured through the `crux-should-move-visually' configurable
    variable. If set to true, then `move-to-mode-line-start' will use take into
    account visual lines. Otherwise (the default behavior), it will work as usual by
    moving to the logical beginning of the line.
    
    For functions like `crux-move-beginning-of-line', specifically, the user will
    face the following situation when setting `crux-should-move-visually; to true:
    
    1. If the user runs this function in the middle of a visual line, it will go to
       the beginning of said visual line.
    2. If the user runs this function again, then it will go to the beginning of the
       real line.
    3. If the user runs this function again, then it will go to the first non-space
       character of the line.
    
    Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
    mssola committed Aug 3, 2020
    Copy the full SHA
    e391262 View commit details
    Browse the repository at this point in the history