How to created or update to relative links

Asked by Randal J. Hoffner

I’ve been using RedNotebook 1.13 in a portable mode for some time now (great program by the way) and I have all of my linked files and pictures saved in a separate folder. A new computer upgrade requires changing the location of my RedNotebook directory – which breaks all of my linked files.

I’ve found past questions that reference this issue, but nothing that is very detailed. Is there any help file or other material that can answer the following questions.

1) When entering a new link into RedNotebook I have been using the “Insert” button – which creates only absolute links – as far as I can tell. How can a “relative” link be created instead?

2) Since I now have many broken links is there any way to “automatically” update the broken links and change them to “relative” links? I do have a text editor that will find and replace anything in a text file and I can probably figure something out, but I don’t want to “reinvent the wheel” if I don’t have to.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#1

1) Relative links are planned for a future version.

2) There's no search-and-replace functionality (and no way to update
links) inside RedNotebook, but you can edit your journal files with an
external program. Make sure to create a backup first, though.

Revision history for this message
Randal J. Hoffner (rhoffner) said :
#2

Before I asked about this I researched everything that I could, and in the quoted message below from 2013 there is an indication that "relative" links were added way back in version 1.7.

What am I missing here? I'm not a programmer and I don't understand the lingo, which is why I asked for any help files that would explain how to add "relative" links.

I'm trying to understand your reply in light of this past exchange from 2013. Are you saying that:
1) Relative links do work in RedNotebook.
2) There is no help file or information on how to create relative links in RedNotebook (so you must understand basic programming to use them)
3) In the future there will be a feature that will allow non-programmers to add relative links from within the RedNotebook interface.

The above is how I (as a non-programmer) am interpreting your answer to my question. Have I read between the lines correctly?

Thanks again,

Randy Hoffner

"schattenhueter (schattenhueter) wrote on 2013-03-05: #12
Test with RedNotebookPortable 1.7.1 on WinXP.
Relative links work fine now. I tested the following cases:

1. Files in the notebook directory
2. Files in subfolders of the notebook directory
3. Accessing files with ..\<folder>\<file>
4. Images at the notebook directory
5. Images in subfolders of the notebook directory
6. Accessing images with ..\<folder>\<image>

Jendrik Seipp (jendrikseipp) wrote on 2013-03-05: #13
Thanks for your tests! The next step will be to allow users to copy the
files relatively when inserting them.

Naim Zard (naimzard) wrote on 2013-03-27: #14
Hi Jendrik,
The relative path is enough. No need to have Rednotebook copy all the files to a subdirectory.
If someone cares about keeping the relative path, then they can easily create a folder and put in it their media files.
They even can separate them in different folders and sub-folders as they wish, ex: Audio, Text, Images etc.
What do you think?

Jendrik Seipp (jendrikseipp) wrote on 2013-04-03: #15
That's true, however an option (not the default) should be added.
Otherwise nobody will notice the new feature."

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#4

Sorry, for the question slipped under my radar. As far as I remember, you're right with your conclusions:

1) Relative links do work in RedNotebook.
2) There is no help file or information on how to create relative links in RedNotebook (so you must understand basic programming to use them)
3) In the future there will be a feature that will allow non-programmers to add relative links from within the RedNotebook interface.