From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: Tag based dired? Date: Tue, 27 Jun 2006 10:36:30 +0200 Message-ID: References: <87sllwvhft.fsf@photon.homelinux.org> <8764iow1ro.fsf@photon.homelinux.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151397732 17642 80.91.229.2 (27 Jun 2006 08:42:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2006 08:42:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 27 10:42:10 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fv992-0004Fe-H5 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jun 2006 10:42:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fv991-0001rK-Vs for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jun 2006 04:42:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 57 Original-X-Trace: individual.net PJPyExVSn32k9p0ysKcYGAql5msvFUTXWD8XCo6KArobrLuGeP User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:N96eU/jGcX17s9NQ8x9XaOb+HEo= Original-Xref: shelby.stanford.edu gnu.emacs.help:140061 comp.emacs:92477 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35685 Archived-At: Xiao-Yong Jin writes: > Amazing. I've been using emacs-unicode-2 branch for a year and wasn't > aware of Tumme's existence until now. Certainly it's a great step > beyond the thumbs.el. :-) Well, it came into CVS Emacs some months ago, and it is quite easy to miss. > 1) I got this when I first use tumme-tag-files > basic-save-buffer-2: /home/jin/.emacs.d/tumme/.tumme_db: no such directory > It would be fine to add a simple test and create the directory > automatically. I'll look into that. In your case, was it .emacs.d or its sub directory "tumme" that was missing? > 2) Is there a more visible way to see all the tags associated to the > files in dired buffer? Not really. When you use Tumme for its original purpose, to browse image thumbnails, you will see in the echo area all tags associated to each image when you move around the thumbnails in the thumbnail buffer. It would be easy to implement that for other files too. Something like this, maybe: (require 'tumme) (defun tumme-dired-display-tags (file) "Display file FILE's tags in the echo area." (let ((tags (tumme-list-tags file))) (if tags (message "Tags: %s" (mapconcat (lambda (x) x) tags ", "))))) (defun tumme-dired-next-line-display-tags (&optional arg) "In dired, go to next line and display tags, if any" (interactive "p") (dired-next-line arg) (tumme-dired-display-tags (dired-get-filename))) (defun tumme-dired-previous-line-display-tags (&optional arg) "In dired, go to previous line and display tags, if any" (interactive "p") (dired-previous-line arg) (tumme-dired-display-tags (dired-get-filename))) ;; Bind keys in Dired (define-key dired-mode-map "n" 'tumme-dired-next-line-display-tags) (define-key dired-mode-map "p" 'tumme-dired-previous-line-display-tags) Try it!