emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exporting all org files to txt periodically
@ 2011-01-13 18:14 Carl Bolduc
  2011-01-13 18:31 ` Eric Schulte
  2011-01-15  3:39 ` Matt Lundin
  0 siblings, 2 replies; 5+ messages in thread
From: Carl Bolduc @ 2011-01-13 18:14 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 392 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 449 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

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

* Re: exporting all org files to txt periodically
  2011-01-13 18:14 exporting all org files to txt periodically Carl Bolduc
@ 2011-01-13 18:31 ` Eric Schulte
  2011-01-13 18:40   ` Carl Bolduc
  2011-01-13 19:40   ` Sébastien Vauban
  2011-01-15  3:39 ` Matt Lundin
  1 sibling, 2 replies; 5+ messages in thread
From: Eric Schulte @ 2011-01-13 18:31 UTC (permalink / raw)
  To: Carl Bolduc; +Cc: emacs-orgmode

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 <carlbolduc@gmail.com> 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

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

* Re: exporting all org files to txt periodically
  2011-01-13 18:31 ` Eric Schulte
@ 2011-01-13 18:40   ` Carl Bolduc
  2011-01-13 19:40   ` Sébastien Vauban
  1 sibling, 0 replies; 5+ messages in thread
From: Carl Bolduc @ 2011-01-13 18:40 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1484 bytes --]

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 <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,
>   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 <carlbolduc@gmail.com> 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
>

[-- Attachment #1.2: Type: text/html, Size: 2128 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

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

* Re: exporting all org files to txt periodically
  2011-01-13 18:31 ` Eric Schulte
  2011-01-13 18:40   ` Carl Bolduc
@ 2011-01-13 19:40   ` Sébastien Vauban
  1 sibling, 0 replies; 5+ messages in thread
From: Sébastien Vauban @ 2011-01-13 19:40 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Eric and Carl,

"Eric Schulte" wrote:
> Carl Bolduc <carlbolduc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...
>
> 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

Just wanting to add a variant:

1bis. teach Emacs that .txt means Org-mode:

#+begin_src emacs-lisp
      (setq auto-mode-alist
            (append '(
                      ("\\.txt$" . org-mode)
                      ) auto-mode-alist))
#+end_src

> 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

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: exporting all org files to txt periodically
  2011-01-13 18:14 exporting all org files to txt periodically Carl Bolduc
  2011-01-13 18:31 ` Eric Schulte
@ 2011-01-15  3:39 ` Matt Lundin
  1 sibling, 0 replies; 5+ messages in thread
From: Matt Lundin @ 2011-01-15  3:39 UTC (permalink / raw)
  To: Carl Bolduc; +Cc: emacs-orgmode

Carl Bolduc <carlbolduc@gmail.com> 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...

Publishing provides a convenient way to export org files en masse:

http://orgmode.org/manual/Publishing.html#Publishing

You can publish as ascii by setting the publishing-function to
org-publish-org-to-ascii.

http://orgmode.org/manual/Publishing-action.html#Publishing-action

Best,
Matt

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

end of thread, other threads:[~2011-01-15  3:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 18:14 exporting all org files to txt periodically Carl Bolduc
2011-01-13 18:31 ` Eric Schulte
2011-01-13 18:40   ` Carl Bolduc
2011-01-13 19:40   ` Sébastien Vauban
2011-01-15  3:39 ` Matt Lundin

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