From: Kaushal Modi <kaushal.modi@gmail.com>
To: Xebar Saram <zeltakc@gmail.com>
Cc: Nick Dokos <ndokos@gmail.com>, emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: convert a simple list of lines each to a orgmode header
Date: Tue, 29 Sep 2015 06:46:43 -0400 [thread overview]
Message-ID: <CAFyQvY2YEzvp++3JyNR3G5BxfvvRcdNmi5Qx6Qp7zEDQnEZoDA@mail.gmail.com> (raw)
In-Reply-To: <CAOQHXPo87YosQkCLB-eqPx8r7ZdFEHXaw3okoVy1_qBU_WC+jw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
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" <zeltakc@gmail.com> 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 <ndokos@gmail.com> wrote:
>
>> Xebar Saram <zeltakc@gmail.com> 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
>>
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 2125 bytes --]
next prev parent reply other threads:[~2015-09-29 10:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 16:52 convert a simple list of lines each to a orgmode header Xebar Saram
2015-09-29 3:30 ` Nick Dokos
2015-09-29 5:28 ` Xebar Saram
2015-09-29 10:46 ` Kaushal Modi [this message]
2015-09-30 1:27 ` Nick Dokos
2015-10-01 0:07 ` Kaushal Modi
2015-09-29 6:46 ` Christian Moe
2015-09-29 7:17 ` Manuel Koell
2015-09-29 13:13 ` Kaushal Modi
2015-09-30 17:30 ` Thierry Banel
2015-09-29 7:44 ` Eric S Fraga
2015-09-29 8:00 ` Michael Strey
2015-09-29 16:43 ` Xebar Saram
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=CAFyQvY2YEzvp++3JyNR3G5BxfvvRcdNmi5Qx6Qp7zEDQnEZoDA@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@gmail.com \
--cc=zeltakc@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).