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
1answer
42 views

org mode open link in browser directly

Suppose, we have a link [[https://www.google.com/][Google]]. When I put the cursor at the link and run org-open-at-point, instead of opening https://www.google.com/ in browser it downloads the page to ...
0
votes
0answers
23 views

Find broken links and unused IDs

I extensively use links to refer to different org files/ headings. All my links are created using IDs. But it might happen that in the course of work, some links might get broken --- the reference is ...
0
votes
0answers
7 views

Refile and selectively leave a link behind

The solution here leaves a link to the refiled heading behind. Can that be made selectively on the fly? So, for some refiles, a link is left behind; for some others, it is not. And one can decide ...
2
votes
1answer
18 views

Why does `next-error` change my buffer as keyboard macro, but not in lisp code?

My goal is to use grep to find other Org files, use next-error to switch to those files, copy the link to the grep match, then go back and paste that link. It worked for a long time as a macro, but ...
0
votes
1answer
41 views

Insert link to a heading with ID

Running Doom Emacs 2.0.9 on Emacs 27.1. In an org file, I have: * First heading :PROPERTIES: :ID: 89f7215b-60b1-45c8-8262-b0e10db18f4c :END: * Second heading I got that ID by using org-id-...
0
votes
0answers
9 views

How can I tell emacs to choose the 'right' link function from `org-store-link-functions` based on the mode it was triggered in

Whenever I want to capture a link from a PDFView buffer with org-store-link, I get prompted for the link type I wish to apply ("Which function for creating the link? "), with two choices: ...
0
votes
0answers
27 views

How to link checkboxes in Org Mode

* Core - [X] CS 501 - [X] CS 502 - [X] CS 503 - [ ] ORG 601 [Fall 2021] - [ ] ORG 602 [Fall 2021] - [ ] ORG 603 [Fall 2021] * Schedule ** Spring 2021 - [X] CS 501 - [X] CS 502 - [X] CS 503 ** Fall ...
0
votes
0answers
31 views

org-roam not using properties drawer id links

The org-roam docs say: Links to headlines can be inserted by navigating to the desired headline and calling org-store-link. This will create an ID for the headline if it does not already exist, and ...
2
votes
1answer
59 views

Changing the default binding to open a link in an org mode file using RET

To open a link in an org-mode file one normally types C-c C-o. I find this rather cumbersome. I would like to rebind the command org-open-at-point to RET but only when the cursor rests on the link. I ...
0
votes
0answers
44 views

Why does my org-link-beautify extension generate many timers?

I wrote an extension org-link-beautify. It uses text properties to display all-the-icons icon for links. When I use list-timers, I found many timers like this: UPDATED of command list-timers (show ...
0
votes
0answers
26 views

Link broken in inline comment

[[link]]@@comment:[[link]]@@ # [[link]] * link I get the message "No Link Found" when clicking on the [[link]] within the inline @@comment:[[link]]@@. The link works fine with emacs -Q, ...
0
votes
1answer
21 views

Replace org link description with org link output (shell type)

I've stored several links to various shell commands and I would like to update each link description with the output of the correspoding shell command. For example: View in text-mode: [[shell:echo &...
2
votes
1answer
56 views

Replace existent link in org-mode with org-stored link

Assume that I have a hyperlink to a file in org-mode - [[file:~/Documents/one_document.txt][this is a link to one file]] And then for some reason I want to update the linked file to some other file ...
1
vote
3answers
97 views

Is there a way to create an org-mode link that opens help?

For example: * Purpose Keep some notes to elisp functions. [[link:elisp-func][elisp-func help]] I want to open the link via C-c C-o which would show a buffer with help as though I had ran instead: C-...
1
vote
0answers
34 views

Autocomplete when editing file links

When I insert a link into an org-file using C-c C-l (Doom Emacs, if that matters) and select file:, it show me the files in the current directory to autocomplete from. However, when editing such a ...
2
votes
1answer
84 views

Open a wildcard-link directly rather than through dired

In Org mode, when I open a link (C-c C-o) to a file such as file:something.pdf, the file is opened with my system PDF viewer. However, if the link contains a wildcard, such as file:3_o*.pdf, Emacs ...
0
votes
0answers
29 views

Why is Org mode converting spaces in links to HTML entities?

I store a link such as [[file:~/path/to/dir/some file.txt::# heading]], either manually or through org-capture. A few days later, Org has converted all spaces to the HTML entity %20: [[file:~/path/to/...
0
votes
1answer
34 views

Link to footnote export as non-superscript

Links to a footnote automatically exports as superscript in LaTeX. Source: Lorem ipsum dolor sit amet, consectetur adipiscing elit. [fn:1685d75dd9ccdec5: This is a footnote.] In sed erat porta, ...
1
vote
1answer
75 views

Efficient way to insert multiple file links (residing in the same directory) into a org file with helm

Suppose I edit an org-file, say /foo/bar/file.org and I want to insert links to multiple files living in another path, say /another/path/to/files/. A stupid way to do this would be to call helm-find-...
1
vote
1answer
82 views

org-mode: specifying a hyperlink target as regex and jumping directly to match?

The documentation of a Fortran code, being done in org-mode, is intended to be done in such a way that changing the Fortran source code to be documented should be kept at a minimum. There is the ...
0
votes
1answer
70 views

How to set width for subfigures inside a table in a org-mode file?

I'd like to use subfigures in org-mode files. In MS Word, this could be easily done by inserting the subfigures of a figure into a table with invisible borders. Then the size of each subfigure can be ...
1
vote
1answer
30 views

org export interanl [[links]] to keep link text

When exporting a document such as: * Title Link to [[Title]] The link text is converted to the section number. I.e. 1. Title Link to 1 Is there a way to keep the link text e.g.: 1. Title Link ...
1
vote
1answer
34 views

Automatically open headline on internal link

The following example implements an internal link to a headline: * Heading1 - Important facts * Heading2 - Jump to [[*Heading1][Link]] When following/opening the "Link" with C-c C-o, point moves to "...
1
vote
0answers
35 views

org: Internal link with automatically updating description, is it possible?

I use the CUSTOM_ID property for internally linking to headers. When I insert a link somewhere, I can either: leave its description empty, which results in the buffer showing #<id>; or put the ...
0
votes
0answers
158 views

Drag and drop a file to org buffer to insert a link to this file

On Windows it is possible to create a link holding the Meta (Alt) key while dragging a file. Is it possible to create a link to a file when it is dragged from an Explorer over to emacs holding the ...
3
votes
2answers
99 views

Package that links words as they are typed to existing org-files/-headers?

A silly question. I try to link my org-files more closely together. I looked into org-roam and org-brain but i'm not convinced that these packages provide what i have in mind (haven't tested it). As ...
1
vote
0answers
42 views

Linking source file in org mode with specific revision

I need org-mode version of links like this https://github.com/emacs-mirror/emacs/blob/cd2c1561636597c67edbf3daf10388e5385a93fc/etc/NEWS#L1119 for local files inside local repo. A way to specify not ...
1
vote
0answers
59 views

How to suggest org-link description when completing?

I have a custom org link created using org-link-set-parameters. If I use org-insert-link and complete it will use the :complete function from the parameters to get the link. However I haven't found a ...
0
votes
0answers
16 views

Fontify broken url link in org-mode & HTTP 443 error

It's known that we can fontify broken file link as discussed here, but If I do something similar concerning broken url link... (defun org--url-face (url) "Define a dynamic face for url links." (...
0
votes
0answers
27 views

How to create plain text links or string variables that is displayed as its value in the buffer?

In my org-mode documents I want to be able to write: #+VAR: that_year=2020 and then somewhere in text use it like: "And [[var:that_year]] we are going to..." which should be interpreted and ...
2
votes
2answers
96 views

In Org mode how to link to a specific line or keyword in a Help or Texinfo page?

For example, I want to create a link pointing to line 16 or the start of the first found keyword "binding" in the projectile mode help page ([[help:projectile-mode]]). I tried the double colon format ...
0
votes
1answer
110 views

Alternate citation with Org-Ref

I am used to manage my bibliography with org-ref and I am very satisfy with it. Nevertheless, in the context of a grant proposal writing, space is limited. So I would to save the space allowed to ...
1
vote
0answers
53 views

org-link-open: Wrong number of arguments: (2 . 2), 1

lately I am often given this error, .e.g. when trying to open pdf files within Emacs. the stack trace reads Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1) org-docview-open("...
0
votes
0answers
43 views

Internal and External link search broken in org 9.3

Links seem to be broken in org-mode 9.3 [[link-to-text]] [[*link-to-heading]] [[file:path/to/file::*heading]] [[file:path/to/file::search-string]] The following searches all bring point to the ...
0
votes
1answer
21 views

How to make org file type link search work with numbers?

I am trying to using a link to jump to a number in another org file. Searching for keyword numbers works for internal links but does not when searching in a different file. It works with words but not ...
0
votes
2answers
388 views

Open file in orgmode with external application. Check if file exists and create file from template if necessary

I want to create a file with org-open-at-point from a template if that file does not exist. If it exists, I want to open it in an external app. In org-mode, file-links are created by [[file:path-to-...
1
vote
1answer
108 views

org-mode: link to tag/target inside a source code block

I'd like to place a link to a tag or target inside a source code block. #+BEGIN_SRC emacs-lisp (use-package evil :ensure t :config ; enable per default (evil-mode ...
3
votes
0answers
46 views

Add a source reference to org blocks

During research, I often cite a passage from some website, a local document or org file. For context and later use, I always add the source reference after the block: * Public transport ** Bus Buses ...
0
votes
0answers
65 views

org-mode “prettifies” URL links, but not file links

The org-mode documentation says that Once a link in the buffer is complete, with all brackets present, Org changes the display so that ‘DESCRIPTION’ is displayed instead of ‘[[LINK][DESCRIPTION]]’ ...
2
votes
1answer
107 views

Org Mode use radio target for Chinese Texts

Radio targets in org-mode work by recognizing spacing between words. This makes the function redundant in when work wth Chinese and Japanese texts. I discovered an interesting function in ol.el with ...
1
vote
0answers
72 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 separated ...
0
votes
1answer
46 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
59 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 ...
3
votes
1answer
311 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
145 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
165 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
115 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
1answer
226 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
161 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
57 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 ...