Created
August 8, 2025 11:04
-
-
Save andiogenes/c8eac97517db202383cd0df5687fbd27 to your computer and use it in GitHub Desktop.
Copy full path of file with W in Dired
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; 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