summaryrefslogtreecommitdiff
path: root/etc/ORG-NEWS
diff options
context:
space:
mode:
authorVisuwesh <visuweshm@gmail.com>2023-09-22 20:11:41 +0530
committerIhor Radchenko <yantar92@posteo.net>2023-12-10 16:04:02 +0100
commitb77f991c02ace5b62026a2f38eb5c16f9a161be6 (patch)
treed47c75678a360afc57cead08a0f042f4cdb7e145 /etc/ORG-NEWS
parentb1cb3b724a17320f631f4e7ed86d0fee7fbbf686 (diff)
downloadorg-mode-b77f991c02ace5b62026a2f38eb5c16f9a161be6.tar.gz
Add support for yank-media and DND
* lisp/org.el (org-mode): Call the setup function for yank-media and DND. (org-setup-yank-dnd-handlers): Register yank-media-handler and DND handler. (org-yank-image-save-method, org-yank-image-file-name-function) (org-yank-dnd-method, org-yank-dnd-default-attach-method): New defcustoms. (org--image-yank-media-handler, org--copied-files-yank-media-handler) (org--dnd-rmc, org--dnd-multi-local-file-handler) (org--dnd-local-file-handler, org--dnd-attach-file, org--dnd-xds-method) (org--dnd-xds-function): Add yank-media and DND handlers. * doc/org-manual.org: (Drag and Drop & ~yank-media~): Describe the new feature in the manual. * etc/ORG-NEWS: Advertise the new features.
Diffstat (limited to 'etc/ORG-NEWS')
-rw-r--r--etc/ORG-NEWS24
1 files changed, 24 insertions, 0 deletions
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 59c45b2..9328f33 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -700,6 +700,30 @@ Maxima's graphics packages (~draw~ or ~plot~); the default remains
~plot~. The graphics terminal is now determined from the file-ending
of the file-name set in the ~:file~ header argument.
+*** Images and files in clipboard can be pasted
+
+Org asks the user what must be done when pasting images and files
+copied to the clipboard from a file manager using the ~yank-media~
+command. The default action can be set by customizing
+~org-yank-dnd-method~. The ~yank-media~ command was added in Emacs
+29.
+
+Images can be saved to a separate directory instead of being attached,
+customize ~org-yank-image-save-method~.
+
+Image filename chosen can be customized by setting
+~org-yank-image-file-name-function~ which by default autogenerates a
+filename based on the current time.
+
+*** Files and images can be attached by dropping onto Emacs
+
+By default, Org asks the user what to do with the dropped file like
+for pasted files. The same user option ~org-yank-dnd-method~ is
+respected.
+
+Images dropped also respect the value of ~org-yank-image-save-method~
+when ~org-yank-dnd-method~ is =attach=.
+
** New functions and changes in function arguments
*** ~org-fold-hide-drawer-all~ is now interactive