From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: convert a simple list of lines each to a orgmode header Date: Tue, 29 Sep 2015 06:46:43 -0400 Message-ID: References: <87r3lhhpgc.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1dfc09ff2550520e087c0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgsQn-00063S-L2 for emacs-orgmode@gnu.org; Tue, 29 Sep 2015 06:46:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgsQm-0002aI-Lw for emacs-orgmode@gnu.org; Tue, 29 Sep 2015 06:46:45 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:34930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgsQm-0002Zm-IR for emacs-orgmode@gnu.org; Tue, 29 Sep 2015 06:46:44 -0400 Received: by obbzf10 with SMTP id zf10so2014983obb.2 for ; Tue, 29 Sep 2015 03:46:43 -0700 (PDT) In-Reply-To: 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: Xebar Saram Cc: Nick Dokos , emacs-org list --001a11c1dfc09ff2550520e087c0 Content-Type: text/plain; charset=UTF-8 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" 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 wrote: > >> Xebar Saram 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 >> >> >> > --001a11c1dfc09ff2550520e087c0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I realized that the default binding `C-c *` works only on th= e current line, not the whole selection (and the same applies to the opposi= te `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`. <= br> - 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"= <zeltakc@gmail.com> wrote:<= br type=3D"attribution">
Hi = Nick

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

thx

z

On Tue, Sep 29, 2015 at 6:30 AM, Nick Dokos <ndokos@gmail.= com> wrote:
Xebar Sar= am <zeltakc@gmail= .com> writes:

> Hi all
>
> im looking for a simple way to=C2=A0convert 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 asterisk= s 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



--001a11c1dfc09ff2550520e087c0--