Hammerspoon / Hammerspoon/Spoons

ClipboardTool uses deprecated hs.mouse.getAbsolutePosition; right-click menu has errors

Open
#315 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
567
Forks
171
PR merge metrics
No merged PRs in 30d

Description

I noticed a few minor ClipboardTool bugs when right-clicking an item in the clipboard list. I've fixed these so I'll fork and raise a PR.

1. The console to show a deprecation warning for using `hs.mouse.getAbsolutePosition` instead of `hs.mouse.absolutePosition`.

2. Selecting one of the special paste actions throws an error about a type mismatch. `"entry"` should be `"entry.content"`.
```
ERROR: LuaSkin: hs.menubar:setClickCallback() callback error: ...hammerspoon/Spoons/ClipboardTool.spoon/init.lua:241: attempt to concatenate a table value (local 'entry')
```

3. Using the special paste actions writes the output into ClipboardTool's filter box rather than prevFocusedWindow.

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.