Tapatalk

Markdown files with links, can I open the linked file in the editor?

Markdown files with links, can I open the linked file in the editor?

9
NewbieNewbie
9

Post22:32 - Mar 29#1

I have two markdown files:

project/
  • 01/
    • file-1.md
  • 02/
    • file-2.md
In file-2.md, I have a reference to file-1.md.

Code: Select all

[file-1](../01/file-1.md)
I would like to click on that link and have file-1.md open in the editor as VS Code and other editors do.

I can get some of this by using the Live Preview, which shows me the contents of file-2.md with highlighting, links, etc.

However, when I click on file-1, file-1.md does open in the Live Preview but it is read-only. I would like it to open in the editor so I can edit it. Is that possible?

6,823625
Grand MasterGrand Master
6,823625

Post6:41 - Mar 30#2

Yes, it is possible to open file-1.md referenced in file-2.md whereby it does not matter if the active file is a Markdown file and the reference is a link in Markdown syntax. The feature to open a referenced file for editing works with any type of text file with any type of file reference.

Just right click somewhere on the file reference ../01/file-1.md for opening the context menu and UltraEdit displays at top of the document window context menu Open "absolute file name of the referenced file". Left click on that context menu item and the file is opened. That works also for URLs whereby the URL is opened in favorite browser.

This feature can be used also with the keyboard. Open Advanced - Settings or Configuration - Key mapping, scroll down in the list of Commands to the command Open file/URL under cursor and assign a hotkey like Alt+Shift+O or chord to this command.

That feature is explained on the help page with the title Right Mouse Button Commands which can be opened from the Index tab of the help.