Skip to content

How to open a paste window and set the content manually? #323

Answered by mikesmithgh
Zwlin98 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Zwlin98,

Do you only want to have visual yanks open the paste window and disable it in normal mode?

For example,

  • yy does nothing
  • Vy yanks the line into the paste window

That is not possible at the moment, but I think would be pretty straight forward to implement. I could create an option to support this.

Another alternative is if you choose another register, for example a.

require('kitty-scrollback').setup({
  {
    paste_window = {
      yank_register = 'a',
      yank_register_enabled = true,
    },
  },
})

This would switch from using the unnamed register " to a for yanks causing the paste window to open.

So, yy wouldn't open the paste window. But, "ayy or V"ay would.

There is an…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Zwlin98
Comment options

@mikesmithgh
Comment options

@Zwlin98
Comment options

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