Skip to content
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

[feature] add the 3rd method to insert the file path #152

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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