I want to delete some specific lines in the YAML front matter:
--- Author: aaaa Title: bbbb Time: cccc Place: dddd ...
Lets say I wanted to delete only the lines in the front matter that contained "title:" and "place:"
To make sure I am not deleting any other lines that contain these words, it should only search the front matter. Also any solution would preferably not use the line number but rather the actual word as its criteria for selection.
Any help would be much appreciated thanks.
My own research consists of:
This - which deletes multiple words in one go
and This - which selects a specific area of the file