@sgtsixpack said in Select/mark all lines which contain a certain pattern and add the line above:
I don’t know about “craft an expression”
I also have no clue about your last reply.
Sorry, I should have been more explicit.
My comments were in regard to “Regular Expression” Search mode, which is typically what one is inferring when they ask “how can I manipulate data that is relative to some other data”.
As you’ve probably discovered, you can, in Normal Search mode, bookmark the “line above” by making a selection that covers both lines, perhaps partially, and then pressing ctrl+f go get your text in the Find what box. You can then switch the Find window to the Mark tab and proceed with bookmarking.
But if you do it that way, you aren’t truly doing “line above”, you’re doing “line of” and “line below”. :-)