Create a list of headlines
Kristoffer Bernssen edited this page Jan 12, 2019
·
3 revisions
Pages 79
Clone this wiki locally
Create a file.sh with the following content:
#!/bin/bash
#print =headlines = ...
cat | pcregrep -o1 -i '^\={1,6}([^=].*[^=])={1,6}$'
Create a custom command using the following and check the "..replace current selection":
/path/to/file.sh %f