From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oFADFuAf22DMJQEAgWs5BA (envelope-from ) for ; Tue, 29 Jun 2021 15:28:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ACfMEeAf22B1SAAAB5/wlQ (envelope-from ) for ; Tue, 29 Jun 2021 13:28:00 +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 B771F2088D for ; Tue, 29 Jun 2021 15:27:59 +0200 (CEST) Received: from localhost ([::1]:54458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyDmQ-0005i7-P3 for larch@yhetil.org; Tue, 29 Jun 2021 09:27:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyDkf-0004Gq-Ld for emacs-orgmode@gnu.org; Tue, 29 Jun 2021 09:26:09 -0400 Received: from libre.brussels ([144.76.234.112]:60078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyDka-0003mq-UZ for emacs-orgmode@gnu.org; Tue, 29 Jun 2021 09:26:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libre.brussels; s=mail; t=1624973160; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bDrvO6658iEYYZqDkuadLUJ5RwCLeSZR4zbzJHSZtA4=; b=QUFPS9XDdf57zGGOAqeo0Do3/p0ZIZGqtYuS8eW8gvSNMODa7aaMXHaXpn/GRLq6EopWqY UVDhiPwk1Jdbzl+/JcE9iphXGMcT3kqWaJBbWlD9iX0eIWKZwEbn6viM5MQ+wK07ppkZmI 4MzdzujQnsvRieQhlzAbvrFXj5tXdoQ= MIME-Version: 1.0 Date: Tue, 29 Jun 2021 13:26:00 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: indieterminacy@libre.brussels Message-ID: <2aaed4a5edef98e7d993f40eb39a0cd2@libre.brussels> Subject: Re: Virtually prefix headlines according to content To: "Rodrigo Morales" , emacs-orgmode@gnu.org In-Reply-To: <87v95wq5e9.fsf@gmail.com> References: <87v95wq5e9.fsf@gmail.com> Received-SPF: pass client-ip=144.76.234.112; envelope-from=indieterminacy@libre.brussels; helo=libre.brussels 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, SPF_HELO_PASS=-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=1624973280; 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: 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=bDrvO6658iEYYZqDkuadLUJ5RwCLeSZR4zbzJHSZtA4=; b=sFMxKXDRB0elQXKzQ7S6wZlZMbKKD2lvjyRHnfsJ6NiAjV6duelfQLt8rtdwpbiC2/DrBJ luz9a5/AuhvVhAsg+8B3fEqEqLjdGVed9Ei3+Wu4HLDcQZnkQRomTbFsgGGc785/iNsrYJ apLvr6GfpG4C5cXrObwFJu6w4uZ/hW/zM8178BNiw4JxEPt2bRB2BfRwKsMFoz0L5Av1NQ 9BwCFDmxImJNkm4gkKg6qTFrkeIIFdpPjV/aO7FbpbAvfJ/DEdMY8Yl7CDnGxXLixNNyon 9yP0AfMHlbX0oUuFXtkOWGFZZySFJx430EXFt5wtE7bAEatU7mxFzyXEAQMBNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624973280; a=rsa-sha256; cv=none; b=pAQm7bx+ImbQcBLneUAJ5pg6Wm9gvg2ru35py98vRnRGKcQi3H3ZHGDywBLjjW7hCGSsNP Dwl6UYtEEspL+K2dxg+2kTTsoUZyiwT+8Eabb5IPHUYMD3aDxfvTn6rohn4ns42I+2OI82 apXl2O80aMaENtMPHrBhWHj3I5uYwJuXRGKcW1xd32RK1H3GP/De7uYxQJiCpYVE572Iq6 2VxLwmoRAp39Vd3jU5K5robVd85m21j/q+9y5EhGDXSOUXrdTaurgVjvQcbeY3i1FdObSd +WHySED1pBzPtaW1WJIRnUnZPbXnFxUFhChvFVJMw6l7uMJaEAfs/CI2fSv7Zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=libre.brussels header.s=mail header.b=QUFPS9XD; 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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=libre.brussels header.s=mail header.b=QUFPS9XD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=libre.brussels (policy=none); 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: B771F2088D X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: KuEn2txvD8lV Hi Rodrigo, regarding syntax, it would be cool if you aligned the style to match Emac= s' Hyperboles GitHub style: =3D> https://github.com/rswgnu/hyperbole/blob/master/DEMO ``` ** Github (Remote) References For software developers who use Github for publishing and version control= , Github links are similar to social media links but reference specific Git= hub web pages. Press the Action Key on github@rswgnu to go to RSW's gihub home page. gh@rswgnu works too.=20 References=20to project home pages look like this (the / is required): github#/hyperbole (uses user default setting) github#/rswgnu/hyperbole References to specific commits use the # hash symbol and short versions of the git commit hash code: gh#rswgnu/hyperbole/5ae3550 (if include user, must include project) github#hyperbole/5ae3550 (project can be given with user default) gh#5ae3550 (user and project defaults are used) An Action Key press on the first commit reference above works because user, project and commit hash code are all included. The second and third versions require the setup of default values, as explained in the commentary near the top of "hib-social.el". Similarly, the same file above explains how to link to pull requests, issues, branches and tags. ``` FYI, Hyperbole has been making improvements with regards to utility with = Orgmode. It may be worth you looking into how that functionality is implemented. Kind regards, Jonathan McHugh June 29, 2021 1:27 PM, "Rodrigo Morales" w= rote: > * The context >=20 >=20When 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): >=20 >=20#+BEGIN_SRC org > * cytoscape/cytoscape.js: Library for visualisation and analysis > :PROPERTIES: > :GITHUB: cytoscape/cytoscape.js > :END: >=20 >=20* simongray/clojure-graph-resources: List of Clojure resources > :PROPERTIES: > :GITHUB: simongray/clojure-graph-resources > :END: >=20 >=20* DONE What is an undirected graph? ... > * DONE What is a directed graph? ... > #+END_SRC >=20 >=20* The question >=20 >=20What I would like to know is whether it is possible to format a headl= ine > by taking into consideration the properties it has. For example, in thi= s > specific scenario, I would like to make all headlines that have a > "GITHUB" to show "GH" before the actual headline (the content would loo= k > like this). >=20 >=20#+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 >=20 >=20The 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. >=20 >=20* Additional context >=20 >=20A similar behavior is provided by org-num-mode (built-in function), s= o 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. >=20 >=20Any help is appreciated, > Rodrigo Morales.