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
10
votes
0answers
521 views

How to get automatic backlinks when linking files in in org-mode?

Is it possible to automatically create backlinks to org-mode links? When a link to file B is added to file A, then also a link to file A is added to file B (i.e. the links are symmetrical - going both ...
8
votes
1answer
711 views

Fontify broken links in org-mode

If I create a bad [[file:link]] or an internal [[Link]] that does not exist, I would like to org-mode to fontify this using org-warning face. How can I get this done? Thanks,
7
votes
2answers
2k views

Create image links in org-mode

I want to create clickable image links in org-mode. This would be equivalent to: <a href="path-to-file"> <img src="path-to-image"> </a> Currently, I can display inline image ...
7
votes
1answer
237 views

How can I manually set links in org mode?

So I'm trying to make an "autolinks mode" to emulate the functionality of notetaking software like Tomboy Notes or notes.vim, which automatically linkifies any text that happens to be the title of a ...
7
votes
0answers
244 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 ...
6
votes
1answer
99 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 ...
4
votes
0answers
822 views

How to embed external file contents in org file?

I'm creating a simple bash tool that uses various flags/arguments from the user, and I'm using an org file for the documentation. I have several examples and I'd like to include some explanation of ...
3
votes
1answer
1k views

How can I get with org-store-link relative path instead of absolute?

How can I get with org-store-link relative path instead of absolute? I tried M-x customize-variable RET org-store-link, but did not work. Or do I have to customize it anywhere else?
3
votes
1answer
403 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:/...
3
votes
1answer
307 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
164 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 * ...
2
votes
2answers
429 views

Org-mode link to function definition

Is it possible to link to a function definition in a source code file, rather than a fixed line number?
2
votes
1answer
387 views

How to capture and link code comments as org agenda items?

I often see or leave comments in code projects like: //TODO more efficient hash on keys than BASE64? Ideally, I would like to be able to highlight a comment as such and org-capture it to an org file ...
2
votes
2answers
156 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
57 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 ...
2
votes
0answers
104 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 [[...
2
votes
0answers
123 views

Links inside org-mode tables are not typeset in monospaced font

While the default is a proportional font, I told org-mode to use a monospaced font in tables: (add-hook 'org-mode-hook (lambda () (variable-pitch-mode t))) (with-eval-after-load 'org (set-face-...
1
vote
1answer
59 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
2answers
204 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 ...
1
vote
1answer
128 views

Don't execute org-mode links to executables

I've managed to set up my org-file-apps mostly the way I want it, although one thing remains: I'd prefer if executable files were opened directly in Emacs since most of them are scripts that I'd like ...
1
vote
1answer
92 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
2answers
33 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 ...
1
vote
1answer
79 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
2answers
455 views

On orgmode link- dired like open with or open in dired current link?

I sometimes need to open links in org (mainly for image link) in an external editor (let's say gimp). Is there any way to do that? That is, instead of the default open link, add a open with option or ...
1
vote
0answers
22 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
36 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
42 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.
1
vote
0answers
74 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 ...
1
vote
0answers
63 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
60 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)
1
vote
1answer
308 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
28 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
0answers
86 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
1answer
91 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-...
1
vote
0answers
35 views

Org file: Change color of links if they point to a non-existing file/directory [duplicate]

Is it possible to have Org-mode links change color if the file/directory they're pointing to does not exist? I use the Leuven Theme, and links are displayed in blue. I'd like links to be displayed in ...
1
vote
0answers
138 views

Easy completion for internal links to figures/images?

I am writing a manuscript and I want to be able to reference my figures in the manuscript which I have included like the manual suggests: #+CAPTION: Figure caption #+NAME: fig:my-figure [[./...
1
vote
1answer
48 views

How to auto prefix with comment char when inserting code ref label with org-store-link

There is a way to link to a specific link of code in org babel src block. with org-store-link. Here is an example: ;;; This is comment | line. | (describe-char | (point)) ; | comment | (message | ...
0
votes
1answer
84 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 ...
0
votes
2answers
88 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 ...
0
votes
1answer
58 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 ...
0
votes
1answer
355 views

Is there a fast way to get a docview link to a specific page in a PDF document?

When I press "w" in eww-mode i get the link to the opened Homepage. Now I can yank this link very fast in an Org Mode file. How can I get such a link to a specific page in an open PDF document in the ...
0
votes
1answer
18 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
21 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 ...
0
votes
1answer
38 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
1answer
217 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 ...
0
votes
1answer
129 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
44 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 ...
0
votes
1answer
83 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 ...
0
votes
0answers
22 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 ...