If I paste in a block of text composed of separated lines, is there any way to convert each of those lines into either headlines or TODO list items? So:
item
item
item
becomes:
* item
* item
* item
without my having to type [Meta][Return] at the begging of each line?
With a default org-mode
configuration, select your lines up to and including the newline at the end of the last line, and do M-x org-toggle-heading
. With a prefix argument, it tells org-mode
how many levels in it should make the heading (C-u 4 M-x org-toggle-heading
)
For example with following command:
M-x query-replace-regex RET ^\(.*\)$ RET * \1 RET
Select your three lines, and while your cursor is on the first column of the fourth line type C-xrt*SPACERET.
This calls the string-rectangle
to insert the string *[space]
in the vertical selection delimited by the mark and the cursor (i.e., the first column).
C-xrt is a very useful command when editing aligned text.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With