all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Managing files?
@ 2006-08-31 15:10 Xiao-Yong Jin
  2006-08-31 16:19 ` Ed Hirgelt
  2006-08-31 18:08 ` Li Yuanqian-MGIA0534
  0 siblings, 2 replies; 5+ messages in thread
From: Xiao-Yong Jin @ 2006-08-31 15:10 UTC (permalink / raw)
  To: emacs-orgmode

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---

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Managing files?
  2006-08-31 15:10 Managing files? Xiao-Yong Jin
@ 2006-08-31 16:19 ` Ed Hirgelt
  2006-09-01 17:03   ` Carsten Dominik
  2006-08-31 18:08 ` Li Yuanqian-MGIA0534
  1 sibling, 1 reply; 5+ messages in thread
From: Ed Hirgelt @ 2006-08-31 16:19 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Managing files?
  2006-08-31 15:10 Managing files? Xiao-Yong Jin
  2006-08-31 16:19 ` Ed Hirgelt
@ 2006-08-31 18:08 ` Li Yuanqian-MGIA0534
  2006-09-01 15:44   ` Carsten Dominik
  1 sibling, 1 reply; 5+ messages in thread
From: Li Yuanqian-MGIA0534 @ 2006-08-31 18:08 UTC (permalink / raw)
  To: Xiao-Yong Jin, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Managing files?
  2006-08-31 18:08 ` Li Yuanqian-MGIA0534
@ 2006-09-01 15:44   ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2006-09-01 15:44 UTC (permalink / raw)
  To: Li Yuanqian-MGIA0534; +Cc: 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Managing files?
  2006-08-31 16:19 ` Ed Hirgelt
@ 2006-09-01 17:03   ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2006-09-01 17:03 UTC (permalink / raw)
  To: Ed Hirgelt; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-01 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-31 15:10 Managing files? Xiao-Yong Jin
2006-08-31 16:19 ` Ed Hirgelt
2006-09-01 17:03   ` Carsten Dominik
2006-08-31 18:08 ` Li Yuanqian-MGIA0534
2006-09-01 15:44   ` Carsten Dominik

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.