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

Does not work with TextEditorAnywhere #24

Open
Salted-Bread opened this issue Jun 28, 2023 · 1 comment
Open

Does not work with TextEditorAnywhere #24

Salted-Bread opened this issue Jun 28, 2023 · 1 comment

Comments

@Salted-Bread
Copy link

Using TextEditorAnywhere causes issues when the AHK script is running.

TextEditorAnywhere allows people to use whatever editor (Vim in this case) pretty much anywhere by opening a temporary file in the editor and then pasting the text from the file into the clipboard. Running this script causes it to instead copy and then paste whatever was copied before.

Say you copied the text "Bread" like you would with any text, it will now be the latest item in the Clipboard history and pasting just puts "Bread" into the text box. Now you use TextEditorAnywhere to write some text like "Salad" and once you exit it to have the text "Salad" pasted into the text box it will instead paste "Bread" again and checking the history shows that the "Salad" text is second in the list with "Bread" being pushed back to the first spot.

I've tried to somehow work around this issue, but have yet to find anything that works.

@hi5
Copy link
Owner

hi5 commented Jun 28, 2023

I'm not familiar with TextEditorAnywhere (TEA), but I suspect it is rather vim itself and not the "wrapper" (TEA) that launches it. Vim has separate keybindings for copy/paste so I'm not that surprised that it won't paste as CL3 uses ctrl+v to paste and ctrl+c to copy (these are hard-coded in CL3) and vim uses non-standard keybindings for those actions.[1]

The paste is sent here https://github.com/hi5/CL3/blob/master/cl3.ahk#L710 so you may wish try and change it to something that works for vim.

It is probably not something I can fix.

[1] https://phoenixnap.com/kb/cut-copy-paste-vim

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

No branches or pull requests

2 participants