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

Inserting image without polluting PROPERTIES? #18

Open
w3bdev1 opened this issue Jul 17, 2021 · 2 comments
Open

Inserting image without polluting PROPERTIES? #18

w3bdev1 opened this issue Jul 17, 2021 · 2 comments

Comments

@w3bdev1
Copy link

w3bdev1 commented Jul 17, 2021

I insert image as per the path in org-attach-screenshot-dirfunction.

But after every insertion, it adds following PROPERTIES under the heading,

:PROPERTIES:
:ATTACH_DIR: ../_resources
:END:

... which seems unnecessary and polluting in my opinion.
Is there a way to avoid it?

Btw this plugin is very helpful. Thanks for making it.

@dfeich
Copy link
Owner

dfeich commented Aug 13, 2021

Sorry for answering so late. I had had a short look at that time, but then got sidetracked...
This separate entry is triggered by this line in the code.

(org-entry-put nil "ATTACH_DIR" funcdir)

The property is only inserted in the section if it is not yet set within the current context, e.g. by an inherited entry from the above section or from a global settting. In my own documents I always use (actually I generate it through yast) a setting in the header that configures the same path as my user function...

#+PROPERTY: ATTACH_DIR /tmp/test-att

I could introduce a switch variable for you where one could configure whether the Property should be put into the section for the normal case or not. That probably would be a clean solution.

@w3bdev1
Copy link
Author

w3bdev1 commented Sep 26, 2021

Yeah a switch variable will be solution. Thanks

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

No branches or pull requests

2 participants