Skip to content

Conversation

@randomwangran
Copy link

Instead of using full path /home/a-user-name/clip/xxx.png

Now, the user can have a choice to set the inserted filename as ~/clip/xxx.png.

This is convenient for multiple computer users.

For user reference, once this feature is approved, then the user can
add the following code to user's .emacs file.

(setq org-download-abbreviate-filename-function #'org-download-return-path-relative-to-home)

Instead of using full path `/home/a-user-name/clip/xxx.png`

Now, user can can have a choice to set inserted filename as `~/clip/xxx.png`.

This is convenient for multiple computer users.

For user reference, once this feature is approved, then the user can
add following code to user's `.emacs` file.

```
(setq org-download-abbreviate-filename-function #'org-download-return-path-relative-to-home)
``
@randomwangran
Copy link
Author

Just a friendly reminder.

I have some trouble when pasting an image to a child folder of org-download-image-dir. In this case, the user would see something like this:

../../../xxx.png.

This will be problematic if the user decides to refile the file.

This PR aimed to get rid of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant