Create a list of headlines

Kristoffer Bernssen edited this page Jan 12, 2019 · 3 revisions

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

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.