From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wKfVEn4D22Cl6wAAgWs5BA (envelope-from ) for ; Tue, 29 Jun 2021 13:26:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2EKVDn4D22A9IgAAbx9fmQ (envelope-from ) for ; Tue, 29 Jun 2021 11:26:54 +0000 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 82F961E2D6 for ; Tue, 29 Jun 2021 13:26:53 +0200 (CEST) Received: from localhost ([::1]:35822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyBtC-0003e1-Nm for larch@yhetil.org; Tue, 29 Jun 2021 07:26:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyBs6-0003cL-8q for emacs-orgmode@gnu.org; Tue, 29 Jun 2021 07:25:42 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:42851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyBs4-0001VZ-KS for emacs-orgmode@gnu.org; Tue, 29 Jun 2021 07:25:42 -0400 Received: by mail-pl1-x630.google.com with SMTP id v13so10710811ple.9 for ; Tue, 29 Jun 2021 04:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=o013jcTRLMuRZP0BNXFf8ISIHyMC9b0DR8bVZtOnLLg=; b=swnnRCPCkOXqpQP2PvE0ZSm0Nsn+qri9TyVORRnCPt+QFHW3EJbTZnZOw91A17qaoT QVfWfF6gzb3ed/Cz8tOVp9ZpG7M14cJ+KNXydn1OGW+Rsg6qaeJSh6MiW1S+lNMvaETg DPQRYND/xfPsT60tDgYpDQg1FFOHllIUowAnna4ldDTRqsK8/5Zz4Y3vBfqnu7u3Zmk8 4q73LeGUsSRcaTWQi+LZPLqyjd0QRiBOS9rlyQzJrTrCchaagNUXI7+VQ5HOsaBORxXr JebzBh1dZyOGYLjATQ9qzQdd/AHzSGihgpj6/ZCvn6NzOO6quVTAWmzZOxIqWUI7TMoh qqUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=o013jcTRLMuRZP0BNXFf8ISIHyMC9b0DR8bVZtOnLLg=; b=WselpwGm0DNL2U+HPqKdQngyVuSmrUoGq3NSDaV0ud+6IQEpGWauZrNBzW7yZ0X4Y1 hftI0kAA9Pqd3AcVp4tw17T6Rlrwe9XAjXrEhCFY55lQwo5JJbIM99Q/MPfzVLOxYgfZ JGRC1Ao7RBgJ8mgRAMw/HR+BwYxjkQT80q/GnJAy/leCEuNtUB23wPbTvrAj12MgvoMN kB55IbfugSr0Trvm6A+biTGFkoEzXPmadg9K4NG6/37bFWWi8CbNsONYV0TUi2xdlaLr CWHAKI3AbrnoHO5LHVqV14oWY38ahsM06aUqyeNj50FKRe9D3/5gPr/QGGgOvuX4MObj Kw2A== X-Gm-Message-State: AOAM5313KiU1xECIPPv/kdm3xupVmzhp7OXhAbSBagpHwz+oJ4czPO6D YkIDZ5u+2JPQQBsYQDd0ahpy1ESs5mU= X-Google-Smtp-Source: ABdhPJyzhTMpGKd+XKHq2ZzyRvYodQTzUrwkNV5AVwE9FbPvd+6/0W0HTPmwcJyNm8+teyFxYSt21Q== X-Received: by 2002:a17:90a:4812:: with SMTP id a18mr43234869pjh.40.1624965939148; Tue, 29 Jun 2021 04:25:39 -0700 (PDT) Received: from r1 ([190.239.232.58]) by smtp.gmail.com with ESMTPSA id v1sm18111462pjg.19.2021.06.29.04.25.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 04:25:38 -0700 (PDT) From: Rodrigo Morales To: emacs-orgmode@gnu.org Subject: Virtually prefix headlines according to content Date: Tue, 29 Jun 2021 06:25:34 -0500 Message-ID: <87v95wq5e9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624966013; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=o013jcTRLMuRZP0BNXFf8ISIHyMC9b0DR8bVZtOnLLg=; b=AX9AxYvNycjkDbIXArpo1OXVADf50hDDRbF27br61mIavvXuxMNZgeOK7+eJNq0BElWmf1 kYP/C9xrcgdb+fZdCW6XwamYaHwRspcUuXCJzzicr5IEDit5BQOFqYsBQQJGVjPDwuodhq IEcEfxNmdOiRMOt+vCs1E12OH52cOqIoih866MjlrqwG9UIEN0b57wMZPK9FGyR/YfXNyB V3NsZRe+RQMIaCLti06VOBgCSFL/SPOa8YjTkafby3zCzG1aSjzvR12i2JUUGN9vlBEkm2 ckH7vDxmfiBNrb+9rZLPUTa4JCOFQfgiHVcWkQmqPaYpN37avB8mk/9aYye7eQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624966013; a=rsa-sha256; cv=none; b=Zme+luGvMu5o4PIfaCtH42iJzaVgjP3Q3ZjFC3ESaX6AwBTaEK4LPUsUlwWtO42wpeThho sTEbVhz8+CF7ikdBk19f7lcg/k60BJrqGvACqHVyZb1Du3hVY+Ov1GYJPMC0oNpIACIB5V r+TyLINgrZP59XLeBtFrY/zjss72mEBPf4WixBDGWzick+PhauZxrYyy3e9xZNA7sBdOB6 fSw6ak6Q1SlNhceCXqnVkRfFpVRyaFGac3LzTnGEzW3mLhMKh0v2QOROsVRBB/w6RcFUwq FsNaY3cVDe76ZsaMeDx05Vs9l1D4Q+ohTcIAMViO9h11dZAjdS1sAJDUSRJp5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=swnnRCPC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=swnnRCPC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 82F961E2D6 X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: oMBONnioa65c * The context When taking notes in Org Mode, I usually store Github links of the repositories that are relevant to the topic I'm taking notes as headlines. For this reason, I've multiple headlines of the form within my notes (from my notes on Graph Theory): #+BEGIN_SRC org * cytoscape/cytoscape.js: Library for visualisation and analysis :PROPERTIES: :GITHUB: cytoscape/cytoscape.js :END: * simongray/clojure-graph-resources: List of Clojure resources :PROPERTIES: :GITHUB: simongray/clojure-graph-resources :END: * DONE What is an undirected graph? ... * DONE What is a directed graph? ... #+END_SRC * The question What I would like to know is whether it is possible to format a headline by taking into consideration the properties it has. For example, in this specific scenario, I would like to make all headlines that have a "GITHUB" to show "GH" before the actual headline (the content would look like this). #+BEGIN_SRC org * GH cytoscape/cytoscape.js: Library for visualisation and analysis ... * GH simongray/clojure-graph-resources: List of Clojure resources ... * TODO What is an undirected graph? ... * TODO What is a directed graph? ... #+END_SRC The reason why I'm asking this is because thus when collapsing headlines, I would know that an specific headline is a Github repository. In general terms, to ease the readibility of my Org Mode file. * Additional context A similar behavior is provided by org-num-mode (built-in function), so I guess that some way to accomplish this would be to look at the implementation of that mode and try to understand how that is accomplished. Any help is appreciated, Rodrigo Morales.