update nvim config

This commit is contained in:
arnaucube
2022-08-21 11:22:24 +02:00
parent 91160c8b72
commit 0bf54d569c
3 changed files with 38 additions and 16 deletions

15
bin/kobo-parse-highlights Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
# script to print all the Kobo highlights in a human readable fashion
import sys
import xml.etree.ElementTree as ET
tree = ET.parse(sys.argv[1])
root = tree.getroot()
for annotation in root:
for target in annotation:
for fragment in target:
for text in fragment:
print("-", text.text)