From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qGgAJr10xWXmYgEAe85BDQ:P1 (envelope-from ) for ; Fri, 09 Feb 2024 01:41:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qGgAJr10xWXmYgEAe85BDQ (envelope-from ) for ; Fri, 09 Feb 2024 01:41:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=G9poSPqr; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707439293; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SC5aUXQ1DVy25EN1gQjjZ6bUqLNHTTMEBsc+DyLAl6I=; b=jrnycDJCEazWyigwfqRKg7JQmK18LUlrP4NcGKGl39vHeJ8lBYkIrJwlPMtma5rqRCwOD+ kA3Lsz8u3Sx4evJMgHBgl4cHGL/OGjg3TOvMGwlmE+p2SEJd7lMJdRZuT/11Y6RcZ/wunQ D+CRm35qxATUOqKMzAyoX2quqel5aF4FWRKeJykj0UaCfY1i/qFYGDdjsGM2bzGOaM6ScM 2ys3FyieS5Y0uQ9vaz8wk1NJCpgnS2eDDO4uEHL/dbJBcUziK6YQQC59tLjma8lieCFGr+ hc9FVCj6EsNiLpdlNGEMJWq58JGc0iBIYU3UKGuE8b0FMvk0jcs2RGtSorX22g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=G9poSPqr; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707439293; a=rsa-sha256; cv=none; b=uz3cRulHih/KH7cOygQIR0wJCxgbbkOELEfjtbTNXTKGiorvt52ZMzTBI6KKNP/nuvswv3 aRnG+hDOpeuz2Ir8gLSCYF558gyAOqP//IHGzysYQ1ZVlK0I3IZmGXrSwMPBSgDzhWyVRw CSMgm2Wt4v25ZU+EtgmjyG8Gio/xmgzSU9nD5W1FEni4fzKOKbRJB10TXJa0XIPBVNyjpw 1ZCa9JURa6IvlZE38IH1DQn8mM+XS9E2Tk6aLyoaRQxkxRDsW1YWrTGL867Rtussfqj8q9 lg1BB8/Xam9a5ffZ4deKQQ6Q5kfC0IAjWHZgclqwKAIF0WG0VA8z78q2/2Jx3g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 83092727EE for ; Fri, 9 Feb 2024 01:41:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYEwi-000790-Fz; Thu, 08 Feb 2024 19:40:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYEwZ-00078e-7O for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 19:40:39 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYEwW-0006Dh-Ke for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 19:40:38 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 36AAF240101 for ; Fri, 9 Feb 2024 01:40:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707439234; bh=SC5aUXQ1DVy25EN1gQjjZ6bUqLNHTTMEBsc+DyLAl6I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=G9poSPqrTM5EKGBcyT4C1M8OfSoijB6/j7QhbWmLs0GrC4iEPQvRfSTzDjACX4RoC lunVufkRzAdyCGZKrOqqIZWMyGCIeTbq/Ol7PllVhIFkoSd5+1g2t8msti3ZLYsnEu 7WM+jfm55kyR6DLrAtVJmZB1JtQ6B73slN5coQc6oYb+QyoMNA4VoBJrhhQqMmN0/4 h/WvtH4/PAG+SiEashmULUdihh1401lLffBFv8Vf5HDzTSOqf06ozd/dEBR7b/NOJS NZWQXWQBN5PeTOvkHP/xPtulMc2qdo4w2CacxDmrzOqkmPmf4kRfkUHx8+wZLoaPBD cd2EXDkCWl8qg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWFPs5lfsz6txW; Fri, 9 Feb 2024 01:40:33 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: Link type for pdf-tools annotations In-Reply-To: <874jeiv8r7.fsf@localhost> (Ihor Radchenko's message of "Thu, 08 Feb 2024 23:25:32 +0000") References: <87h6iitxi9.fsf@posteo.net> <874jeiv8r7.fsf@localhost> Date: Fri, 09 Feb 2024 00:40:31 +0000 Message-ID: <87o7cqsc5c.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.39 X-Migadu-Queue-Id: 83092727EE X-Spam-Score: -7.39 X-Migadu-Scanner: mx11.migadu.com X-TUID: BX8JY3BsA+DU Ihor Radchenko writes: > Juan Manuel Mac=C3=ADas writes: > >> Many times I need to "save" an annotation point in the pdf-tools >> annotations buffer. So I defined a new link type and the function to >> store it. The link is stored with the structure: >> >> [[pdf-annot:/path/to/file.pdf::annotation-date][file-name.pdf (annot. on= p. page-number)]] >> >> The link opens the PDF and jumps to the specific annotation. > > You may also utilize `org-create-file-search-functions' and > `org-execute-file-search-functions' to make an ordinary file: links > works for the same purpose. Thanks for the pointers. Note that in this use case I don't need to search in the PDF file itself but in the pdf-annot-list-mode buffer that is created via pdf-annot-list-annotations. This buffer is synchronized with the PDF to which it is linked. What this link type does is visit the pdf file (with pdf-tools), create the list of annotations and jump to the specific annotation, by date. pdf-annot-list-display-annotation-from-id highlights the specific list annotation in the linked PDF (if necessary, moves to the corresponding page), and opens the content of the annotation in another window (interactively the function is executed by pressing SPC on the annotation list at point). Storing the annotation date seemed like the safest option to me, since the annotation id can change when adding new annotations, each time the list is created. The typical scenario: when I am consulting a PDF annotated by someone and I want to store the location of some specific annotations. As there can be many annotations per page, adding a simple bookmark to the page would not be enough either. Best regards, Juan Manuel=20 --=20 Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa