File tree 1 file changed +20
-1
lines changed 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+
3
+ # The following script selects a note using bemenu.
4
+ # It takes a single argument: the note directory.
5
+ # It then presents all *.md files within the directory.
6
+ # It outputs the file path of the slected note.
7
+ #
8
+ # bemenue supports priting the search query regradless of whether it matches a
9
+ # note or not. this allows editing nonexistent files, or in another sense
10
+ # creating a note if it doesn't already exist (assuming the program consuming
11
+ # the path supports opening files and creating them later, i.e. most editors)
12
+
13
+ # error on missing variables and failed piplines
2
14
set -eu
3
15
4
16
declare NOTES_DIRECTORY
@@ -16,9 +28,16 @@ FIND_COMMAND=(
16
28
)
17
29
18
30
BEMENU_FLAGS=(
19
- --list 7
31
+ --list 38
20
32
--ignorecase
21
33
--fixed-height
34
+ --prompt " Open Note"
35
+ -B2
36
+ --tf=' #33ccff'
37
+ --hb=' #44ddff'
38
+ --hf=' #000000'
39
+ --bdr=' #33ccff'
40
+ --bottom
22
41
--no-exec
23
42
)
24
43
You can’t perform that action at this time.
0 commit comments