(setq model (vc-checkout-model backend only-files-list))))
(list backend files only-files-list state model)))
+;;;###autoload
+(defun dired-yank (target)
+ (interactive (list (dired-current-directory)) dired-mode)
+ (let ((files (split-string-and-unquote (current-kill 0))))
+ (dolist (file files)
+ (unless (file-name-absolute-p file)
+ (user-error "Found non-filename in top of kill-ring"))
+ (message "Pasting file %s..." file)
+ (dired-copy-file file target 0)
+ (dired-add-file (expand-file-name (file-name-nondirectory file)) dired-marker-char))
+ (message "Pasted %d files from clipboard" (length dired-clipboard))))
+
\f
(provide 'dired-aux)
"<remap> <undo>" #'dired-undo
"<remap> <advertised-undo>" #'dired-undo
"<remap> <vc-next-action>" #'dired-vc-next-action
+ "<remap> <yank>" #'dired-yank
;; thumbnail manipulation (image-dired)
"C-t d" #'image-dired-display-thumbs
"C-t t" #'image-dired-tag-files