I want to build a workflow to fold/unfold not lines, but specific headers and their contents, and I do not know how to proceed.(I suppose iwhat action ? what Regex ?). Of course I know how to do that manually…
I have a text, e.g. :
#Chapter one (@tag1, @tag2)
some text
some other text
#Chapter two (@tag2, @tag3)
foo
ber
baz
#Chapter three (@tag1, @tag3)
London
Paris
Berlin
#Chapter four (@tag2, @tag4)
something
anything
I want to select the, e.g. @tag1 headers and unfold these and these only, so as to have :
#Chapter one (@tag1, @tag2)
some text
some other text
[number of hidden words]
#Chapter three (@tag1, @tag3)
London
Paris
Berlin
[number of hidden words]
How should I proceed ?
Thanks in advance