A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [org-link]

The org-link tag should be used for questions about links in org-mode files. This is a feature of org-mode that allows users to include hotlinks to org headings within the same file, to other files on the same computer (e.g. text, emails, pdfs), to urls for internet resources. Additional link types are provided by external packages.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Footnote link broken when converting to table.el format

Org mode footnotes within table cells are broken when converting to table.el format with C-c~. * Org Table | col1 | col2 | col3 | |-----------+------+----------------| | some text | ...
0
votes
0answers
45 views

Org mode link in comments

Is there a way to make links work in comments? # Comment with [[link]] link Error Message: edmacro-parse-keys: C-M- must prefix a single character, not up The link would work only when ...
0
votes
1answer
15 views

Override org-insert-link for those that match a pattern

I often need to keep track of conversations that happen in Slack, so I wrote a small elisp package that retrieves all message info (channel, timestamps, message(s)) for a given Slack permalink. Then ...
1
vote
2answers
37 views

Org Mode link to structure blocks

Is there a way of linking to a specific structure block in org mode? I have a block of text as follows: * Heading Some text ** Subheading some text #+BEGIN_PROSE Lorem Lorem ipsum dolor sit ...
2
votes
1answer
53 views

how to display target of an org-mode link in the echo area or as tooltip?

In org mode when I hover over a link, I get a tooltip that shows the target of the link. But I'd like to see the target when I just move point onto a link, either as a tooltip or in the echo area. For ...
0
votes
1answer
22 views

browse-url-at-point opens link text

