hluk / hluk/CopyQ

Duplicate commands triggered from single Clipboard copy

Open
#1,146 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
12.3k
Forks
593
Avg merge
2d 8h
Merged PRs (30d)
9

Description

I really struggled writing a command to send a copied link from Chromium to Firefox, because the links were almost always opened twice.

**To Reproduce**

* Create an "Automatic" command
* Matching Content "^http"
* Command: `copyq: open(str(data('text/plain'))`

**Expected behavior**
One browser tab is opened when some http url is copied.
Instead I get 2 browser tabs!

**Version, OS and Environment**
- Application Version v3.8.0
- OS Linux Mint 19
- Desktop environment: Cinnamon

**Additional context**
The following "Command" script avoids and illustrates the issue:
```
copyq:
var incoming = str(data('text/plain'));
var prev = str(read(0));
if (incoming == prev)
popup("REPEATED!", incoming+'\n==\n'+prev);
else
open(incoming);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.