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
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 ...
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 ...
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
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
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.
0
votes
1answer
18 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
28 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
21 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
35 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
39 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
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
56 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
1answer
187 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
67 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
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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
31 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
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
402 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
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 ...
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
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
0answers
85 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
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 ...
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 [[...
3
votes
1answer
163 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
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 ...
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
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-...
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 ...
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
1answer
127 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 ...
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?
0
votes
1answer
251 views

org-return-follows-link with org-wikinodes?

I've noticed that placing (setq org-return-follows-link t) in your init.el has no effect on links created by org-wikinodes.el. When you hit (or RET), it just cuts the link in half... One point to ...
8
votes
1answer
709 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
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 ...
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?
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 ...
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 ...