Conversation
Populate vim buffer with contents of clipboard. Make sure to press Ctrl+A before running your vimclip keybinding
|
This is a very nice idea, thanks for that. I'm a bit worried that it might be surprising to find whatever text you last selected prefilled in the buffer. Maybe we can make it more explicit by providing an additional parameter to enter this "mode"? This way we could bind it to a different key. What do you think? Side note: I wonder if it wouldn't be better to use the clipboard section (-b) for populating the temp file as well. IMO this would be more consistent. |
|
Sure, I can add arguments to vimclip. Might as well do I like I've got a busy weekend ahead of me so give me about a week to make these changes |
|
I thought of something else and took the occasion to restructure the script a bit. The command to fill the clipboard can now be set via an environment variable I imagine we could use a similar approach to pre-fill the temp file. For example check if Let me know if you think this is a good idea, then I'll merge so you can adapt your PR. |
|
Looks good to me |
Populate vim buffer with contents of clipboard. Make sure to press Ctrl+A before running your vimclip keybinding