From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [Orgmode] org-store-link in dired buffer? Date: Tue, 5 Sep 2006 10:01:56 +0200 Message-ID: <196aca8c560bb716b64ff8b5de1ba255@science.uva.nl> References: <86hcznxdg8.fsf@presario.homeunix.org> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKVtE-0004uj-0U for emacs-orgmode@gnu.org; Tue, 05 Sep 2006 04:02:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKVsy-0004nA-TJ for emacs-orgmode@gnu.org; Tue, 05 Sep 2006 04:02:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKVsx-0004ma-Vp for emacs-orgmode@gnu.org; Tue, 05 Sep 2006 04:02:20 -0400 Received: from [146.50.4.51] (helo=imap.science.uva.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKW3d-00089e-Ue for emacs-orgmode@gnu.org; Tue, 05 Sep 2006 04:13:22 -0400 In-Reply-To: <86hcznxdg8.fsf@presario.homeunix.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xiao-Yong Jin Cc: emacs-orgmode@gnu.org On Sep 5, 2006, at 4:19, Xiao-Yong Jin wrote: > Hi folks, I don't know if you guys like dired. But I think it could > be better if org-store-link could work even in dired buffer. I'd like > to see these behaviors of org-store-link in dired buffer. > > 1. If any file is marked, org-store-link stores the link to these > marked files. > > 2. If none is marked, org-store-link stores the directory. Yes, I think this would make sense, even though I'd prefer the link to be created to the file in the current line if there is no selection, and to the directory if the cursor is on the "." line. By the way, from your messages I gather that you are putting links to lots and lots of files into the Org-mode file. If I need access many files in a project, I find it typically more efficient to just link to the directory and then use dired itself to navigate to the file I need. That also makes things easier when moving a project to a different directory.... > Also, is it possible to open a file or directory link in dired, but > not really open it? Ah, I see, this is the problem. You need to tell Org-mode that you want to open directories in Emacs. Customize org-file-apps, add a new entry where the car is `directory' and the cdr is `emacs', for example like this: (setq org-file-apps '((directory . emacs) ("txt" . emacs) ("tex" . emacs) ("ltx" . emacs) ("org" . emacs) ("el" . emacs) ("bib" . emacs))) - Carsten