As a sidenote: This works totally fine, I just don't use this script specifically anymore, since I came up with a better solution
If you're not familiar with todo.txt, see here
This is a thin wrapper around todo.txt to keep track of my bookmarks. All commands (except the -d flag) call the underlying todo.sh command.
It maintains a separate config file at ~/.config/bookmark.txt. To change that, you can set the BOOKMARK_CONFIG_DIR environment variable and modify the generated config file.
Like todo.txt:
- you can use flags to filter by multiple contexts/tags.
$ bookmark list +programming
1 programming; language theory http://alvaro-videla.com/archive.html +programming
--
BOOKMARKS: 1 of 3 tasks shown- its easy to create scripts on top of this since the data format is just a text file:
- prompt - uses
rofito prompt me to add/mark bookmarks as 'done' (remove them) - open - uses
rofiandurlextracton the selected bookmark, to open it in my browser
- prompt - uses
To install, copy the bookmark script onto your $PATH somewhere
Could use basher to do that for you:
basher install purarue/bookmark.txt