From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 QHsMM3nn4WQqzQAASxT56A (envelope-from ) for ; Sun, 20 Aug 2023 12:14:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oAH0Mnnn4WSOewEAauVa8A (envelope-from ) for ; Sun, 20 Aug 2023 12:14:17 +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 03C2F4CD13 for ; Sun, 20 Aug 2023 12:14:16 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k4FucNBC; 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=1692526457; 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=IfsWmGAKR4w471VqQE6D+QwgcewO7RT0XynQD5eIaFI=; b=F1PfZMDJ0+sn+yL7DNHK1r6fxQDcpwphTwjW7y17RF5IJk6/Dpy6St/Q8cdDBuefMMlWwS Rkn9XEqQbZEmuxEh0PBiqTawBMI+ho6Nf0Jx0FiL43fChQLiTYaGiG5ANpqoO5r7g58KmT r2NpK+upIwxY9rslvPJd1GUhDp/QFvLNINFuTg/5ok4KlFb3AB4GYN5dimYFKr5mgw70WE JUDK8H8o1e91Y116+Jjqd6x6qCKBj+gTxBkfGS8UC1p2tXLHtJOGGTgYIzQLPeIPafYIUI xUsj3/5/3gITdGThzaYqpMutlpx1G6sGtfmz3ynwpSeTol/2+6e7cZ7Pm6dcZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k4FucNBC; 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=1692526457; a=rsa-sha256; cv=none; b=Dw8+wJesJLDekoZhKHRzFdz6zFL/40Qa/Zh6CAxCV9Hj/7eVCGqmuOIG6L/FLWwzdqXUNd Yf+Rg5ws6dUYYITtn6sbY+2EVjj13EqDeHn/toevXiiagKPrFwN47NmthElD2KZcPXvHTH e5OiCTP8SHZGBEglAz9rKr/rOdH3tuXEpoouFPazCz7b11ongkVDr5kc1cIEm5szahDObN mfEwjnDIEnaMHYtWc2dRIt3BTdPzDBo/BFvO51a8tg0jN4xLoM3UMY3+Bb/KyYG512Mlsr zgl2pT2YtQIlJnqc/9Qd2jII4CMIj03Tr+ZGfkuh/Pm7/AEy5Vx4Xth84AdMLA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXfRB-0006tN-G6; Sun, 20 Aug 2023 06:13:37 -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 1qXfR9-0006t9-Tr for emacs-orgmode@gnu.org; Sun, 20 Aug 2023 06:13:35 -0400 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 1qXfR7-0005WU-1R for emacs-orgmode@gnu.org; Sun, 20 Aug 2023 06:13:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 05ACB240103 for ; Sun, 20 Aug 2023 12:13:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692526411; bh=4wPizGj1gq7q+PwaRAdxD5ekOfzO7tM7dyvvwGHjlOI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=k4FucNBCBxzAJoX9mEn/+8tcMzaear/Dwl3dCyRcOWzKGD+phPFS4LFlZoN4JNwKL YT+kte9mFo6q8mdWlfJYOQsbk+GZVmD6evIZWLdxZzIhqlNW3+w46CbbwHrX3vJXMe xIDv/IXZgeCt4Bvf3ClWlGP+DQAdCNeDNM14ZdnL/TIs4dVijYQZ9zIRK605rjEez7 8/SsAELQrwFh6gjIlKurPmxBsHtBVKhWgCWTfvUtDMz9VRsMmi8x2Fk17bMHInC+6w 0/jwB6FZs06jaL9VIOINcC8eQLq1aFq8ayU0XNbYaP28aGwNx4buVSYvdtNNlMVG7a gkpDfwE7Xy6yA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RTBJp3tdNz6tyQ; Sun, 20 Aug 2023 12:13:30 +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: <87wmxquqhb.fsf@localhost> (Ihor Radchenko's message of "Sun, 20 Aug 2023 07:23:28 +0000") References: <87ttsww6iy.fsf@posteo.net> <874jkug664.fsf@localhost> <87r0nyydvn.fsf@posteo.net> <87wmxquqhb.fsf@localhost> Date: Sun, 20 Aug 2023 10:13:27 +0000 Message-ID: <87y1i6c988.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_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.77 X-Spam-Score: -9.77 X-Migadu-Queue-Id: 03C2F4CD13 X-TUID: Pvft6lJgbfgy Ihor Radchenko writes: >> ... 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. > > By default, context menu is bound to S-. Who cares about mouse XD Oh I see. Very interesting. But I have seen that, at least by default, there is no autocomplete feature. What I like about popup.el is, in addition to autocompletion, the ability to easily create menus for anything. Some time ago I defined a popup-menu[1] that shows me all the header levels from where I am to the first one, defaulting to the current level. It helps me situate myself in deep levels (other options like imenu or org-sidebar give me too much information and I get lost). I'm going to investigate if something similar can be done with context-menu-mode... Thank you for all the info! [1] https://i.imgur.com/KoAZtIz.png =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (defun my-org-where-i-am-popup () =E2=94=82 (interactive) =E2=94=82 (setq org-heading-titles-list nil) =E2=94=82 (org-with-wide-buffer =E2=94=82 (save-excursion =E2=94=82 (save-restriction =E2=94=82 (org-back-to-heading t) =E2=94=82 (if (eq (org-element-property :level (org-element-at-point= )) 1) =E2=94=82 (message "First level") =E2=94=82 (push (cons (org-link-display-format =E2=94=82 (nth 4 (org-heading-components))) =E2=94=82 (point)) =E2=94=82 org-heading-titles-list) =E2=94=82 (while =E2=94=82 (ignore-errors (outline-up-heading 1 t)) =E2=94=82 (push (cons (org-link-display-format =E2=94=82 (nth 4 (org-heading-components))) =E2=94=82 (point)) =E2=94=82 org-heading-titles-list)))))) =E2=94=82 (org-with-wide-buffer =E2=94=82 (save-excursion =E2=94=82 (save-restriction =E2=94=82 (goto-char =E2=94=82 (popup-menu* (mapcar =E2=94=82 (lambda (x) =E2=94=82 (popup-make-item (car x) :value (cdr x))) =E2=94=82 org-heading-titles-list) =E2=94=82 :isearch t =E2=94=82 :initial-index (length org-heading-titles-li= st))) =E2=94=82 (org-tree-to-indirect-buffer))))) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 --=20 Juan Manuel Mac=C3=ADas https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com