Skip to content

Conversation

@obsgolem
Copy link
Contributor

@obsgolem obsgolem commented Feb 2, 2021

This PR fixes #114166

This option will move the cursor to the next/previous line which consists only of whitespace, skipping over folded or otherwise hidden lines. Unit tests are also added.

I also added core commands for each of these, defaulting to unbound, so that I could use them in the actual editor. Currently all the behavior present in these changes reflects the behavior of the plugin mentioned in the issue, with the exception of skipping over folds.

This option will move the cursor to the next/previous line which consists only of whitespace, skipping over folded or otherwise hidden lines.

Fixes microsoft#114166

Also added core commands for each of these, defaulting to unbound.
@ghost
Copy link

ghost commented Feb 2, 2021

CLA assistant check
All CLA requirements met.

@alexdima
Copy link
Member

alexdima commented Feb 2, 2021

Thank you! I have removed the command ids. The commands can still receive keybindings using e.g.

{
    "key": "ctrl+down",
    "command": "cursorMove",
    "when": "editorTextFocus", 
    "args": {
        "to": "nextBlankLine",
        "by": "wrappedLine"
    }
}

@alexdima alexdima added this to the February 2021 milestone Feb 2, 2021
@alexdima alexdima merged commit 6662709 into microsoft:master Feb 2, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move cursor by paragraphs

2 participants