xwmx / nb

CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
https://xwmx.github.io/nb
GNU Affero General Public License v3.0
6.64k stars 188 forks source link

Add NB_SEARCH_UTILITY environment variable #289

Closed mweichert closed 10 months ago

mweichert commented 10 months ago

This pull request introduces a new environment variable, _NB_SEARCHUTILITY, into the notebook search functionality. The changes are compact yet impactful, involving just 4 lines of additions with no deletions.

Key Changes:

Purpose: The introduction of _NB_SEARCHUTILITY aims to enhance our notebook's search capabilities by allowing for dynamic utility configuration. This is particularly useful for environments where the search utility might differ or where a user prefers a custom search method.

Benefits:

Testing: The changes are minimal and straightforward, focusing solely on environment variable management. I've tested the following:

Looking forward to feedback and suggestions from the team!

xwmx commented 10 months ago

@mweichert Thanks! I added NB_SEARCH_TOOL as the primary name for the variable for consistency with other variable names. I still have omitted it from the documentation. There are some features that are still only implemented in git grep, such as —and queries.