emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eraldo Helal <eraldo@eraldo.at>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Bernt Hansen <bernt@norang.ca>, Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: add a whole directory as one item to refile targets
Date: Sat, 17 Oct 2009 15:19:22 +0200	[thread overview]
Message-ID: <938fae2d0910170619v3546a6aajc9cdee143b641b7a@mail.gmail.com> (raw)
In-Reply-To: <657EC5D2-50AD-4A3A-B135-F0EC5984614C@gmail.com>

> For example (untested)
> (defun my-refile-to-reference ()
>  (interactive)
>  (let ((org-refile-targets (list (directory-files "~/Reference/ 'full
> "*.org")
>                                  '(:maxlevel . 1))))
>     (call-interactively 'org-refile)))
> Would offer all top-level headlines in any org files in the ~/Reference
> directory

"directory-files" only outputs directories but no .org files
therefore with the pattern "*.org" as a filter ... nothing is returned!

But I like the idea a lot!
Should "directory-files" list all files inside a directory?


  reply	other threads:[~2009-10-17 13:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-04 22:30 add a whole directory as one item to refile targets Eraldo Helal
2009-10-08  7:02 ` Carsten Dominik
2009-10-08  8:17   ` Syntax coloring not automatic Helge A. Gudmundsen
2009-10-10 21:48   ` add a whole directory as one item to refile targets Eraldo Helal
2009-10-10 22:06     ` Bernt Hansen
2009-10-12 13:48       ` Eraldo Helal
2009-10-12 14:15         ` Carsten Dominik
2009-10-17 13:19           ` Eraldo Helal [this message]
2009-10-12 16:47         ` Sebastian
2009-10-17 10:58           ` Eraldo Helal
2009-10-17 12:59             ` Sebastian

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:

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=938fae2d0910170619v3546a6aajc9cdee143b641b7a@mail.gmail.com \
    --to=eraldo@eraldo.at \
    --cc=bernt@norang.ca \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).