I have a link in my org file such as [[https://google.com][mylink]]. When I put the point over "mylink" and run M-x browse-url-at-point my browser opens "http://mylink.com". Is there a different ...
2
votes
1answer
72 views

org mode link with just the non-directory part of the file name

Is there a method to link files without specifying their absolute file name nor their relative file name; just the non-directory part of their file name? I remember stumbling into one when browsing ...
0
votes
1answer
29 views

Elisp function to get path to file link target

With the cursor on a file link, I'd like to set up an org-capture template which inserts the template into the target of the link. I guess I add something like (setq org-capture-templates '(("m" ...
0
votes
0answers
15 views

Org mode:inks to file text snippets stopped working after upgrade

I have an org file referencing to another file with links containing # symbols: [[./crawler.pl::#top level processing][top level processing]] It worked fine until I upgraded Emacs to 26.3 and org-...
0
votes
0answers
31 views

Show all links from files in org-agenda-files pointing to the header at point

My question is fairly basic and I'm struck that it hasn't been asked before on emacs.SE as far as I can see: How can I see all links pointing to a header at point? This should also include links ...
0
votes
1answer
47 views

list internal org-mode links

How can I see a list of internal links in an org-mode document? I would like a quick way to link within my document without needing to retype/remember all my internal links. The documentation states,...
0
votes
1answer
24 views

org-publish-project fails because of defective org-links - repair links automatically or ignore them?

I'm trying to "quickly" export my notes ans tasks from org-mode to a html-page with org-publish-projects. I had a working setup some years ago and I'm trying to reactivate it, but doing the export ...
1
vote
0answers
30 views

OrgMode table text narrowing issue with links

I have an issue with my GNU Emacs 26.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.8) of 2019-04-30 in OrgMode. I have a table. One of its collumn is filled with internal links (inside ...
1
vote
1answer
135 views

Org-Mode: Link files with IDs and not Filenames

I want to use Org-Mode as a wiki so I need to have an index of all my org files. In it I want to have a list of links to all those files, but my problem is that I have found no way to link pages with ...
1
vote
1answer
45 views

How do I show org links pointing to an entry?

I have org-capture templates setup (but the default Todo template works the same way) to create a link in the resultant file to the text that was selected when org-capture was invoked. This allows me ...
1
vote
0answers
45 views

opening org link in dired

[[D:/dev::line][code]] stores the link to my code directory. How can i used dired to open it in emacs. Currently with this code explorer opens the directory. I'm using Windows 7.
0
votes
1answer
19 views

How to make linked word in org-beamer stands out?

I am using org-mode with Beamer. Using the Barkeley theme, I wrote something like this: To [[http:www.google.com][Google]] However, the outputed slide doesn't indicate any hint of the word "Google" ...
0
votes
0answers
42 views

org-insert-link sometimes produces “wrong type argument: stringp, nil” after prolonged use of emacs

It usually happens after a couple of days of use that C-c C-l / org-insert-link inside .org files does not allow me to insert new links anymore. What I want to do is interactively insert link ...
0
votes
0answers
23 views

Org links to regex under portable subtree

Is it possible to have links like this? [[id:a5e9935a-9b82-480d-9c27-74a71bfac27a::/regex/]] That is, links to a match under a portable subtree? This, at least, did not work. (By portable subtree, ...
0
votes
2answers
40 views

How to suppress output of link with elisp function in org-mode?

When using elisp function in the link in org-mode, like [[elisp:(func)][text]] after clicking the link, the function itself will be printed in *Message* buffer. How should I prevent it from being ...
0
votes
0answers
45 views

Merge org-mode headings without breaking links

I have a large collection of notes in org-mode, each with it's own heading and org-id. For example * Note one :PROPERTIES: :ID: 403847B2-3D4C-4EFB-96DE-E0C5C52A02B5 :END: * Note two :...
2
votes
2answers
208 views

Update target of internal org-mode link

I have a document full of internal org-mode links of the form: * Target Heading ... [[Target Heading][Description]] However, these break whenever I edit the heading that they link to, so I want to ...
2
votes
0answers
62 views

Convert internal org-mode links to org-id links

I have a document with a large number of internal text links. Some are formatted like this [[Link to Heading]] while others have descriptive text: [[Link to Heading][description]]. I would like to ...
1
vote
2answers
464 views

How can I change external program to open org URLs for one org file only

In my Emacs config, I have set Firefox to be the browser to open URLs with, (setq browse-url-browser-function 'browse-url-firefox) Now, I have one org-mode file, in which I would like to open URLs ...
0
votes
1answer
99 views

Problem creating an org-mode link to a pdf file from PDFView

When I try to store a link to a pdf file (opened with PDFView), I get the following error Unable to percent escape character: \342 The link is stored with the following url: Stored: file:/tmp/...
0
votes
1answer
117 views

Org mode: #+INCLUDE remote files?

I regularly use Org mode's #+INCLUDE command to include local files in my Org file. Now I'm wondering if there is a way to include remote files (i.e. files that I reference via a URL) into my main Org ...
8
votes
0answers
376 views

How to expand external files inline on orgmode?

I know I can use something like #+INCLUDE: "./filepath" but this has effect only when I export the file. I can also use link like [[./filepath]] but I have to type C-c C-o to go to the content. How ...
0
votes
1answer
46 views

Apply template to files created from an org-mode link

If you click on a file: link to a document that does not exist, org-mode will create this file for you. How can I get this behavior to work with a org-capture template, so that files created in this ...
0
votes
2answers
108 views

Org links file name encoding issue

Inspired by John Kitchin's presentation of org-links features in Org-mode 9, I tried to implement a simple functionality for "file" links. Since I am working on several machines, I wanted the link ...
1
vote
0answers
81 views

Faster way to store an org link to an identifier in a projectile project?

I'm trying to come up with a faster workflow for storing org-file links to parts of a source code tree. I'm generally starting in my org file taking notes, doing a helm-ag to search for some function ...
0
votes
1answer
230 views

org-mode: create new link type for structured links to headings

After reading the org-mode manual I didn't find a way to construct structured links referring to headings with endless depth, like: having a file.org: * 1 ** 1 ** 2 *** 1 <---link here ...
6
votes
1answer
115 views

keep focus when opening weblinks in browser from org mode

Hi I'm heavily using the feature C-c C-o in org mode to open the links in org mode in my firefox. I have org lists with these links and I want to open a bunch of them and then go through this websites ...
1
vote
0answers
77 views

Run some commands before and after clicking open a certain type of org-mode link file in its associated app

Whenever I click on a mp3 or mp4 org-mode link, I'd like my files to open in their associated app after running some relevant applescripts I have. I also have some scripts that I'd like to run after ...
1
vote
0answers
62 views

How can I add functions to provide http links?

A recent feature request raised a new area of integration/customization for me. I've developed a package to browse GitHub content and we'd like to be able to store a link to the current 'thing' using ...
1
vote
0answers
32 views

How to use org-link-search as true or false?

I want to test whether an internal org-mode link exists. org-link-search seems like it could work... is there some way to configure this like: (if (org-link-search "my link") 1 0)
3
votes
1answer
454 views

Validate internal fuzzy links in org-mode

Is there a function that will validate internal fuzzy links in org-mode? I would like to see which links resolve to headers (fontified in blue) and which ones are broke (fontified in red). John ...
3
votes
1answer
510 views

Org-mode custom youtube link syntax

I would like to defining a custom org-mode link, that accepts the following syntax: [[yt:<video ID>]] and produces an image link equivalent to this: [[https://youtu.be/<video ID>][http:/...
0
votes
1answer
140 views

Get Org Link Description From Table Column of Links

I have an org table and I want to take an existing column of org links of the form: [[http://blah.com/blah/blah/foo][foo]] And create an adjacent column containing only the description - i.e. foo. ...
0
votes
2answers
45 views

Deletion in the export of an org-link

I have defined an org-link as follows: (org-link-set-parameters my-link :follow (lambda (path) (message "This my link")) :export (lambda (path desc backend) "") ; I need to remove the space before ...
1
vote
1answer
371 views

Open org-mode link of gif image and display inside of Emacs buffer with command image-animate

I want to open gif image link (in Org-mode) with emacs lisp function image-animate. Here is my try. https://gist.github.com/e2e05b28e0a6bf3bd9f27f345696892d But I got some problems, how to open a temp ...
1
vote
0answers
30 views

Disabling the special meaning of either `+` and/or `|`

I came across a case where strike-through and table interfere with the proper operation of org-links (which, in my case are org-ref citations). Here is a minimal example: +-+ |cite:VemulaMO2016c-Path-...
1
vote
1answer
107 views

PDFView: allow vertical scrolling till the last line becomes the top one

I would like be able to link from an org buffer to a precise place in the PDF. When such a link is clicked, the PDF would be opened in a PDFView buffer on the required page and vertically scrolled so ...
1
vote
0answers
90 views

A screenshot that links to a page from PDF

Suppose that I have a link to a screenshot of part of a PDF page in an org buffer. How can I change the behavior of the link so that, when the displayed inline image is clicked, instead of opening the ...
1
vote
2answers
42 views

Using minibuffer while the cursor is on a org-ref citation link

When I run (y-or-n-p "Prompt") while the cursor is on an org-ref citation link, the prompt appears for a second and then disappears again to continue displaying the information about the article ...
2
votes
0answers
111 views

Copy/Paste relative links between buffers

How can I copy (relative) links and regions with (relative) links between buffers? Buffer c:\path\to\a\a.org contains links of the form * A section with links This is a link to another org-file [[...
3
votes
1answer
199 views

How to export readable HTML links in Org mode?

When exporting an Org file to HTML all internal links of the form [[link]] are given section indicators of the form X.Y.Z. This makes sentences in which words have been linked unreadable. Input * ...
0
votes
1answer
60 views

How to insert text immediately before a link (at the start of a line) in org mode?

Consider the following org buffer test.org: H [[My Target][jump to my target]] <<My Target>> If I run org-toggle-link-display on this buffer I get: If I now move the cursor down to ...
1
vote
1answer
87 views

search options for non-file org links?

orgmode file links can contain additional information to link to particular places within a file, i.e.: [[file:~/code/main.c::255]] opens main.c and jumps to line 255. Is it possible to accomplish ...
1
vote
1answer
100 views

Debugging a function called when hovering with the mouse over an org link

I am trying to debug a function called when hovering with the mouse over an org link. For example, I instrumented bibtex-completion-apa-get-value with edebug-defun. However, when I hover over an org-...
0
votes
1answer
86 views

A non-intrusive way to modify one attribute of the link defined in a function

The following code from org-ref defines a citation link: (defun org-ref-define-citation-link (type &optional key) "Add a citation link of TYPE for `org-ref'. With optional KEY, set the reftex ...