all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Uwe Brauer <oub@mat.ucm.es>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: filemananger for emacs with meta information about a file without opening it
Date: Fri, 4 Nov 2022 05:13:43 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488A88CA91798090E36ED1AF33B9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87a658wgb0.fsf@mat.ucm.es>

> I am looking for a kind of «filemanager» for emacs, that allows me to
> obtain some meta information (about the content of the file) without
> opening it.

Jean Louis mentioned Dired command `dired-show-file-type'
(which just runs GNU/Linux/shell command `file').

If you use Dired+ then that's bound by default to `_',
not `y' (`y' is `diredp-relsymlink-this-file').

If you use Dired+ and `help-fns+.el', then `C-h RET' is
`diredp-describe-file', which describes the file/dir of
the current line.  (Also `diredp-mouse-describe-file'.)

If the file/dir is a symlink then, with a non-negative
prefix arg, `C-h RET' describes the symlink target instead.

If you also use Bookmark+, and if the file has an
autofile bookmark, then `C-h RET' with a non-positive
prefix arg describes the bookmark too.

So a zero prefix arg describes symlink and bookmark.

(An autofile bookmark is automatically named with the
nondir part of the bookmarked file name.  It acts like
a file, but with additional, user-defined properties.)

E.g., if file `aaa.el' is on the current line, and it
has an autofile bookmark, then `C-h RET' shows something
like this:
_____________________________________________________

Bookmark `aaa.el'
-----------------

File:			aaa.el
Directory:		z:/foo/bar/toto/
Position:	          1
Visits:			5
Last visit:		7/30/2017 6:00:12 PM
Tags:
 "magenta"
 "orange"
 "blue"


z:/foo/bar/toto/aaa.el
----------------------

File type:                  Normal file
Content type:               Lisp/Scheme program, UTF-8 Unicode text
Permissions:                -rw-rw-rw-
Size in bytes:              96476
Time of last access:        Thu Nov  3 21:51:07 2022 (Pacific Daylight Time)
Time of last modification:  Thu Feb 27 09:04:48 2014 (Pacific Standard Time)
Time of last status change: Wed Jul 25 07:58:32 2018 (Pacific Daylight Time)
Number of links:            1
User ID (UID):              37786
Group ID (GID):             513
Inode:                      281474976868278
Device number:              315267003
_____________________________________________________

The "Content type" is whatever description the command
`dired-show-file-type' provides.
___

As for providing your own metadata for a file, which
some raised as a possibility, you can use a bookmark
annotation for that.  Any metadata you want.  It can
even refer to another file with more metadata, for
info you don't want to store as part of the bookmark.

  parent reply	other threads:[~2022-11-04  5:13 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31 20:49 filemananger for emacs with meta information about a file without opening it Uwe Brauer
2022-11-02 12:26 ` Michael Heerdegen
2022-11-03  9:14   ` Uwe Brauer
2022-11-03  9:20     ` Emanuel Berg
2022-11-03 15:44       ` Uwe Brauer
2022-11-03 15:49         ` Emanuel Berg
2022-11-04 13:05           ` Uwe Brauer
2022-11-04 13:43             ` Eli Zaretskii
2022-11-04 17:48               ` Marcin Borkowski
2022-11-04  5:13     ` Drew Adams [this message]
2022-11-04  7:28       ` [External] : " Uwe Brauer
2022-11-04 16:00         ` Drew Adams
2022-11-05 13:50       ` Jean Louis
2022-11-05 21:05         ` Drew Adams
2022-11-03  6:49 ` Jean Louis
2022-11-03  7:56   ` tomas
2022-11-03  8:17     ` Yuri Khan
2022-11-03  8:44       ` tomas
2022-11-03 11:15       ` Michael Heerdegen
2022-11-04  3:22       ` Jean Louis
2022-11-04  3:21     ` Jean Louis
2022-11-03  9:01   ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB5488A88CA91798090E36ED1AF33B9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=oub@mat.ucm.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.