Skip to content

Instantly share code, notes, and snippets.

@andiogenes
Created August 8, 2025 11:04
Show Gist options
  • Select an option

  • Save andiogenes/c8eac97517db202383cd0df5687fbd27 to your computer and use it in GitHub Desktop.

Select an option

Save andiogenes/c8eac97517db202383cd0df5687fbd27 to your computer and use it in GitHub Desktop.
Copy full path of file with W in Dired
;; Copy full path of file with W
(defun arx/dired-copy-full-filename-as-kill ()
(interactive)
(let ((name (or (dired-get-subdir) (dired-get-filename))))
(kill-new name)
(message "%s" name)))
(keymap-set dired-mode-map "W" 'arx/dired-copy-full-filename-as-kill)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment