Hi, I've been using emacs-org for a while. And I always find it's so troublesome to manage various files in emacs-org. Although I can use the file links, and with remember.el it's easy for files that can be open in emacs to be linked in my org files, moving files around, storing files and changing files corresponding to a typical project are not easily done in emacs-org and need much more work. I think you usually have many files, text, pdf, latex and etc., but how do you manage these files? Can someone please recommend me a scheme to do that? Thanks, Xiao-Yong -- ,,, (o o) ---ooO-(_)-Ooo---
On 8/31/06, Xiao-Yong Jin <xj2106@columbia.edu> wrote:
> Hi, I've been using emacs-org for a while. And I always find it's so
> troublesome to manage various files in emacs-org. ... moving files around,
> storing files and changing files corresponding to a typical project
> are not easily done in emacs-org and need much more work.
One way I handle this is to use environment variables to define the
root directory of a project. Then your file links can look like
[[file:$proj1/Docs/foo.pdf]].
This requires a little hack to org-open-file to call
substitute-in-file-name. I've included below the start of that
function so you can see what I did. It does make certain
restructuring easy.
Hope this helps.
Ed
(defun org-open-file (path &optional in-emacs line search)
"Open the file at PATH.
First, this expands any special file name abbreviations. Then the
configuration variable `org-file-apps' is checked if it contains an
entry for this file type, and if yes, the corresponding command is launched.
If no application is found, Emacs simply visits the file.
With optional argument IN-EMACS, Emacs will visit the file.
Optional LINE specifies a line to go to, optional SEARCH a string to
search for. If LINE or SEARCH is given, the file will always be
opened in Emacs.
If the file does not exist, an error is thrown."
(setq in-emacs (or in-emacs line search))
(let* ((file (if (equal path "")
buffer-file-name
(substitute-in-file-name (expand-file-name path))))
(apps (append org-file-apps (org-default-apps)))
--
Ed Hirgelt
Discovery consists of seeing what everybody has seen
and thinking what nobody has thought.
I think It would be great if there is some search capability like [[locate:Doc/foo.pdf]] in org-mode. Something similar to "globalff.el" that use "updatedb" utility. The utility is available in both MS Windows and Unix. Jeff -----Original Message----- From: emacs-orgmode-bounces+jli=motorola.com@gnu.org [mailto:emacs-orgmode-bounces+jli=motorola.com@gnu.org] On Behalf Of Xiao-Yong Jin Sent: Thursday, August 31, 2006 11:10 AM To: emacs-orgmode@gnu.org Subject: [Emacs-orgmode] Managing files? Hi, I've been using emacs-org for a while. And I always find it's so troublesome to manage various files in emacs-org. Although I can use the file links, and with remember.el it's easy for files that can be open in emacs to be linked in my org files, moving files around, storing files and changing files corresponding to a typical project are not easily done in emacs-org and need much more work. I think you usually have many files, text, pdf, latex and etc., but how do you manage these files? Can someone please recommend me a scheme to do that? Thanks, Xiao-Yong -- ,,, (o o) ---ooO-(_)-Ooo--- _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
On Aug 31, 2006, at 20:08, Li Yuanqian-MGIA0534 wrote: > I think It would be great if there is some search capability like > [[locate:Doc/foo.pdf]] in org-mode. Something similar to "globalff.el" > that use "updatedb" utility. The utility is available in both MS > Windows and Unix. I have had a look at globalff.el, and it seems to me that an even better way forward would be to talk to the developer of globalff and ask him to add a feature: It should be possible to take a default search string is taken from the file name at point in a similar way as ffap does it. He could even use ffap internals to grab that string in a useful way, I guess. This would be something not only useful in Org-mode, but in many other modes too. - Carsten > > > Jeff > > -----Original Message----- > From: emacs-orgmode-bounces+jli=motorola.com@gnu.org > [mailto:emacs-orgmode-bounces+jli=motorola.com@gnu.org] On Behalf Of > Xiao-Yong Jin > Sent: Thursday, August 31, 2006 11:10 AM > To: emacs-orgmode@gnu.org > Subject: [Emacs-orgmode] Managing files? > > Hi, I've been using emacs-org for a while. And I always find it's so > troublesome to manage various files in emacs-org. Although I can use > the file links, and with remember.el it's easy for files that can be > open in emacs to be linked in my org files, moving files around, > storing > files and changing files corresponding to a typical project are not > easily done in emacs-org and need much more work. > > I think you usually have many files, text, pdf, latex and etc., but how > do you manage these files? Can someone please recommend me a scheme to > do that? > > Thanks, > Xiao-Yong > -- > ,,, > (o o) > ---ooO-(_)-Ooo--- > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477
On Aug 31, 2006, at 18:19, Ed Hirgelt wrote:
>
> One way I handle this is to use environment variables to define the
> root directory of a project. Then your file links can look like
> [[file:$proj1/Docs/foo.pdf]].
>
> This requires a little hack to org-open-file to call
> substitute-in-file-name. I've included below the start of that
> function so you can see what I did. It does make certain
> restructuring easy.
That is a good idea, and I would like to take that change - if you
agree. Do you?
Thanks.
- Carsten
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477