Re: [Orgmode] export to txt files

2008-03-18 Thread Dimitris Kapetanakis
I think I did it!!! just make a backward search Check the following (defun org-export-top-levels () (interactive) (goto-char (point-max)) (let (start (point)) (while (re-search-backward "^* " nil t) (write-region start (point-at-bol) (concat (org-get-heading) ".txt"))

Re: [Orgmode] export to txt files

2008-03-17 Thread Dimitris Kapetanakis
THANKS EVERYBODY I was looking at something like Hugo's response. It is a click away since it saves under a "heading.txt" the next heading's text. I am trying to take a look at it with my poor knowledge of Lisp. 2008/3/17, Hugo Schmitt <[EMAIL PROTECTED]>: > > Hm, I guess I sent this only to Dimi

Re: [Orgmode] export to txt files

2008-03-17 Thread Hugo Schmitt
Hm, I guess I sent this only to Dimitri... I'm resending it to the list.. This seems to do what you want. (defun org-export-top-levels () (interactive) (goto-char (point-min)) (let (start (point)) (while (re-search-forward "^* " nil t) (write-region start (point-at-bol) (concat

Re: [Orgmode] export to txt files

2008-03-17 Thread Daniel Clemente
Mmmm... I wrote a program which can do this: http://www.danielclemente.com/dislines/index.en.html however it's not LISP. I have written multilingual org files this way, but it's not comfortable since it requires several programs and processing phases. I am still looking for a solution i

Re: [Orgmode] export to txt files

2008-03-17 Thread Phil Jackson
"Dimitris Kapetanakis" <[EMAIL PROTECTED]> writes: > Hello All, > I wanted to ask if there is a way to export an org file as individual txt > files depending on level 1 hierarchy. For example if you have a file like > > * Projects > bla bla text etcetc > > * Procedures > bla bla text etcetc

Re: [Orgmode] export to txt files

2008-03-17 Thread Sebastian
Dimitris Kapetanakis schrieb: > Hello All, > I wanted to ask if there is a way to export an org file as individual > txt files depending on level 1 hierarchy. For example if you have a > file like > > * Projects > bla bla text etcetc > > * Procedures > bla bla text etcetc > > to output two

[Orgmode] export to txt files

2008-03-17 Thread Dimitris Kapetanakis
Hello All, I wanted to ask if there is a way to export an org file as individual txt files depending on level 1 hierarchy. For example if you have a file like * Projects bla bla text etcetc * Procedures bla bla text etcetc to output two files projects.txt which contains bla bla text etcetc