From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AvupBaKp8mOCVQEAbAwnHQ (envelope-from ) for ; Sun, 19 Feb 2023 23:58:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gFbkA6Kp8mPKZAEAG6o9tA (envelope-from ) for ; Sun, 19 Feb 2023 23:58:42 +0100 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 98AD52CB95 for ; Sun, 19 Feb 2023 23:58:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTscu-0002WS-H2; Sun, 19 Feb 2023 17:57:48 -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 1pTscs-0002W7-Gx for emacs-orgmode@gnu.org; Sun, 19 Feb 2023 17:57:46 -0500 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTscq-0001sh-QE for emacs-orgmode@gnu.org; Sun, 19 Feb 2023 17:57:46 -0500 Received: by mail-lj1-x234.google.com with SMTP id x33so1493246ljq.13 for ; Sun, 19 Feb 2023 14:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aqxHwVYZA+CHgR9NiAeauGV1R3ApPE0ytlE4ipXpB5o=; b=Ls7/CfglxQSFz8xM3OxHbnANUwvtoXr7VLg0OXdtR3XhGrQKQT4ry3Gts2qQ2gQFWp Gdc6g/6B16XskfxPBj1BGhJosNaFVQAUni1CaJ7DTwXQaLRS7gBLXOT0T/myUcCu+z/m IZGOtwhUf46wp9pO2M5Uutraktk7sJddkdmdq4vlWe8I2oAk9IQFtcpBorvy/B/PJvPa duTwroKeMIsAt8nluPU4pXvaxBqq1buLHQ3ZVnP8w+HgjtnGQqcFQVWBlno0WTjxfF91 jOJ3yBqkO29perYRKKB4WO8HwzjuRtbCqB9VnaWE48uqWv2u3LKxJrAjrxIOxD8jfLZL MYDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aqxHwVYZA+CHgR9NiAeauGV1R3ApPE0ytlE4ipXpB5o=; b=V/zUREFsFTuaPp5zpP6ZnG5bK1u5Hz1T9MdbUzwsYVMWd4LbWEItghA7Wmt7Pe5mTC zH+/DDudD4yDB7ki9ZqVRb7fCENcDTNc+v3kRxKB1PahymZOUJ/4jLYmNt7LgRumHzpt YknSBP7pgpyI0aaO4U0i8+dSPU2U7cHkhi4hukiOb9UdwAZipjv2foBrKSlMc9ir8KoV LHkZ5Ktre4/vL1QCI/8AX6eYzUo0oESQP/35yjBeSqvwd3jJIofDxojTbAkU3xIvPMOG LZddDxfQLMh7xVJGVh5WmFMLbFhUdeSXa4Hgu8hafe8bRNFNIQ5KbnwxD7mpBNjW+yy9 +Hvg== X-Gm-Message-State: AO0yUKVKkw1OcjhNT4htX5ZP8SFDfdrCi33qx5gPD+nkhy4x87XRLIK+ OalGmcC83sfcony+sbRA6JUeRezCiZr2+5JYbQU= X-Google-Smtp-Source: AK7set8szMc7ossT5q5pBcvU2YsnTc+ccZNgwq3i6ScqE4a/iJON6QqQeDTzQUVWvHqC+NIjIjVRHqBizDWmRozVqU0= X-Received: by 2002:a05:651c:1614:b0:293:27a9:ef34 with SMTP id f20-20020a05651c161400b0029327a9ef34mr522628ljq.0.1676847462418; Sun, 19 Feb 2023 14:57:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Sun, 19 Feb 2023 14:57:41 -0800 (PST) In-Reply-To: <87h6vhkjat.fsf@localhost> References: <1495820062.205861.1676736033884@fidget.co-bxl> <87h6vhkjat.fsf@localhost> From: Samuel Wales Date: Sun, 19 Feb 2023 15:57:41 -0700 Message-ID: Subject: Re: RFC on implementation adding buttons beside headings To: Ihor Radchenko Cc: pareto optimal , Emacs Orgmode Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=samologist@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676847521; a=rsa-sha256; cv=none; b=VHT07tHTFEObKT+GF+D0OyNEETw/mNfyLYk8x68ESbQScdM4I07deErofgj1rRTvxd8wH6 9pM1NZ1t1iJv9WTdjS1ONnKX/Mp66ujkLD9vQmPU6arV70yYheZMnx8chwJalKXXJgjUeg IQRIVJGyQqpTlY3+Y/+jaUjQHv/2P4NiTsqn/QhnzRkbQTjrTiK9Lbp5SRd2so0g+lrGsk 9+AXLCagkUFSxxnOGLCOX6XYr7rxbdgb4Ug5+lChnLgPaCPSHseY3k+KboL+OnQN6OGFon E7BCYEbV9jkJ7T4l5zzut94Qg9E64DTFv9CDGF3K7tF7k1ET3QRev7wCGYH8sA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Ls7/Cfgl"; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676847521; 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=aqxHwVYZA+CHgR9NiAeauGV1R3ApPE0ytlE4ipXpB5o=; b=Sd6hdKVCGU/gmBej1qmHUwATMgk73Gxum63rJdQBgqdS5Gc/xP3sQecN83lsF/90lPkxnf sttWgCy8jX/y9dZ6jtgCa+/iYjiPWFoXTu6KCUVXTS4IYjv2l3ek4hoAvUJBlUcygM6qj2 3hHTUMOLhJgCfXn53TTw7sy2J8IprhrXbdzS5XG7veYshix/vqGt0nXreUfvoThFY0De/F MNrnDYr6tyjt/iQu05cTzq/58IhYuEiCeJszoWNK1Z/UW3bY3NV7OCVRIBBaFtIARwjug0 rPg2nLhhfqxRvUzFt8MCcGCVE3hoGJEPylNRFoMytT9NmnSHd6Ci4VSad4/wHQ== X-Migadu-Spam-Score: -6.36 X-Spam-Score: -6.36 X-Migadu-Queue-Id: 98AD52CB95 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Ls7/Cfgl"; dmarc=pass (policy=none) header.from=gmail.com; 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" X-TUID: tOilTnSB3j6p at least for context menus or so it might or might not be useful to install and modify org-mouse. it allows you to do things like unfold, check a list box, etc. On 2/19/23, Ihor Radchenko wrote: > pareto optimal writes: > >> I've recently been playing with emacs on Android and wanted an easier wa= y >> to clock in. >> >> My idea was to put buttons beside org headings that are TODO items. I do >> this by: >> >> - removing clocking buttons on heading if present, then adding a clock i= n >> button on=C2=A0'org-after-todo-state-change-hook` >> ... > > Alternatives can be: > 1. Showing a side buffer with context-dependent buttons > 2. Utilizing context menu > >> I'm new to using buttons and emacs and I found the only way to place the >> button where I wanted was to insert some blank space after the heading. = Is >> that expected and best practice or is there some other way to do it? > > AFAIK, buttons must be on top of actual text. > You can also use `insert-button'. > >> Would this be something useful in core org-mode? I know at least a few >> friends who've asked me "why isn't there some button I can click by >> headings to clock in" when I showed them how I use org-mode. > > Mobile support will certainly be useful. > > Though I'd prefer not to modify the buffer and instead use a > side window. That way, you can write a minor mode that will create > configurable buttons depending on major mode and cursor position in the > buffer. The buttons will also have a fixed size, possibly utilizing > larger fonts-a useful thing to have on smartphones. > > Such minor mode may then be not restricted to Org mode and could be > used, say, in Org agenda or other major modes in Emacs. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com