Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DeLub/bear-backlinks
Add backlinks to Bear notes
https://github.com/DeLub/bear-backlinks
Last synced: 3 months ago
JSON representation
Add backlinks to Bear notes
- Host: GitHub
- URL: https://github.com/DeLub/bear-backlinks
- Owner: DeLub
- Created: 2020-06-07T15:11:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T18:59:32.000Z (over 4 years ago)
- Last Synced: 2024-04-20T17:00:46.014Z (7 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bear-backlinks
This script loops through all notes in your bear database and checks which
other notes reference it. The notes referencing this note are listed under
`## Backlinks`. Each run replaces all backlinks already present in the note.I believe looping through all notes is necessary to account for links that have
been removed. I have not tested how well this works on large collections of
notes.This script does not update the notes directly in the database. It only reads
the notes and the links from your database, and uses Bear's x-callback-url to
update the note text.Change the `backlinks_header` to the name of the section you want to use.
This script can be used with the standard Python 2.7 on macOS.