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: copy/paste to system clipboard #559

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

stevalkr
Copy link
Contributor

@github-actions github-actions bot requested a review from stevearc January 14, 2025 18:02
@stevalkr stevalkr marked this pull request as draft January 15, 2025 09:30
@stevalkr
Copy link
Contributor Author

Hi @stevearc, I’m having a bit of trouble with the sshFs.load function. It works great for SSH connections that don’t require passwords, but for those that do, the float window can’t open because vim.wait is blocking it. Is there a way to let this function wait for the connection without blocking vim.api.nvim_open_win?

pcall(vim.api.nvim_chan_send, self.term_id, "(secret)\r")
else
self:open_terminal()
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modification allows inputting passwords during vim.wait. However, without implementing additional logic to detect incorrect passwords (Permission denied), the behavior will be weird if the password is incorrect.

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

Successfully merging this pull request may close these issues.

1 participant