From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: text to plain list Date: Fri, 22 Jun 2012 17:39:10 -0400 Message-ID: <6498.1340401150@alphaville> References: <5024.1340398939@alphaville> <87ehp7e3fn.fsf@gmx.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiBZU-0000t7-U0 for emacs-orgmode@gnu.org; Fri, 22 Jun 2012 17:39:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiBZS-0003IJ-W4 for emacs-orgmode@gnu.org; Fri, 22 Jun 2012 17:39:16 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:29496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiBZS-0003Hv-PX for emacs-orgmode@gnu.org; Fri, 22 Jun 2012 17:39:14 -0400 In-Reply-To: Message from Eric Schulte of "Fri\, 22 Jun 2012 10\:06\:52 MDT." <87ehp7e3fn.fsf@gmx.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Marvin Doyley , emacs-orgmode@gnu.org Eric Schulte wrote: > Nick Dokos writes: >=20 > > Marvin Doyley wrote: > > > >> Hi there, > >>=3D20 > >> Is there quick method for converting a bunch of text to plain list ?= =3DC2=3D > =3DA0 > >>=3D20 > > > > Something like > > > > sed 's/^/- /' in.txt > out.txt > > > > perhaps? If that's not what you mean, what do you mean? > > >=20 > I find Emacs Macros work very well for this. >=20 > 1) position the cursor at the front of the first line > 2) C-x ( to start recording a macro > 3) manually turn this item into a list > 4) position the cursor at the front of the next line > 5) C-x ) to finish recording a macro > 6) X-e to run the macro on the second item >=20 > after that you may continue pressing "e" to re-run the macro, or run the > macro any number of times with a numeric prefix argument. This does > however require some regularity in your list items. >=20 Yes, there are many methods (both emacs and otherwise; and in the event, William L=C3=A9chelle's suggestion of C-u C-c - was what Marvin was looking for): my question was more to try to elicit what the problem was exactly, rather than as a solution. [fn:1] Nick Footnotes: [fn:1] ... although it is good to remind oneself once in a while that org files are just text, so one is not limited to emacs in order to manipulate them.