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
2 answers
31 views

Emacs org-mode: how to create link to a certain search agenda?

In 'Emacs org-mode' i can create links to headings and other things where I want to jump quickly. How can I create a link in 'Emacs org-mode' which opens a certain search agenda? At the moment I have ...
MostlyHarmless's user avatar
0 votes
1 answer
25 views

Link org-mode to external file with "[" or "]" in the path

I have a "file name.txt" file whose full path is "G:/path1/[TAG] path2/file name.txt" How do I write the link to the external file "file name.txt" in org-mode? If I use [[...
Paolo's user avatar
  • 21
0 votes
0 answers
36 views

Internal link to a headline by it's number in org-mode

I'm using dynamic headline numbering in my org file and I want to use those numbers as a internal link targets. For example within a org file structured like this: * 1 section ** 1.1 subsection I can ...
Bazinevis's user avatar
0 votes
1 answer
52 views

How to set org mode to edit file when click on html file link?

The default action when click on a html file link will open it in browser. How to config the action of click to distinct web links and disk file link, so the web link starts with http or https will be ...
Malloc's user avatar
  • 103
0 votes
0 answers
13 views

define a special org-link face inside of org-table, different from outside?

I'd like to define a special org-link face inside of org tables, such as to set link to fixed fonts within a table, and to variable fonts outside. I tried to play with custom-theme-set-faces in ...
Laurent Jacques's user avatar
1 vote
0 answers
26 views

Track navigation after opening an org link

This is a longshot, but does the following exist already? You have an link in your org file like: * TODO Learn elisp [[info:eintr#Arguments][eintr#Arguments]] You open that link. You go to the next ...
hbogert's user avatar
  • 191
0 votes
0 answers
36 views

Is there a way to hide link prefixes in org-mode?

For some link types it would be nice to hide the link prefix automatically. This post does this with text properties, but I'd prefer if it was possible to do with something like prettify-symbols or ...
user41177's user avatar
  • 121
0 votes
0 answers
11 views

How to prevent org-exporter from prepending "file://" to the beginning of absolute file paths when exporting to HTML?

I use org-mode to write HTML pages for a website. When I use relative links for navigating the website's directory structure in my org-mode files and I export the org files to HTML, the links work as ...
Blender's user avatar
  • 25
0 votes
0 answers
11 views

Does `get-char-property-and-overlay(nil org-image-overlay)` mean that the first argument was nil or `org-image-overlay`?

I've spent over 20 hours trying to solve an issue with org-mode loading. I've stepped through the code until it reached a function that stack trace indicates fails due to one of the arguments being ...
Daniel Krajnik's user avatar
0 votes
1 answer
49 views

What causes org-open-at-point command to fail?

For some reason doom emacs fails to open links that point to a local file ([[file:firejail.html][file]]). It's X11 KDE Arch doom emacs and if opened with xdg-open default application to open .html ...
Daniel Krajnik's user avatar
0 votes
0 answers
30 views

Opening hyperlinks stops working when browser runs in sandbox (firejail)

Opening links (e.g. [[https://www.example.com][example]]) stops working when browser (librewolf) runs in a sandbox (firejail). The only output it gives is "nil". It works again when sandbox ...
Daniel Krajnik's user avatar
0 votes
1 answer
46 views

why the inconsistency with org mode code line labels and links

In org mode and in a source code special block, I can add code line labels, which have ref: in the label -- but when I make a link there, I have to omit the ref:. For example: #+begin_src csharp 1044 ...
Dan Drake's user avatar
  • 615
1 vote
1 answer
36 views

How to create a link to a pdf with special characters in its name?

I'm working in Linux under org-mode and trying to create a link inside an *.org file and this form works: [[shell:okular /home/quora/myfile.pdf][title]] Problem is, for pdf filenames like my file[2nd ...
Quora Feans's user avatar
0 votes
0 answers
48 views

How can I modify the default description when using org-insert-link with custom IDs in org-mode?

I use CUSTOM_ID in my documents for internal links. To copy a link, I use org-store-link (C-c l) and then org-insert-link (C-c C-l) to insert the link elsewhere. However, org-insert-link does not ...
NandKN's user avatar
  • 1
0 votes
1 answer
47 views

Is it possible to create an org-link to a custom agenda view?

I'd like to add links to custom agenda commands within org files and other agenda views. I think the answer would likely use org-add-link-type. I also know that you can call a custom agenda view with ...
Max Pfleger's user avatar
0 votes
1 answer
41 views

In org-mode, how do i move to specified column when I move over links?

The function move-to-column does not seem to work in org-mode as expected when I move over links. When I move the cursor using the key shortcuts, the cursor moves over the displayed link as expected. ...
ruby_object's user avatar
1 vote
1 answer
152 views

Org mode link to vlc video with start time in minutes:seconds and possible duration

I am beginning to struggle with organizing my videos. I have screen recordings of conversations with my product owner and would like to have convenient links in my org files that would start the video ...
ruby_object's user avatar
0 votes
1 answer
117 views

Link to pdf file using org-pdftools not working

I am using the following format in my org file [[pdf:file_path.pdf][description]] to link to the file_path.pdf file. When I click on the link I expect the pdf file to open. Instead, I get a dialog box ...
vpk's user avatar
  • 115
0 votes
0 answers
37 views

How to open multiple files from multiple org-links?

* Headline 1 - [[https://orgmode.org/][Org-Mode]] - [[https://www.gnu.org/software/emacs/][GNU Emacs]] * Headline 2 - [[~/tmp/file1.org][First file]] - [[~/tmp/file2.org][Second file]] When the ...
crocefisso's user avatar
  • 1,306
0 votes
1 answer
47 views

C-c C-o org-open-at-point follows òrg file links only with C-u prefix

I store and insert links to .org files or headers with C-c l/C-c C-l (file:XXX/XXX.org or file:XXX/XXX.org::*Header) but when I try to follow them with C-c C-o it is not directly opened in Emacs but a ...
Chamaeleon's user avatar
0 votes
1 answer
62 views

expand org variable value in situ

Is there a way to link to an orgmode variable's value? Or at least export it? I can get a link to jump to the variable definition, but not display its value or export. for example the text in ...
stayfrostypeople's user avatar
0 votes
1 answer
92 views

org-agenda-open-link does not open links in the org-agenda view buffer

Sometimes I use the diary instead of org-mode to add meetings to the org-agenda, and occasionally these include links to emails or websites in the standard org format: [[https://duckduckgo.com][link ...
Ajned's user avatar
  • 734
3 votes
1 answer
424 views

How to follow an internal link in recent org-mode?

Org 9.3. https://orgmode.org/manual/Internal-Links.html -- "A link that does not look like a URL—i.e., does not start with a known scheme or a file name—refers to the current document. You can ...
jamshark70's user avatar
0 votes
1 answer
57 views

How to check if an org (sub)heading is a link to certain file types

I need to check if an org sub(heading) is a link to a file with a certain file type or not (for example only images of type png or jpg. I have no idea how to check if a string links to a file. An ...
my_display_name's user avatar
0 votes
1 answer
75 views

how to change mouseover colors of emacs' org-links?

M-x customize-face RET org-link RET I understand that I can access and change the appearance of links when there's no mouse over them, but I can't find a way to change the background color and font ...
delki8's user avatar
  • 105
1 vote
1 answer
140 views

Associating an org-mode file link to two possible applications when opening it

I've already asked this question here but the context I proposed was maybe too restrictive. Here is what I'm looking for on a more behavioral level. I have configured org-mode to open links with the ...
Laurent Jacques's user avatar
0 votes
0 answers
33 views

two behaviors for org-return-follows-link

In my org-mode config I have activated org-return-follows-link to access links with the return key. For instance, if a link points to a pdf, I have configured org-mode to open it with certain pdf ...
Laurent Jacques's user avatar
0 votes
1 answer
152 views

How to copy either path or url from an org link?

Here I found a solution on how to copy an URL from an org-link. When applied to these two org-link: [[https://emacs.stackexchange.com/][Emacs StackExchange]] [[./path/file.org][An org file]] It will ...
crocefisso's user avatar
  • 1,306
0 votes
1 answer
79 views

How to create an org-link (pointing to an org file) by automatically following a predefined naming scheme?

I'm not yet interested in using Zettelkasten Method to organize my org files. I just use a hierarchical index (index.org). So I don't have the use of packages such as org-roam or denote. However, I'm ...
crocefisso's user avatar
  • 1,306
1 vote
0 answers
24 views

Open links in the nearby window (no splits)

I have a 24 inch display and usually have 2 windows open: |-------+----------------| | Links | Working window | | (30%) | (70%) | | | | |-------+----------------| When I ...
user4035's user avatar
  • 1,059
0 votes
0 answers
44 views

Error in org-mode exported docx when shell command link contains two inverted commas

I have stored a link to a shell command, which contains inverted commas ", and I would like to export it to odt. For example, if I try to export the following link [[shell:TDIR="/home/...
Ajned's user avatar
  • 734
1 vote
0 answers
31 views

Add the ID property of headings as the `name` attribute in the HTML export

E.g., suppose I have this heading: * some heading :PROPERTIES: :ID: 6d4e4087-4b74-4c74-8195-19b4ccd3e8fe :END: I like the exported HTML element to have the attribute name="ID-6d4e4087-4b74-...
HappyFace's user avatar
  • 830
1 vote
1 answer
229 views

In orgmode, how to add html attributes to a link inside a header?

I can add attributes to links like this: #+attr_html: :rel external :target _blank [[http://www.wikipedia.com][reliable source]] Now, I have a link in a header: * DONE Why people talk [[http://www....
onlycparra's user avatar
2 votes
0 answers
43 views

Attaching metadata to Org link abbreviations?

Is there some way to attach metadata to Org link abbreviations? Something like: #+LINK: Example https://example.com [metadata about link] For example, date linked, a rating, a reason the link exists,...
stu002's user avatar
  • 85
0 votes
1 answer
110 views

How to use link abbreviations in external Org files?

I've been using Org's handy link abbreviation feature in Org documents: #+link: Google https://google.com/ * Test Org Links Here's an abbreviated link: [[Google][This is Google search]]. Which ...
stu002's user avatar
  • 85
0 votes
1 answer
662 views

Org capture template with org-store-link

I would like to create an org-capture template such that when I select it with org-capture (which is mapped to C-c c for me), I want the capture template to ask me for the description and URL of a ...
Zoli's user avatar
  • 421
0 votes
1 answer
83 views

How to create a non-existing subheader in another local org file from a link?

Let's say I have this in my games.org file: * Games I own ** Adventures *** Adventure - Police Quest *** Adventure - Mixed-Up Mother Goose And I want to link to the Adventure - Mixed-up Mother Goose ...
fegax's user avatar
  • 45
5 votes
0 answers
119 views

org-mode - how to ignore link syntax inside of src blocks?

The link syntax [[link]] is parsed as an org-link inside of a source block, as shown in the code and figure below, where my mouse if placed on top of [[2]]. #+begin_src emacs-lisp [[2]] #+end_src ...
Daniel's user avatar
  • 3,653
0 votes
2 answers
105 views

org-link: create a link to marked region of text

I want to create links to marked regions of text inside org files. if I use C-c l the active region is ignored; only the heading is stored. How can I create a link to a region of text? I use org-mode ...
space_held's user avatar
1 vote
1 answer
250 views

How to use the headline numbering for links in org-num-mode

I use org-num-mode to have headlines with a numbering 1.1.1 or 1.2.1... etc When I use org-insert-link, I want the default description to be this number. For now, it is the text in the headline but I ...
TMat's user avatar
  • 95
1 vote
1 answer
101 views

Orgmode link description without https

I would like to have a capture template that would take a pasted link like: https://orgmode.org/manual/Completion.html and return: [https://orgmode.org/manual/Completion.html][orgmode.org/manual/...
fred's user avatar
  • 13
1 vote
1 answer
559 views

How to open a file (from an org link) within current window?

When I do C-c C-o on an org link it opens the org file in a new window. This is fine, but sometimes I'd prefer to open org files within the current window, creating a new key binding for the matter (...
crocefisso's user avatar
  • 1,306
1 vote
1 answer
35 views

How can I prevent Orgmode from opening links to `*.jot` files using GNU `less`

When I open a link in Emacs Orgmode to a *.txt or *.org file, the files are opened in a new Emacs buffer. However, I have a self-created set of plain-text *.jot files. If I open an otherwise ...
AstroFloyd's user avatar
0 votes
2 answers
222 views

How to automatically build org links from an org-contacts contact?

Let's say I have the following contact in my org-contacts org file : * John Doe :PROPERTIES: :EMAIL: [email protected] :PHONE: +44 20 7630 2400 :COMPANY: Ubuntu :NOTE: :END: How ...
crocefisso's user avatar
  • 1,306
1 vote
1 answer
247 views

org-link-open fails with Wrong number of arguments: (1 . 1), 0

I recently added a config entry to my ./doom.d/config.el to enable Firefox as a default browser for opening links. Below is the entry I added based on this post. ;; Set specific browser to open links ...
hypothesisusable's user avatar
0 votes
1 answer
96 views

Customising org-mode link click behaviour

My current (default) behaviour when click a [[link]] in org-mode is for Emacs to search a matching heading. However, I wanted to redefine this behaviour to open a file called link.org. That is, for ...
Rui Vieira's user avatar
1 vote
1 answer
269 views

How do you copy text with hyperlinks (text is not the link, the link is embedded (href style)), with the links into org mode?

I am copying text from a browser (from an email) which has hyperlinks such as link text - but the links do not get hyperlinked as in the email. I just see 'link text' when I paste to my org file. How ...
piedpiper's user avatar
  • 111
2 votes
1 answer
908 views

org-link to the exact page-position in a pdf file

Newest EDIT I think my question wasn't very clear, so I'm trying to put some details. With pdf-tools opening pdf files withing Emacs (PDFview buffers) works great. What I like is to get an org-link ...
rl1's user avatar
  • 356
2 votes
1 answer
267 views

nov.el follow link to .epub in other window instead of having a new buffer in the same window

When I try to follow a link [[nov:path/to/epub/ebook.epub][link]] in nov-mode (defined in nov.el) under Doom Emacs, it always opens the file on a new buffer, replacing the org file where the link sits ...
Sati's user avatar
  • 795
3 votes
1 answer
169 views

Disable 'beautification' of text when point is on same line in org

When writing org documents, some parts of the text (like links and figures) automatically get 'beautified' (I'm unsure what the technically correct term is), meaning that some surrounding text ...
n0542344's user avatar
  • 185