When working on a buffer (that maps to a certain file) , how to get info about it? Like Path on disk, size, ...
-
1Just for my own curiousity, did you want something that would give a one line, say in the minibuffer or did you mean going into dired mode and seeing all the directories and files and info like has been suggested below? It may be 'neat' to see current buffer/file info in the minbuffer as a quick reminder.– pjammerAug 4, 2012 at 10:29
5 Answers
M-x dired RET
-
6
Additionally, there's dired-x
which has dired-jump
- this allows you to go straight to the file you're visiting. dired-x.el
appears to be shipped with my emacs-22.1, so it should suffice to say
(require 'dired-x)
in your ~/.emacs
. That installs the binding C-x C-j
for dired-jump
.
If you just want the path and don't want to open dired mode, following will display the full path in the mini buffer and copy it to clipboard. I find it very useful. Put this in your .emacs
(global-set-key (kbd "<f8>") 'copy-buffer-file-name)
-
that is not working on my emacs/ubuntu 23.1.1. it says "symbol's function definition is void: copy-buffer-file-name" Mar 24, 2011 at 20:31
-
There's a buffer-extension - and it has
copy-buffer-file-name-as-kill
function. It even asks You what to copy: name, full name or a directory name.– AdobeFeb 23, 2012 at 11:02
Command describe-file
(bound to C-h M-f), here:
In Dired+, just hit C-h RET to invoke describe-file
on the current line.