jmfirth / vsc-space-block-jumper

Space Block Jumper helps you navigate through space-delimited blocks.
MIT License
13 stars 3 forks source link

Deprecate extension #8

Open obsgolem opened 3 years ago

obsgolem commented 3 years ago

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

it-gro commented 3 years ago

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?

obsgolem commented 3 years ago
{
    "key": "shift+alt+up",
    "command": "cursorMove",
    "when": "editorTextFocus",
    "args": {
        "to": "prevBlankLine",
        "by": "wrappedLine",
        "select": true
    }
}
mstenemo commented 3 years ago

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: https://github.com/microsoft/vscode/issues/116418#issue-806129680

JergenRoss commented 1 year ago
{
    "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?

mmcintyre123 commented 11 months ago

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} },