Skip to content

Commit 7e21aaf

Browse files
author
adam
committed
bemenu: better positioning and aesthetics
1 parent e2afd35 commit 7e21aaf

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

select_with_bemenu

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
#!/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
214
set -eu
315

416
declare NOTES_DIRECTORY
@@ -16,9 +28,16 @@ FIND_COMMAND=(
1628
)
1729

1830
BEMENU_FLAGS=(
19-
--list 7
31+
--list 38
2032
--ignorecase
2133
--fixed-height
34+
--prompt "Open Note"
35+
-B2
36+
--tf='#33ccff'
37+
--hb='#44ddff'
38+
--hf='#000000'
39+
--bdr='#33ccff'
40+
--bottom
2241
--no-exec
2342
)
2443

0 commit comments

Comments
 (0)