Hi people, this node of the Org manual (info "(org)Search Options") http://www.gnu.org/software/emacs/manual/html_node/org/Search-Options.html explains that we can use links like this one [[file:~/xx.org::My Target]] to point to a string like "<<My Target>>" in the file ~/xx.org. Where can I find extensions of that syntax that allow using several "projects"? I am thinking of something like this: after telling the extension that in the local filesystem the project "dn6" is at ~/LATEX/dednat6/, and the project "edrxrepl" is at ~/edrxrepl/ then the links [[file:dn6/stacks.lua:Stack-tests]] and [[file:edrxrepl/edrxpcall.lua:Class]] would point to: the string "<<Stack-tests>>" in ~/LATEX/dednat6/stacks.lua and the string "<<Class>>" in ~/edrxrepl/edrxpcall.lua, and I imagine that every such extension would also allow telling the HTML exporter where these "projects" are in the web... Thanks in advance! Eduardo Ochs http://angg.twu.net/#eev P.S.: I still know far less Org than I should, but I am trying to remedy this... P.P.S.: eev uses this trick to point to anchors in "projects": http://angg.twu.net/eev-intros/find-eev-quick-intro.html#8.5 http://angg.twu.net/eev-intros/find-eev-quick-intro.html#9.2 I need to add to its docs references to how other packages do similar things.
[-- Attachment #1: Type: text/plain, Size: 2116 bytes --] You might find the scimax-notebook project ( https://github.com/jkitchin/scimax/blob/master/scimax-notebook.org) interesting for this. It builds on projectile and defines a link ( https://github.com/jkitchin/scimax/blob/master/scimax-notebook.org#notebookproject-links) similar to what you describe. You can learn more about it here: https://www.youtube.com/watch?v=H4sK5ld6Bw0 John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Dec 6, 2021 at 8:44 PM Eduardo Ochs <eduardoochs@gmail.com> wrote: > Hi people, > > this node of the Org manual > > (info "(org)Search Options") > > http://www.gnu.org/software/emacs/manual/html_node/org/Search-Options.html > > explains that we can use links like this one > > [[file:~/xx.org::My Target]] > > to point to a string like "<<My Target>>" in the file ~/xx.org. > > Where can I find extensions of that syntax that allow using several > "projects"? I am thinking of something like this: after telling the > extension that in the local filesystem > > the project "dn6" is at ~/LATEX/dednat6/, and > the project "edrxrepl" is at ~/edrxrepl/ > > then the links > > [[file:dn6/stacks.lua:Stack-tests]] and > [[file:edrxrepl/edrxpcall.lua:Class]] > > would point to: > > the string "<<Stack-tests>>" in ~/LATEX/dednat6/stacks.lua and > the string "<<Class>>" in ~/edrxrepl/edrxpcall.lua, > > and I imagine that every such extension would also allow telling the > HTML exporter where these "projects" are in the web... > > Thanks in advance! > Eduardo Ochs > http://angg.twu.net/#eev > > > > P.S.: I still know far less Org than I should, but I am trying to > remedy this... > > P.P.S.: eev uses this trick to point to anchors in "projects": > http://angg.twu.net/eev-intros/find-eev-quick-intro.html#8.5 > http://angg.twu.net/eev-intros/find-eev-quick-intro.html#9.2 > I need to add to its docs references to how other packages do > similar things. > > [-- Attachment #2: Type: text/html, Size: 3734 bytes --]
...also here: https://github.com/jkitchin/scimax/blob/master/scimax-notebook.org#example-links Very good, thanks! =) E. On Mon, 6 Dec 2021 at 23:45, John Kitchin <jkitchin@andrew.cmu.edu> wrote: > > You might find the scimax-notebook project (https://github.com/jkitchin/scimax/blob/master/scimax-notebook.org) interesting for this. It builds on projectile and defines a link (https://github.com/jkitchin/scimax/blob/master/scimax-notebook.org#notebookproject-links) similar to what you describe. You can learn more about it here: > > https://www.youtube.com/watch?v=H4sK5ld6Bw0 > > > John > > ----------------------------------- > Professor John Kitchin (he/him/his) > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > > On Mon, Dec 6, 2021 at 8:44 PM Eduardo Ochs <eduardoochs@gmail.com> wrote: >> >> Hi people, >> >> this node of the Org manual >> >> (info "(org)Search Options") >> http://www.gnu.org/software/emacs/manual/html_node/org/Search-Options.html >> >> explains that we can use links like this one >> >> [[file:~/xx.org::My Target]] >> >> to point to a string like "<<My Target>>" in the file ~/xx.org. >> >> Where can I find extensions of that syntax that allow using several >> "projects"? I am thinking of something like this: after telling the >> extension that in the local filesystem >> >> the project "dn6" is at ~/LATEX/dednat6/, and >> the project "edrxrepl" is at ~/edrxrepl/ >> >> then the links >> >> [[file:dn6/stacks.lua:Stack-tests]] and >> [[file:edrxrepl/edrxpcall.lua:Class]] >> >> would point to: >> >> the string "<<Stack-tests>>" in ~/LATEX/dednat6/stacks.lua and >> the string "<<Class>>" in ~/edrxrepl/edrxpcall.lua, >> >> and I imagine that every such extension would also allow telling the >> HTML exporter where these "projects" are in the web... >> >> Thanks in advance! >> Eduardo Ochs >> http://angg.twu.net/#eev >> >> >> >> P.S.: I still know far less Org than I should, but I am trying to >> remedy this... >> >> P.P.S.: eev uses this trick to point to anchors in "projects": >> http://angg.twu.net/eev-intros/find-eev-quick-intro.html#8.5 >> http://angg.twu.net/eev-intros/find-eev-quick-intro.html#9.2 >> I need to add to its docs references to how other packages do >> similar things. >>