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? > + ('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 for your work.