This repository contains some utilities I am using with Bear App.
Bear Search is an action for LaunchBar which allows you to search quickly from Bear notes without opening Bear first. The action connects directly to Bear's SQLite database and provides realtime search results. Selecting a result opens the note in Bear.
The search always targets the Title and the Text of the note. By default, all notes matching any of the keywords are returned. A minimum of 3 characters must be typed.
You can use keyword AND
in the beginning of the search to change the behaviour to require a match for all criteria. Keywords AND
and OR
can also be used between search criteria.
AND ansible update
-> all notes matchingansible
andupdate
ansible update
-> all notes matchingansible
orupdate
ansible update AND #secops
-> all notes matchingansible
orupdate
and#secops
AND ansible update OR #secops
-> all notes matchingansible
andupdate
or#secops
The search is case-insensitive.
Collects any [[wiki links]]
found in Markdown files within the defined directory and adds or updates a ## Backlinks
-section containing all links pointing to the file.
Links are kept in order, so we do not need to update any files unless there has been changes in links.
- Works well with https://github.com/andymatuschak/Bear-Markdown-Export
- Heavily influenced by https://github.com/andymatuschak/note-link-janitor
Perl
$ perl wiki-links.pl
usage: ./wiki-links.pl -d /path/to/directory [-b /path/to/backup_directory] [-v] [-r] [-l title|name] [-hs char]
-v = verbose output
-r = recursive search from defined folder. Default is to search 1 level only.
-l defines if we should read the link target from filename or the title of the document
defaults to 'title'
-hs defines a separator character for sub heading links. Defaults to '/'
If backup directory is defined with -b
, any file that would be updated is first copied to the backup directory. If backup fails, changes are ignored.
Use -v
to get output from the script. Errors are always printed to STDERR
.
Use -r
for a recursive search in the defined directory. The default is to search one level only.
While this has been working well for me with the notes exported from Bear App, I highly recommend taking a backup of your files first!
When using the wiki-links -script with Bear Note export / import, sync conflicts may occur if you are updating a note for which the Backlinks are being updated at the same time. These will be displayed in Bear and you need to manually resolve.