-
Notifications
You must be signed in to change notification settings - Fork 43
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
Make clipboard buffer preview configurable #266
Comments
Hi @AloisKraus! Now you can disable clipboard preview (copied text hovers over the mouse cursor). See #234 and description above for details. Subsequently, the settings will be through a user-friendly UI, as in a typical GUI app. |
@o-sdn-o: I have tried it. Works perfectly.
Great work again. Are hotkeys to copy/paste like the standard windows keys Ctrl+C for copy and Ctrl+V for paste already there? I have looked a bit but not found anything in the code so far. |
By intent, the clipboard is cleared by pressing the Left+Right mouse buttons. The preview was made to improve security when working with the clipboard, since any program in the terminal can set arbitrary (unsafe) contents of the clipboard. |
@o-sdn-o: Preview is nice in theory, but in practice I type in the terminal and some text is replaced by the hovered mouse with something copied. Security is also an issue if you replace text while the mouse is hovering and you display wrong output. If the data values are critical you might run into much bigger issues by e.g. formatting the wrong hard drive just because the clipboard security feature was overlaying something which looked like the partition to drive mapping, just the wrong one. |
You are right, even for the case of enabled preview, it might also make sense to add auto-hide by mouse inactivity timeout and also add highlighting to make it look like a tooltip. |
By intent, the clipboard is cleared by pressing the Left+Right mouse buttons. The preview was made to improve security when working with the clipboard, since any program in the terminal can set arbitrary (unsafe) contents of the clipboard.
We need to add a config option to disable clipboard preview.
To disable the clipboard buffer preview just make the following config in ~/.config/vtm/settings.xml:
The text was updated successfully, but these errors were encountered: