Benjmhart / clipqueue

a terminal clipboard manager written in haskell + Javascript
0 stars 0 forks source link

eliminate keylistener? #23

Open Benjmhart opened 5 years ago

Benjmhart commented 5 years ago

Currently we employ a keylistener for the following reasons:

  1. we need to listen for cut & paste events, and while we can Poll, there is no way to distinguish two cut actions of the same content

However, there are significant downsides:

  1. keylistners make users nervous,
  2. we need to open up ports
  3. we end up managing multiple processes
  4. we depend on iohook, which is not portable

ideally we need to find some kind of callback action we can trigger on a cut or paste - perhaps through xclip?