Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erazlogo/obsidian-lit-notes-search
Library-catalog interface to search literature notes in Obsidian.
https://github.com/erazlogo/obsidian-lit-notes-search
obsidian-md
Last synced: 2 days ago
JSON representation
Library-catalog interface to search literature notes in Obsidian.
- Host: GitHub
- URL: https://github.com/erazlogo/obsidian-lit-notes-search
- Owner: erazlogo
- Created: 2022-06-18T20:11:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T16:37:55.000Z (over 1 year ago)
- Last Synced: 2025-01-16T09:25:09.906Z (5 days ago)
- Topics: obsidian-md
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This [Dataview](https://github.com/blacksmithgu/obsidian-dataview) script provides a library-catalog interface in [Obdisian](https://obsidian.md/) to search literature notes, i.e. source metadata and PDF annotations imported via a plugin, for example, [Zotero Integration](https://github.com/mgmeyers/obsidian-zotero-integration).
View a [demonstration](https://github.com/erazlogo/obsidian-lit-notes-search#demonstration) below.
This is a version of a more elaborate script that I use to search my own research notes, incorporated in my [starter vault for historians](https://github.com/erazlogo/obsidian-history-vault).
## Search Features
- `keyword` finds text in the entire note text + note title.
- `note-title` finds text in the file name of your literature note (usually your source citekey).
- For text fields, this is a case-insensitive phrase search.
- Enter dates as `YYYY-MM-DD`, `YYYY-MM-DD`.
- Enter tags as `#tag1 #tag2`.
- Enter exact field title and `asc/desc` to sort by field.
- Leave sort fields blank to sort by `note-title, desc`.## Installation
Necessary plugins and settings in Obsidian:
- Live Preview: On
- Dataview (Community plugins; Settings: Enable Javascript Queries - On, Automatic View Refreshing - On)
- A plugin or script to import your source metadata from a reference manager or bibtex fileYour literature notes should reside in a separate folder in your vault.
Place files `search.md` and `view.js` in any folder in your vault outside of your literature notes folder. Search.md has search fields where you will enter search terms and calls the main script from `view.js`. The main script needs to be in a separate file because it is too long to work with Live Preview.You will need to adapt the scripts to your file structure:
- search.md
- enter path in your vault to view.js instead of `your-folder/your-subfolder`.
- view.js
- enter the path to your literature notes folder instead of `your-literature-notes-folder`
- make sure you use the search fields in the script (author, title, publication, date, comment) and rename field names in the script to match your own field names## Demonstration
![Alt Text](https://publish-01.obsidian.md/access/36bec6aea73b5930cec9761dd7c60012/00%20meta/attachments/search%20literature%20notes.gif)