jmfirth/vsc-space-block-jumper

Deprecate extension

obsgolem opened this issue · 5 comments

The functionality given by this extension has been ported to vscode core, see microsoft/vscode#114166. In doing so, #3 is fixed. I recommend this extension be deprecated.

Thx for the port!

We have now:

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

But what about:

  {
    "key": "ctrl+shift+down",
    "command": "spaceBlockJumper.selectDown",
    "when": "editorTextFocus"
  },

So how do we SELECT?

{
    "key": "shift+alt+up",
    "command": "cursorMove",
    "when": "editorTextFocus",
    "args": {
        "to": "prevBlankLine",
        "by": "wrappedLine",
        "select": true
    }
}

Great that this functionality has been implemented in vscode core!
Since the rich keyboard shortcuts editor cannot currently edit the args or when section of a keybinding (tracked in #84072), it is not very discoverable, and some related basic commands are also missing that would be great to implement:

  1. Move the cursor to the beginning of next/previous paragraph (move the cursor to the beginning of the next line independent of word wrap),
  2. if shift is also held down (eg using ctrl+shift+up/down) it should select text (eg how Word and Gmail does to select text between paragraphs).

The difference between using shift+home is that hitting ctrl+shift+up multiple times would add another line each time, while +home does not expanding selection.

For reference: microsoft/vscode#116418 (comment)

{
    "key": "shift+alt+up",
    "command": "cursorMove",
    "when": "editorTextFocus",
    "args": {
        "to": "prevBlankLine",
        "by": "wrappedLine",
        "select": true
    }
}

How do you add multiple cursor to similar selected. I know shift + alt + i as add cursor to end lines when selected lines. but I'm looking for make ctrl + shift + alt + down to quick add cursor until nextBlankLine?

This also doesn't address the issue of jumping with multiple cursors. Compare the functionality in Sublime Text, which works with multiple cursors:

    { "keys": ["alt+["], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false} },