4 ms·
I have been struggling with bookmark management and discovery. I eventually landed on the following command which allows me to store my bookmarks in my git back
by andscoop 5y ago
I have been struggling with bookmark management and discovery. I eventually landed on the following command which allows me to store my bookmarks in my git backed notes. For discoverability this also works surprisingly well due to the file paths containing a lot of searchable context around the bookmark.
open $(rg -o -e "\[(.?)\]\(http.?\)" <PATH_TO_NOTES_DIR> | fzf | rg -o "http[s]?://.[^\)]+")
Note:
This looks specifically for the [markdown link syntax](https://www.markdownguide.org/basic-syntax/#links https://www.markdownguide.org/basic-syntax/#links). Lastly, it does require ripgrep and fzf to be installed.