Skip to content

Override default 'p' actions to always pasted from system clipboard. #19818

Discussion options

You must be logged in to vote

Update: I'm currently have a very hacky way by overiding the default to other keybinds and remap p and P to it. It work as what I expected at version v0.158.2 as the following, but I'm not sure if there's any better ways?

[
  {
    "context": "Editor && vim_mode == normal && !menu",
    "bindings": {
      "space p": "vim::Paste",
      "space P": ["vim::Paste", { "before": true }],
      "p": ["workspace::SendKeystrokes", "\" + space p"],
      "P": ["workspace::SendKeystrokes", "\" + space P"]
    }
  }
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kelvinchin12070811
Comment options

Answer selected by kelvinchin12070811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant