From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OAebKnkm4WR89gAASxT56A (envelope-from ) for ; Sat, 19 Aug 2023 22:30:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KKLUKXkm4WSZAQAAG6o9tA (envelope-from ) for ; Sat, 19 Aug 2023 22:30:49 +0200 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 34A6A4C8DB for ; Sat, 19 Aug 2023 22:30:49 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=maeEgyjb; 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=1692477049; 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=pBG+M6+MZvdnfNSpN2umgdLmc/ROvDYH6AcW174bdpY=; b=akux0HvGmuMcBsCHq9Z6umUhUu1+vIUe16298O8gDmLlHUIR361MN0alR6IcY/E81a1RFL hN5tZ3I1q6A2EBR7dk8pVoG4D4CFrPXLmcF8oGgBQyod60rWce6maVfh9g/7J+kow3LZ6V gC775FR/5B1dB4l31XPyTjayeoiRYMzEw2gx9G3N0c/PmPCiozXd/vaDC+QyZjmsopHpto YoKaP4YcM3ud8hcwEScRdCkDwaTDSFE2mSX+ck/f1uqOrVjCr2xZJ+RIlUj/X6BK8aqrPd d9kMaYLlzI7O1QrHL7mOekP7CNJG+vCi7UUnMdLFmxJWNNdz3TmTh/bYNt8zhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=maeEgyjb; 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=1692477049; a=rsa-sha256; cv=none; b=GSdiNMGYJXCNu7+3gGtX794P09fUnqNMx0996Ng3nQaQ5Hm6A1jUUyq0egT6obnEykPlsV I9ldyJewes2NgPRTrryYAHh8H43TXxeSAcktF3uQdiPmY0wdrdCjpxeW/dETxJA0nBck/b +UrZP/vSZi6YCurAqO1hFWY8OLUkII+O3Nn6v/0OCUgnLJxPyzYny+hfPg3oPz8FZB//cS g5KcJmXj+JT/VasRDPxNIp4AlDLspuSWoXz4PoFS+8U3fog3xNZpb6P5d71eZ/Ax1vkZGM lOdZvz3mm3RbrzbQuXfZxUsZUS6BVLAVY4ceanu4gZbEyd91R2rN/08utWSokw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXSa8-00043O-G2; Sat, 19 Aug 2023 16:30:00 -0400 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 1qXSa6-00042x-5b for emacs-orgmode@gnu.org; Sat, 19 Aug 2023 16:29:58 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXSa2-0007rb-VF for emacs-orgmode@gnu.org; Sat, 19 Aug 2023 16:29:57 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C95D4240028 for ; Sat, 19 Aug 2023 22:29:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692476990; bh=o7M6RHBLxindfnmJSYH2z4Tvj/ny0R84ARjbpjSDRhg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=maeEgyjbu5AKB6qyfTKGhceAN1l8fCNbD6TYKrGCutWUnRqw9oOoT3wTFoYFOHuMO 4TOX2Lvz/6Wb3uhrDG2Bj7DjvfkaqboBPWyDD++d5a6DpvL7UvnaTIMpt0Z4CEPZog bXDkH3AeeWX9rKxWrxVo+fUoOHLVmOjF45JYIdDTO/DeN8ZONGg8oiGeHb9vlz1HWN omHDSCy/3FcK0NZJ7v9MA5ITsSN7yoLMd+cmhGNOVq6+O/ylQnG80rafBQHj+S1erc s69f1nBw6GV0dEL2FsvdzYMB1vwKlMizmV2GRRd4k8hk6imTibw91FnymUppCYMNT2 S3i0UYWJ0ZQ5g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RSr2Q2D22z6txH; Sat, 19 Aug 2023 22:29:50 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [Tip] Popup-menu with several actions for a link In-Reply-To: <874jkug664.fsf@localhost> (Ihor Radchenko's message of "Sat, 19 Aug 2023 19:53:39 +0000") References: <87ttsww6iy.fsf@posteo.net> <874jkug664.fsf@localhost> Date: Sat, 19 Aug 2023 20:29:48 +0000 Message-ID: <87r0nyydvn.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.65; envelope-from=maciaschain@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -9.89 X-Spam-Score: -9.89 X-Migadu-Queue-Id: 34A6A4C8DB X-TUID: xjPTsmgjlOOu Ihor Radchenko writes: >> I=E2=80=99ve been experimenting for a while with the popup.el library >> (), which offers an easy way >> to create popup menus (even cascading menus), with auto-completion >> functions. I=E2=80=99m sharing here a popup menu that I=E2=80=99ve defin= ed to perform >> various actions on an Org link, in case anyone finds it useful. > > Since Emacs 28, Emacs has built-in context menu. (terminal is also > supported) Moreover, major modes are encouraged to add support for > context menus. Thanks for the information. Do you mean context-menu-mode? I'll keep an eye on it. When you say terminal support, do you mean terminal emulators or TTY? Because I often use Emacs on the linux framebuffer with fbterm, and popup.el works fine on the tty. Also, I don't usually use the mouse much (actually I only use it in Gimp and the like) and the combination of popup.el with hyperbole is more comfortable and keyboard-centric for me. >> In this list I store the functions that I am writing to manipulate links >> (open the link with eww, open the file with an external application, >> attach it to an email, upload it to Imgur, copy it to another directory >> or move it, visit the file directory, etc.). Something like this: > > May you explain more about how you attach to an email/upload? Sure! But they are very simple functions, which I don't use much. Although they work fine for what I want: The first requires the imgur.el package; the second one needs gnus-dired-mo= de: (defun my-org-link-to-ingur () (interactive) (let* ((path (org-element-property :path (org-element-context)))) (imgur-upload-image (expand-file-name path) nil t))) (defun my-org-link-to-mail-attachment () (interactive) (let* ((path (org-element-property :path (org-element-context)))) (gnus-dired-attach (list (expand-file-name path))))) --=20 Juan Manuel Mac=C3=ADas https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com