fourier / ztree

Directory tree comparison mode for Emacs
http://www.emacswiki.org/emacs/ZtreeDiff
GNU General Public License v3.0
239 stars 21 forks source link

Feature request: Copy path to clipboard command #44

Closed talwrii closed 7 years ago

talwrii commented 7 years ago

Hey there,

Here I'm mostly using your issue list as a discussion forum for things I do with ztree, and to give you a heads-up. If you preferred I didn't do this I could just put this sort of stuff in a private blog post or whatever. Anway...

I found myself wanting to copy paths out of ztree so that I could use them from a terminal:

I wrote myself this function for this:

(defun my-ztree-dir-copy-path ()
  (interactive)
  (let ((path (car (ztree-find-node-at-point))))
    (x-set-selection 'PRIMARY path)
    (message "%S" path)))

(I'm working around emacs's clipboard settings here...)

fourier commented 7 years ago

Hi,

I would prefer to have real issues/feature requests here. There is a wiki page here, I'll create it later today so this information could be added. There is also https://www.emacswiki.org/emacs/ZtreeDiff

fourier commented 7 years ago

Ok, I've created a wiki page for this github project, see menu above. Here you can post your tips&tricks.