1 # Should the list (text, borders) be drawn in bold
2 # Value 1 is the default
5 # Main color pair (foreground/background)
6 local colorpair="white/black"
8 # Should draw the border?
11 # Combinations of colors to try out with Ctrl-T and Ctrl-G
12 # The last number is the bold option, 0 or 1
14 themes=( "white/black/1" "green/black/0" "green/black/1" "white/blue/0" "white/blue/1"
15 "magenta/black/0" "magenta/black/1" )
17 # Uncomment when using new (>5.2) Zsh version that supports 256 colors in zcurses
18 #themes=( "white/17/0" "10/17/1" "white/24/1" "white/22/0" "white/22/1" "white/25/0" "white/25/1"
19 # "white/59/0" "white/59/1" "white/60/0" "white/60/1" "white/61/0" "white/61/1" "black/65/0"
22 # When 1, pressing enter when in search mode will not
23 # only leave the mode, but also do selection and leave
25 local NLIST_INSTANT_SELECT=0
34 # Zshrc integration. All below variables can
35 # be set in zshrc and will have precedence
40 bold=${znt_list_bold:-$bold}
42 # 2. znt_list_colorpair
43 colorpair=${znt_list_colorpair:-$colorpair}
46 border=${znt_list_border:-$border}
48 # 4. znt_list_themes (array)
49 if (( ${+znt_list_themes} )); then
50 themes=( "${znt_list_themes[@]}" )
53 # 5. znt_list_instant_select
54 NLIST_INSTANT_SELECT=${znt_list_instant_select:-$NLIST_INSTANT_SELECT}