Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: apply paste_command and execute_command to visual selection #77

Closed
mikesmithgh opened this issue Nov 27, 2023 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@mikesmithgh
Copy link
Owner

Apply paste_command and execute_command to visual selection.

  vim.keymap.set({ 'n', 'i' }, '<Plug>(KsbExecuteCmd)', ksb_api.execute_command, { buffer = bufid })
  vim.keymap.set({ 'n', 'i' }, '<Plug>(KsbPasteCmd)', ksb_api.paste_command, { buffer = bufid })

e.g., user visually selects content in scrollback buffer and presses <S-CR> should paste the visual selection to Kitty.

This removes an extra step of yanking to the paste window and then pressing <S-CR>

@mikesmithgh mikesmithgh added the enhancement New feature or request label Dec 1, 2023
@tummetott
Copy link

Yes I had exactly the same idea while configuring this plugin

@mikesmithgh
Copy link
Owner Author

Hey @tummetott, I just added this! Let me know if you have any issues.

@mikesmithgh
Copy link
Owner Author

closed by #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants