* Allo org-agenda-text-search-extra-files to be a directory
@ 2011-09-09 19:09 Darlan Cavalcante Moreira
2011-09-09 22:08 ` suvayu ali
0 siblings, 1 reply; 3+ messages in thread
From: Darlan Cavalcante Moreira @ 2011-09-09 19:09 UTC (permalink / raw)
To: Orgmode Mailing List
I have a directory with several files that are not supposed to be in
org-agenda-files (they don't have TODOs, schedule, etc), but that I want
org to include in text searches.
Is it possible to set org-agenda-text-search-extra-files with a directory
so that all .org files in that directory are considered for text searches
(similarly to how you can set org-agenda-files)?
As I understand this is not possible right now and I need to explicitly set
org-agenda-text-search-extra-files with a list containing all files I want
org to consider in text searches. The problem of that approach is when I
create more files in the same directory and forget to update
org-agenda-text-search-extra-files.
--
Darlan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Allo org-agenda-text-search-extra-files to be a directory
2011-09-09 19:09 Allo org-agenda-text-search-extra-files to be a directory Darlan Cavalcante Moreira
@ 2011-09-09 22:08 ` suvayu ali
2011-09-12 13:29 ` Allow " Darlan Cavalcante Moreira
0 siblings, 1 reply; 3+ messages in thread
From: suvayu ali @ 2011-09-09 22:08 UTC (permalink / raw)
To: Darlan Cavalcante Moreira; +Cc: Orgmode Mailing List
On Fri, Sep 9, 2011 at 9:09 PM, Darlan Cavalcante Moreira
<darcamo@gmail.com> wrote:
> Is it possible to set org-agenda-text-search-extra-files with a directory
> so that all .org files in that directory are considered for text searches
> (similarly to how you can set org-agenda-files)?
>
This should work:
(directory-files "~/<directory>" t "^[^.#].*\\.\\(org$\\|org_archive$\\)")
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Allow org-agenda-text-search-extra-files to be a directory
2011-09-09 22:08 ` suvayu ali
@ 2011-09-12 13:29 ` Darlan Cavalcante Moreira
0 siblings, 0 replies; 3+ messages in thread
From: Darlan Cavalcante Moreira @ 2011-09-12 13:29 UTC (permalink / raw)
To: suvayu ali; +Cc: Orgmode Mailing List
Thanks suvayu,
This works perfectly.
--
Darlan
At Sat, 10 Sep 2011 00:08:38 +0200,
suvayu ali <fatkasuvayu+linux@gmail.com> wrote:
>
> On Fri, Sep 9, 2011 at 9:09 PM, Darlan Cavalcante Moreira
> <darcamo@gmail.com> wrote:
> > Is it possible to set org-agenda-text-search-extra-files with a directory
> > so that all .org files in that directory are considered for text searches
> > (similarly to how you can set org-agenda-files)?
> >
>
> This should work:
> (directory-files "~/<directory>" t "^[^.#].*\\.\\(org$\\|org_archive$\\)")
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-12 13:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-09 19:09 Allo org-agenda-text-search-extra-files to be a directory Darlan Cavalcante Moreira
2011-09-09 22:08 ` suvayu ali
2011-09-12 13:29 ` Allow " Darlan Cavalcante Moreira
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).