-
Notifications
You must be signed in to change notification settings - Fork 141
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
base: master
Are you sure you want to change the base?
Conversation
Hi @stevearc, I’m having a bit of trouble with the |
pcall(vim.api.nvim_chan_send, self.term_id, "(secret)\r") | ||
else | ||
self:open_terminal() | ||
end |
There was a problem hiding this comment.
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.
This PR looks like it's doing two things: yanking/pasting using osascript, and changing the buffer parsing logic to allow for As an alternative approach to support pasting, what if we found the parent directory of the pasted file, performed an async read of that directory, and then properly inserted the correct line into the current buffer? It's more logic on paste, but it leaves the rest of the internals the same. |
This PR implements basic features of