From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carl Bolduc Subject: Re: exporting all org files to txt periodically Date: Thu, 13 Jan 2011 13:40:07 -0500 Message-ID: References: <87sjwwbqp1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1681822807==" Return-path: Received: from [140.186.70.92] (port=41869 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdS7I-00070Y-NQ for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 13:41:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdS7H-0005mK-AQ for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 13:41:48 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:60865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdS7G-0005lv-Fa for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 13:41:47 -0500 Received: by wwb17 with SMTP id 17so2026240wwb.30 for ; Thu, 13 Jan 2011 10:41:45 -0800 (PST) In-Reply-To: <87sjwwbqp1.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org --===============1681822807== Content-Type: multipart/alternative; boundary=0016367b62ecc24f170499bea609 --0016367b62ecc24f170499bea609 Content-Type: text/plain; charset=ISO-8859-1 well, exporting to txt gives a better result for reading in other text editors, I should have mentioned that those files will be accessible by others who do not use Emacs... Carl 2011/1/13 Eric Schulte > Since Org-mode files are plain text, I don't think you would need to > export them at all, rather I would imagine an easier solution would be > to either > > 1. teach the search engine that .org means .txt > > 2. symlink all of your .org files to .txt file, e.g. on a linux, unix, > OSX system the following shell script will create a .txt symlink for > each .org file in the current directory > #+begin_src sh > for i in `ls --color=never *.org`;do > ln -s $i `basename $i .org`.txt > done > #+end_src > > Cheers -- Eric > > Carl Bolduc writes: > > > Where I work, we have a powerful search engine that indexes all kinds of > > files. It detects the converter to use based on the file extension. It > does > > not understand the .org extension. > > > > I would like to know how I could periodically export my org files to txt, > > maybe through a command, to a specific location on my network. This way, > the > > search engine could index all my notes... > > > > Thanks, > > Carl > > _______________________________________________ > > Emacs-orgmode mailing list > > Please use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016367b62ecc24f170499bea609 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable well, exporting to txt gives a better result for reading in other text edit= ors, I should have mentioned that those files will be accessible by others = who do not use Emacs...

Carl

2011/1/13 Eric Schulte <schulte.eric@gmail.com>
Since Org-mode files are plain text, I don't think you would need to export them at all, rather I would imagine an easier solution would be
to either

1. teach the search engine that .org means .txt

2. symlink all of your .org files to .txt file, e.g. on a linux, unix,
=A0 OSX system the following shell script will create a .txt symlink for =A0 each .org file in the current directory
=A0 #+begin_src sh
=A0 =A0 for i in `ls --color=3Dnever *.org`;do
=A0 =A0 =A0 =A0 ln -s $i `basename $i .org`.txt
=A0 =A0 done
=A0 #+end_src

Cheers -- Eric

Carl Bolduc <carlbolduc@gmail.co= m> writes:

> Where I work, we have a powerful search engine that indexes all kinds = of
> files. It detects the converter to use based on the file extension. It= does
> not understand the .org extension.
>
> I would like to know how I could periodically export my org files to t= xt,
> maybe through a command, to a specific location on my network. This wa= y, the
> search engine could index all my notes...
>
> Thanks,
> Carl
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0016367b62ecc24f170499bea609-- --===============1681822807== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1681822807==--