Re: Move or rename a file in a link

2022-03-22 Thread João Pedro de Amorim Paula
On 19 March 2022 11:25, Juan Manuel Macías wrote: > #+begin_src emacs-lisp > (defun my-org-rename-link-file-at-point () > (interactive) > (let* ((curr-dir (if (equal (org-element-property :type > (org-element-context)) "attachment") >(concat (abbreviate-file-nam

Re: Move or rename a file in a link

2022-03-19 Thread Juan Manuel Macías
Hi João, João Pedro de Amorim Paula writes: > I mean org attachments. I use org-attach extensively to store documents > with notes. So I'd have a heading like so > > * Documents > :PROPERTIES: > :DIR: data/docs/ > :END: > > - [[Registration][attachment:registration.pdf]] :: My registration. > > A

Re: Move or rename a file in a link

2022-03-18 Thread João Pedro de Amorim Paula
On 10 March 2022 14:58, Juan Manuel Macías wrote: > Hi João, Thanks for your comment. Hello, Juan! I apologize for the delay on responding, I had some issues with my e-mail account lately. > Regarding attachments, do you mean org attachments or email attachments? > Could you give an example of

Re: Move or rename a file in a link

2022-03-10 Thread Juan Manuel Macías
Hi João, Thanks for your comment. João Pedro de Amorim Paula writes: > Thanks for sharing! It'd be great if it worked for attachments as well, > but that is a whole can of worms. Regarding attachments, do you mean org attachments or email attachments? Could you give an example of a use case? Be

Re: Move or rename a file in a link

2022-03-09 Thread João Pedro de Amorim Paula
On 05 March 2022 19:58, Juan Manuel Macías wrote: Hello Juan! > Hi all, > > I have written this simple function to move or rename a destination file > in an external link at point. I share it here in case it is useful to > someone. > > Best regards, > > Juan Manuel > > #+begin_src emacs-lisp >

Re: Move or rename a file in a link

2022-03-06 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: Hi Juan Manuel > Hi all, > I have written this simple function to move or rename a destination file > in an external link at point. I share it here in case it is useful to > someone. Thanks, that looks very useful, I tend to reorder files in subdirector