Comments (8)
However, changing shortcut to Ctrl+Shift+V will break paste actions for most applications.
Yeah, I thought it might be the case (I only tested it in Firefox and kitty terminal emulator).
Alternate solution would be to check the current window title before triggering the paste:
global.paste = function() {
const window = currentWindowTitle();
if (window == 'Alacritty') {
// Shift+Ctrl+V
sendShortcut('42:1', '29:1', '47:1', '47:0', '29:0', '42:0');
} else {
// Shift+Insert
sendShortcut('42:1', '110:1', '110:0', '42:0');
}
}
from copyq.
For now I found a workaround - mapping Shft+Insert chord to a paste action - it works for gnome terminal at least.
from copyq.
- { key: Insert, mods: Shift, action: Paste }
For alacritty this line should be set instead of PasteSelection
action
from copyq.
Created another issue in https://github.com/hluk/copyq-commands; created MR with edited README for wayland support script.
from copyq.
I picked Shift+Insert because it actually is the default shortcut for pasting (clipboard or selection) in most terminal emulators and applications.
You can try modifying the paste() function to send Ctrl+Shift+V for pasting:
global.paste = function() {
sendShortcut('42:1', '29:1', '47:1', '47:0', '29:0', '42:0')
}
from copyq.
would this eventually help?: #633
Thanks, I'll give it a try.
from copyq.
I picked Shift+Insert because it actually is the default shortcut for pasting (clipboard or selection) in most terminal emulators and applications.
You can try modifying the paste() function to send Ctrl+Shift+V for pasting:
global.paste = function() { sendShortcut('42:1', '29:1', '47:1', '47:0', '29:0', '42:0') }
Thanks! However, changing shortcut to Ctrl+Shift+V will break paste actions for most applications.
from copyq.
Hi! My mr to docs for scripts was merged, so I suppose this may be closed. I tested sollutions from @gowallasnewpony and @hluk - they both works fine as a workaround too, thanks a lot.
from copyq.
Related Issues (20)
- Multiple texts cannot be merged HOT 2
- CopyQ on Pop!_OS 2024 - Wayland
- Desktop todo stickies base on clipboard HOT 1
- copy with mouse selection issue in windows
- Custom Notification HOT 1
- Display html without storing it HOT 2
- App crashes everytime at startup on MacOS even after doing steps in README HOT 2
- Where is the backup settings? HOT 3
- Wayland dependencies on Xorg-only HOT 1
- Compile CopyQ for Windows ARM64 HOT 1
- hide clipboard content HOT 1
- Create new item .md and choose folder HOT 1
- When using synchronization a recipient system does not receive &clipboard content into clipboard HOT 6
- CopyQ menu() blink and crashing #macOS
- CopyQ doesn't work with firefox HOT 4
- Flickering, shaking text, images HOT 4
- impossible to disable notification HOT 1
- Resize image in clipboard and paste it HOT 4
- Searching the history freezes Copyq on debian linux (on Gnome Wayland)
- Ubuntu 24.04 problems HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copyq.