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

How to change paste() to send ctrl+v? #633

Closed
marqqer opened this issue Feb 8, 2017 · 7 comments
Closed

How to change paste() to send ctrl+v? #633

marqqer opened this issue Feb 8, 2017 · 7 comments

Comments

@marqqer
Copy link

marqqer commented Feb 8, 2017

Hi dear hluk:
sorry to bother you again, I found that CopyQ paste selected item to current active window just by sending Shift+Insert,is that right? how can i change it to send ctrl+v? for many Windows applications don't accept Shift+Insert as pasting.
Thanks and best wishes

@hluk
Copy link
Owner

hluk commented Feb 8, 2017

There is undocumented feature which allows to send Ctrl+V instead of the default Shift+Insert.

You have to add following to your copyq.ini (in portable folder config\copyq or %APPDATA%\copyq).

[General]
paste_with_ctrl_v_windows="- IntelliJ IDEA"

The string is regular expression matching window titles of the apps where you want use Ctrl+V for pasting.

@marqqer
Copy link
Author

marqqer commented Feb 8, 2017

thanks
can you give a example to match any window?

@hluk
Copy link
Owner

hluk commented Feb 8, 2017

I think paste_with_ctrl_v_windows=".*" should work.

@marqqer
Copy link
Author

marqqer commented Feb 8, 2017

Thanks a lot , it works, Probably best if we call make it an option can be set.

@whudwl
Copy link

whudwl commented Oct 1, 2021

There is undocumented feature which allows to send Ctrl+V instead of the default Shift+Insert.

You have to add following to your copyq.ini (in portable folder config\copyq or %APPDATA%\copyq).

[General]
paste_with_ctrl_v_windows="- IntelliJ IDEA"

The string is regular expression matching window titles of the apps where you want use Ctrl+V for pasting.

Has the default behaviour changed? It seems to me that now it sends Ctrl+v by default.
And I've noticed another probably related option window_paste_with_ctrl_v_regex= under Options section.

@hluk
Copy link
Owner

hluk commented Oct 1, 2021

Has the default behaviour changed? It seems to me that now it sends Ctrl+v by default.

The app should still send Shift+Insert by default.

And I've noticed another probably related option window_paste_with_ctrl_v_regex= under Options section.

Yes, the option is now under [Options] group in the config file and can be modified with:

copyq config window_paste_with_ctrl_v_regex 'SOME REGEXP'

@whudwl
Copy link

whudwl commented Oct 1, 2021

Has the default behaviour changed? It seems to me that now it sends Ctrl+v by default.

The app should still send Shift+Insert by default.

And I've noticed another probably related option window_paste_with_ctrl_v_regex= under Options section.

Yes, the option is now under [Options] group in the config file and can be modified with:

copyq config window_paste_with_ctrl_v_regex 'SOME REGEXP'

Thank you. Just realized the reason CopyQ didn't work with my Win+Emacs is I ran emacs as admin.

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

No branches or pull requests

3 participants