Skip to content

Commit 0c90cf4

Browse files
committed
Add the "Search" note.
1 parent 92988b6 commit 0c90cf4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

content/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ I am always striving to learn new things and improve my skills. Hopefully, this
1414
## Pinned notes
1515

1616
- [Repositories](@/notes/Repositories/_index.md)
17+
- [Search](@/notes/Search.md)
1718

1819
## Quick links
1920

content/notes/Search.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
+++
2+
title = "Search"
3+
+++
4+
5+
Use the search field above to search for notes in the collection.
6+
7+
White space acts as an **AND** operator, while a single pipe character (`|`) acts as an **OR** operator. To escape white space, use double quotes, e.g., use `="scheme language"` for exact matching.
8+
9+
Extended search is supported via additional operators:
10+
11+
<div class="table-container">
12+
13+
| Token | Match type | Description |
14+
| ---------- | ------------------------- | ------------------------------------- |
15+
| `jscript` | fuzzy-match | Items that fuzzy match `jscript` |
16+
| `=scheme` | exact-match | Items that are `scheme` |
17+
| `'python` | include-match | Items that include `python` |
18+
| `!ruby` | inverse-exact-match | Items that do not include `ruby` |
19+
| `^java` | prefix-exact-match | Items that start with `java` |
20+
| `!^erlang` | inverse-prefix-exact-match | Items that do not start with `erlang` |
21+
| `.js$` | suffix-exact-match | Items that end with `.js` |
22+
| `!.go$` | inverse-suffix-exact-match | Items that do not end with `.go` |
23+
24+
</div>
25+
26+
The implementation is a library called [Fuse.js](https://www.fusejs.io), downloaded from [jsDelivr](https://www.jsdelivr.com/). There might be a delay before search starts working if the library and the search index are downloaded for the first time.

0 commit comments

Comments
 (0)