emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] convert a simple list of lines each to a orgmode header


From: Kaushal Modi
Subject: Re: [O] convert a simple list of lines each to a orgmode header
Date: Tue, 29 Sep 2015 06:46:43 -0400

I realized that the default binding `C-c *` works only on the current line, not the whole selection (and the same applies to the opposite `C-c -`).

It would be great to have those commands work over a region too.

But in the meanwhile, you can do either of the below:

- Simply select the region and use `query-replace-regexp`.
- Use a combination of keyboard macros and `C-c *`.
- Use `multiple-cursors`.
- Any other multiple editing method you might prefer.

--
Kaushal Modi

On Sep 29, 2015 6:06 AM, "Xebar Saram" <address@hidden> wrote:
Hi Nick

well yes i guess :) . but would be cool if this small function was org aware and thus the asteriks (org header) level would be auto set to the current sub level. 

thx

z

On Tue, Sep 29, 2015 at 6:30 AM, Nick Dokos <address@hidden> wrote:
Xebar Saram <address@hidden> writes:

> Hi all
>
> im looking for a simple way to convert a simple list of lines (i can
> mark it first if needed) each to a orgmode header anyone has such a
> way?
>

Maybe I'm missing something, but can't you just add asterisks in front
of each line? Maybe with a keyboard macro? Or even a sed script?

There's a reason that org files are plain text.

Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]