Suppose I'm using neotree in emacs, and suppose point lies above a node representing a file or a directory.
how can I yank the full path of said node to the kill ring so that I can C-y
this path afterwards?
How about using neo-buffer--get-filename-current-line
to get the filename or directory at point (which is a STRING), and then using kill-new
to make STRING the latest kill in the kill ring?
The solution, when combined, looks like this:
(kill-new (neo-buffer--get-filename-current-line))
You can open the file, and then find the location via M-: 'buffer-file-name'. Since you wish to Yank it you can follow some of the approaches listed here: File path to clipboard in Emacs