newsboat bookmarks integration with qutebrowser
By chimo on (updated on )I’m playing with the idea of having my `newsboat` bookmarks automatically added to `qutebrowser`.
Maybe “integration” is a bit of a strong word for what it does, but time will tell where this goes.
Basically I added the following as my newsboat `bookmark-cmd`:
bookmark-cmd "sh -c 'echo ${@} >> /opt/bookmarks/urls' -s"
It simply adds the bookmarked article to qutebrowser’s “bookmarks/urls” file. Normally you’d want to write to “~/.config/qutebrowser/bookmarks/urls”, but I have this at another location for …reasons.
At the moment, to view the bookmark via qutebrowser’s `:bookmark-list` command, qutebrowser needs to be restarted so it loads the new file contents. In an upcoming qutebrowser release a new `:bookmarks-reload` command will be available so that shouldn’t be necessary.