-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths and option to copy pictures and linked files into data directory #163
Comments
Original comment by jendrikseipp (2011-09-21T13:10:22Z): Thanks for the report. It is planned to copy all linked files into a |
Original comment by patrick-kudos (2011-09-21T13:42:29Z): Hi Jendrik, Great to hear :-) Regards, Patrick. |
Original comment by jendrikseipp (2012-12-26T14:43:46Z): Recently a new feature has been added that allows adding links relative to the journal directory: [My notes from december ""2012-12.txt""] [A file in the journal directory ""myfile.pdf""] |
Original comment by patrick-kudos (2012-12-28T08:25:36Z): Using RN 1.6.5: the relative link option does not work for inserted images, only files. It makes sense to support it for both types. |
Original comment by jendrikseipp (2012-12-28T10:36:36Z): Could you please post an example link that doesn't work |
Original comment by patrick-kudos (2012-12-28T11:10:55Z): Here are some examples. The first one works (it displays the picture inlines, the other ones do not: [""file:///C:\Users\patrivdv\Documents\Journals\Dummy\sample-4"".jpg] [""sample-4"".jpg] [""sample-4.jpg""] [test ""sample-4"".jpg] [test ""sample-4.jpg""] in Preview mode it looks like: |
Original comment by jendrikseipp (2012-12-28T12:20:37Z): Thanks, I forgot to handle images... |
Original comment by jendrikseipp (2013-01-11T10:57:48Z): This is now fixed in the development code. |
Original comment by jamato-krym (2013-02-04T20:11:50Z): I am using version 1.6.6 [test.txt ""file:///full_path_to_diary_folder/files/test.txt""] work in Ubuntu [test.txt ""files/test.txt""] work in Ubuntu but relative link to image work in Windows: |
Original comment by patrick-kudos (2013-02-19T12:42:49Z): I can confirm this behaviour Windows 7 also: relative paths to images work now, but it is broken to ordinary files. Can this be fixed because it used to work! |
Original comment by jendrikseipp (2013-02-28T01:26:06Z): Relative links should now work on windows (at least in unreleased dev version). |
Original comment by entrup (2013-03-05T14:29:46Z): Test with RedNotebookPortable 1.7.1 on WinXP.
|
Original comment by jendrikseipp (2013-03-05T15:09:31Z): Thanks for your tests! The next step will be to allow users to copy the |
Original comment by naimzard (2013-03-27T10:06:38Z): Hi Jendrik, If someone cares about keeping the relative path, then they can easily create a folder and put in it their media files. What do you think? |
Original comment by jendrikseipp (2013-04-03T20:50:09Z): That's true, however an option (not the default) should be added. |
Original comment by dseifert (2013-07-24T09:26:14Z): Though relative links are supported, they are not added automatically. I.e. I copy all files I want to be part of my journal into the journal directory, but when I insert any of them they are added as relative. Wouldn't it be a sensible idea to have RNB detect that a file is within the journal directory (data_dir) and convert to a relative link automatically? |
Original comment by l-t (2015-06-07T15:04:09Z): Hi there, and sorry if I dig out this old feature request. Having Rednotebook copy all drop down files to data directory is an essential feature in my eyes! I think, it has been agreed on, that having relative links is good, in order to make RB "portable" between different (file) systems. But as long as there is no easy way to sync all media data included with the journal, this is essentially useless and not user friendly. Longer explanation: As the journal is grouped by month, I would suggest to do the same for the media data. For every yyyy-mm.txt there should be a yyyy-mm folder where media goes to (if files are present). This way it would be easy to share/sync/archive/work on parts of the total journal. Of course there should be options in the config-menu, where I can select the default behaviour. Optional a question box on drag&drop would be good (like "always ask what to do"). It is my hope, that I could convince you, that saving drag&drop files to the data directory and adding symbolic links, would be an essential addition to RB! As you proposed this feature in reply 1, it is my feeling, that you are aware that this addition would make your program interesting for a wider audience. |
Let me try to sum up the status of this issue. It has been a while since I last worked on this, but I'm fairly certain that most of the work for the relative paths is done. The main remaining work items are
Regarding 1., I like the solution proposed in the last comment: "For every yyyy-mm.txt there should be a yyyy-mm folder where media goes to (if files are present). This way it would be easy to share/sync/archive/work on parts of the total journal." Regarding 2., the relevant code is in I agree with the last commenter that copying files into the journal should be the default and would go so far as to say that we don't need the old behaviour of linked files and pictures outside the journal anymore. |
Thanks |
It's probably a good idea to add a method
|
I am interested in working on this. Has there been any progress since the last comment? |
@ruhugu that's awesome! There hasn't been any progress on this since my last two comments above. Please don't hesitate to ask if you need help. |
@ruhugu Could you make progress? Anything I can help you with? |
hi, just wanted to check on the status of this one @jendrikseipp, anything I can help with to move @ruhugu patch forward? |
Any progress on this feature? |
There's a pull request, but it needs to be updated. As far as I know, nobody is currently working on this. Would be cool if somebody would continue the work on this. |
Originally reported by patrick-kudos at https://bugs.launchpad.net/bugs/855443 (2011-09-21T11:05:21Z):
Currently it is not possible to "migrate" a journal to a different location on your harddrive without loosing the correct link information to pictures and files. If you insert a picture and/or file, an absolute path is inserted into the journal source text.
Would it not be possible to:
Regards,
Patrick.
The text was updated successfully, but these errors were encountered: