|
From: | Max Nikulin |
Subject: | Re: Getting X selection reliably (Re: idea for capture anywhere in x) |
Date: | Sat, 29 Oct 2022 10:30:52 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 |
On 29/10/2022 09:59, Ihor Radchenko wrote:
Max Nikulin writes:%(org-get-x-clipboard 'PRIMARY) " :immediate-finish t) However to be at the safe side I would check if (org-get-x-clipboard 'PRIMARY) value is not nil at first.My approach to this is simply showing a popup with captured heading after capture. If anything is wrong, I can quickly notice. Not sure if it is suitable for Samuel though.
I started with a small wrapper that checks if Emacs server is running and creates a new frame if it does not exist yet. So I avoided a pitfall with empty string instead of selection. I intentionally do not use :immediate-finish to inspect capture and to add some comment.
Samuel wish to have minimal distraction: no sound, no popup window, Emacs window is not raised in front of current application, visual notification should disappear after some pause.
That is why I believe that additional checks are required in such silent workflow to avoid missed data in notes.
[Prev in Thread] | Current Thread | [Next in Thread] |