[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @
From: |
Visuwesh |
Subject: |
Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @ /home/viz/lib/emacs/straight/build/org/)] |
Date: |
Sun, 01 Oct 2023 19:58:18 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
[வெள்ளி செப்டம்பர் 29, 2023] Liu Hui wrote:
> Hi,
>
> 在 2023/9/27 16:29, Visuwesh 写道:
>
>> +*** Files and images can be attached by dropping onto Emacs
>> +
>> +Attachment method other than ~org-attach-method~ for dropped files can
>> +be specified using ~org-dnd-default-attach-method~.
>
>> +(defcustom org-dnd-default-attach-method nil
>> + "Default attach method to use when DND action is unspecified.
>> +This attach method is used when the DND action is `private'.
>> +This is also used when `org-yank-image-save-type' is nil.
>> +When nil, use `org-attach-method'."
>
> I think the dnd feature should not be restricted to org-attach. I have
> often used it for opening file and inserting file link. How about
> supporting them and adding a new variable, such as
> org-dnd-default-method?
Thanks for your feedback. Do you think asking during the time of drop
would be a viable option too? I'm thinking of adding the defcustom
org-dnd-default-method with options such as
. attach -- as implemented here
. open -- open file
. file-link -- insert file links
. ask -- ask what to do after drop
I think the `ask' option would be nice to have too. Perhaps, even as
the default?
>> + ('ask (caddr (org-mks
>> + '(("c" "Copy" cp)
>> + ("m" "Move" mv)
>> + ("l" "Hard link" ln)
>> + ("s" "Symbolic link" lns))
>> + "How to attach?"
>> + "Attach using method")))
>
> It is better to pop up a menu that allows users to proceed with the
> mouse, e.g. that in `dired-dnd-do-ask-action'. Options like
> 'open'/'file link' could be added too.
Thanks, I will go back to using rmc then. It shows a nice dialog box
when you use the mouse.
> Thanks for your work.
- Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @ /home/viz/lib/emacs/straight/build/org/)],
Visuwesh <=