emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Eric Schulte <eric.schulte@gmx.com>
Cc: Marvin Doyley <marvinpas@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: text to plain list
Date: Fri, 22 Jun 2012 17:39:10 -0400	[thread overview]
Message-ID: <6498.1340401150@alphaville> (raw)
In-Reply-To: Message from Eric Schulte <eric.schulte@gmx.com> of "Fri\, 22 Jun 2012 10\:06\:52 MDT." <87ehp7e3fn.fsf@gmx.com>

Eric Schulte <eric.schulte@gmx.com> wrote:

> Nick Dokos <nicholas.dokos@hp.com> writes:
> 
> > Marvin Doyley <marvinpas@gmail.com> wrote:
> >
> >> Hi there,
> >>=20
> >> Is there quick method for converting a bunch of text to plain list ?=C2=
> =A0
> >>=20
> >
> > Something like
> >
> > sed 's/^/- /' in.txt > out.txt
> >
> > perhaps? If that's not what you mean, what do you mean?
> >
> 
> I find Emacs Macros work very well for this.
> 
> 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
> 
> 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.
> 

Yes, there are many methods (both emacs and otherwise; and in the event,
William Léchelle'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.

  reply	other threads:[~2012-06-22 21:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-22 20:42 text to plain list Marvin Doyley
2012-06-22 20:59 ` William LÉCHELLE
2012-06-22 21:02 ` Nick Dokos
2012-06-22 16:06   ` Eric Schulte
2012-06-22 21:39     ` Nick Dokos [this message]
2012-06-22 22:23     ` Marvin Doyley
2012-06-22 21:14   ` Marvin Doyley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6498.1340401150@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.schulte@gmx.com \
    --cc=marvinpas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).