Search BibTeX files for entries
Searches BibTeX files for entries matching your query and displays formatted results.
/plugin marketplace add Data-Wise/scholar/plugin install data-wise-scholar@Data-Wise/scholarplugin-api/commands/literature/I'll search your BibTeX files for entries matching your query.
Usage: /research:bib:search <query> or /research:bib:search <query> <bib-file>
Examples:
/research:bib:search "mediation"/research:bib:search "MacKinnon" ~/Documents/references/mediation.bibIf you provided a query, I'll search now. Otherwise, please provide your search query.
<system> This command searches BibTeX files for entries matching the user's query.Use the shell API wrapper from ${CLAUDE_PLUGIN_ROOT}/lib/bibtex-utils.sh:
# Source the API wrapper
source "${CLAUDE_PLUGIN_ROOT}/lib/bibtex-utils.sh"
# Extract query and optional file path
QUERY="$1"
BIB_FILE="${2:-}"
if [[ -z "$QUERY" ]]; then
echo "Error: Search query required"
exit 1
fi
# Search BibTeX files
if [[ -n "$BIB_FILE" ]]; then
bib_search "$QUERY" "$BIB_FILE"
else
bib_search "$QUERY"
fi
If no specific .bib file is provided, searches in:
$HOME/Zotero/bibtex/$HOME/Documents/references/For each match, displays:
After showing results, offer to:
User: /research:bib:search "MacKinnon"