简体   繁体   中英

Need VSCode sendSequence keybindings for previous command, next command, move to start of line, move to end of line terminal commands

My current custom keybindings

    {
        "key": "alt+b",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {
            "text": "\u0017"
        }
    },
    {
        "key": "alt+j",
        "command": "workbench.action.terminal.sendSequence",
        "args": { "text": "\u001bb" }
      },
      {
        "key": "alt+l",
        "command": "workbench.action.terminal.sendSequence",
        "args": { "text": "\u001bf" }
      },
    {
        "key": "alt+n",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {
            "text": "\u001bd"
        }

These work well with 1.45 update (integrated terminal update)

Reference - but I need more Information

I want to use 'ijkl' keys like 'wasd' gaming standard like my custom project intuiter

So My Idea is

  • Can we send sequence to terminal to show Previous Command/Next command (like when we click Up/Down Arrow)

  • moveToLineStart/moveToLineEnd sequence is removed with this update(sorry I can't find or make sequence) can we get this effect by sendSequence ?

My current custom keybindings

    {
        "key": "alt+b",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {
            "text": "\u0017"
        }
    },
    {
        "key": "alt+j",
        "command": "workbench.action.terminal.sendSequence",
        "args": { "text": "\u001bb" }
      },
      {
        "key": "alt+l",
        "command": "workbench.action.terminal.sendSequence",
        "args": { "text": "\u001bf" }
      },
    {
        "key": "alt+n",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {
            "text": "\u001bd"
        }

These work well with 1.45 update (integrated terminal update)

Reference - but I need more Information

I want to use 'ijkl' keys like 'wasd' gaming standard like my custom project intuiter

So My Idea is

  • Can we send sequence to terminal to show Previous Command/Next command (like when we click Up/Down Arrow)

  • moveToLineStart/moveToLineEnd sequence is removed with this update(sorry I can't find or make sequence) can we get this effect by sendSequence ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM