From 67b64c67eec48ed80295080890e474d1ab67cf7d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 12 Feb 2019 11:14:05 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20copy=20the=20actual=20emoji=20inste?= =?UTF-8?q?ad=20of=20its=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 9fed18f..176772c 100644 --- a/__init__.py +++ b/__init__.py @@ -56,7 +56,7 @@ def handleQuery(query): matches = sorted(matches, key=lambda data: data["matchCount"], reverse=True) if query.isValid: - return [Item(id=match["name"], completion=match["name"], icon=match["emoji"], text=match["emoji"] + " " + match["code"], subtext=match["description"], actions=[ClipAction("Copy to clipboard", match["code"])]) for match in matches] + return [Item(id=match["name"], completion=match["name"], icon=match["emoji"], text=match["emoji"] + " " + match["code"], subtext=match["description"], actions=[ClipAction("Copy to clipboard", match["emoji"])]) for match in matches] else: return []