How to change the list of simple strings in TODO headers / elements?

If I insert a block of text from split lines, is there a way to convert each of these lines to headers or todo list items? So:

item item item 

becomes:

 * item * item * item 

without my input [Meta] [Return] when begging each line?

+6
source share
4 answers

With the default org-mode setting, select your lines before and include a new line at the end of the last line and do Mx org-toggle-heading . With the prefix argument, it tells org-mode how many levels in it the header should make ( Cu 4 Mx org-toggle-heading )

+5
source

Select three rows, and while your cursor is in the first column of the fourth row of type Cx r t * SPACE RET . This calls string-rectangle to insert the string *[space] in the vertical selection, marked with a label and cursor (i.e., the first column). Cx r t is a very useful command when editing aligned text.

+2
source

For example, using the following command:

 Mx query-replace-regex RET ^\(.*\)$ RET * \1 RET 
+1
source

To convert a line prefix from Workflowy export (0-n leading spaces, followed by one - ):

 Mx replace-regexp RET ^ *- RET \,(make-string (length \&) ?*) 
0
source

Source: https://habr.com/ru/post/892514/


All Articles