-
Notifications
You must be signed in to change notification settings - Fork 10
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
unexpected behavior of ^V
key combo
#21
Comments
No, it does nothing with WT, not even work in PowerShell/ConsoleHost. Recorded in a brand new Windows 10 VM with a fresh environment, no custom nanorc, no custom PowerShell settings: Notice the difference with lhmouse's nano-win. |
Could you please test pate with another key combo such as ^A or ^B, ^D in .nanorc? Just to see whether the problem is the ^V capture or the underlying function. I am working on integrating the clipboard with the windows clipboard which would eliminate this problem completely. |
I just tested with |
cut
/copy
/paste
bindings^V
key combo
Thanks. The problem is then the capture of ^V from windows. The same happens with WT. When you press ^V You are actually pasting whatever is in the windows clipboard. Depending on the encoding nano understands it or not. Windows 10 is not fully UTF-8 friendly, so the wincon, the main reason Microsoft deprecated it in favor of Windows Terminal. The fix with the Windows clipboard will solve that while allowing easy copy-n-paste to/from nano without disabling the mouse in nano. |
In the meantime, you can always disconnect the Ctrl-V combo from Windows Terminal, something required for other editors such as vim. Just read this: https://stackoverflow.com/a/65109836/7691477 Other terminal apps probably don't have the flexibility of overriding the windows key shortcuts. This is why I am implementing the windows clipboard within nano. |
Not my case, I use Shift + Insert most of the time, I don't have ^V combo for my Windows Terminal. |
cut/copy and paste will output garbled or invisible text.
example bindings
Open a file,
nanorc
for example, usecopy
/cut
binding to copy/cut a line of text, and try to paste withpaste
binding to a new line.The same configuration works with nano-win.
The text was updated successfully, but these errors were encountered: