[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: New source block results option for attaching file to no
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] Re: New source block results option for attaching file to node |
Date: |
Sun, 05 Sep 2021 21:22:05 +0800 |
Ryan Scott <ryan@vicarious-living.com> writes:
> It might make sense to fix up inserted "file:" links that are under the
> attachment directory to be "attachment:" style links by default anyway, no?
> Then just being able to set the working directory to the attachment
> directory easily would get the rest of the way there.
I am not sure. If the user explicitly states that :dir is the attachment
dir, it would make sense. However, what if the :dir is set explicitly
like below?
* Headline
:PROPERTIES:
:DIR: /actual/literal/path/to/attachment/dir
:END:
#+begin_src emacs-lisp :dir /actual/literal/path/to/attachment/dir
...
#+RESULTS:
attachment:...
The results will be indeed inside the attachment directory. However, the
:DIR: property may be changed at some point and the existing attachment:
link will not point to real file.
> So I suppose that would then mean having the :dir header accept the symbol
> `attach' or something like that?
> I'll play around and see what that looks like.
The above example should lead to more expected behaviour if the user
explicitly states that :dir is the attachment dir (even if it is going
to be changed in future):
* Headline
:PROPERTIES:
:DIR: /actual/literal/path/to/attachment/dir
:END:
#+begin_src emacs-lisp :dir 'attach
...
#+RESULTS:
attachment:...
Best,
Ihor
- Re: New source block results option for attaching file to node, Ihor Radchenko, 2021/09/01
- Re: New source block results option for attaching file to node, Ryan Scott, 2021/09/01
- [PATCH] Re: New source block results option for attaching file to node, Ryan Scott, 2021/09/02
- Re: [PATCH] Re: New source block results option for attaching file to node, Greg Minshall, 2021/09/02
- Re: [PATCH] Re: New source block results option for attaching file to node, Ihor Radchenko, 2021/09/02
- Re: [PATCH] Re: New source block results option for attaching file to node, Ryan Scott, 2021/09/02
- Re: [PATCH] Re: New source block results option for attaching file to node,
Ihor Radchenko <=
- Re: [PATCH] Re: New source block results option for attaching file to node, Ryan Scott, 2021/09/05
- Re: [PATCH] Re: New source block results option for attaching file to node, Ryan Scott, 2021/09/09
- Re: [PATCH] Re: New source block results option for attaching file to node, Timothy, 2021/09/10