In the terminal, I can do:
$ readlink -f docker-compose.yml
Which outputs:
/home/pedro/projects/docker-stuff/docker-compose.yml
I would like to have something like that in Emacs so that I can find the file (a similar interface to the great C-x C-f
) and then the full file location goes to the clipboard or kill ring. Or the full path is echoed in the mini buffer. Later, it would be possible to find it on messages
.
Is there a way to do it?
Obs.: My first instinct was trying to use C-x C-f
which is bounded to counsel-find-file
in config file. After I find the file and before pressing return, I cannot move the cursor to select the whole file path and copy it. For some reason, it is blocked. See the image below - I can only move the cursor to the white characters: