mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-22 11:31:57 +03:00
Work on black vs brblack
This commit is contained in:
parent
2a26fe2002
commit
f24de1efaa
57
functions/tide/configure/choices/all/black_or_brblack.fish
Normal file
57
functions/tide/configure/choices/all/black_or_brblack.fish
Normal file
@ -0,0 +1,57 @@
|
||||
function black_or_brblack
|
||||
_tide_title 'Which of these squares do you see?'
|
||||
|
||||
set -l list black brblack
|
||||
|
||||
for arg in $list
|
||||
set_color -b $arg
|
||||
string repeat --no-newline --count 7 ' '
|
||||
set_color normal
|
||||
|
||||
string repeat --no-newline --count 2 ' '
|
||||
end
|
||||
echo
|
||||
for arg in $list
|
||||
set_color -b $arg
|
||||
string repeat --no-newline --count 3 ' '
|
||||
set_color --bold
|
||||
echo -ns (contains --index $arg $list)
|
||||
string repeat --no-newline --count 3 ' '
|
||||
set_color normal
|
||||
|
||||
string repeat --no-newline --count 2 ' '
|
||||
end
|
||||
echo
|
||||
for arg in $list
|
||||
set_color -b $arg
|
||||
string repeat --no-newline --count 7 ' '
|
||||
set_color normal
|
||||
|
||||
string repeat --no-newline --count 2 ' '
|
||||
end
|
||||
|
||||
echo \n
|
||||
|
||||
_tide_option 1 "I only see the square around 1"
|
||||
echo
|
||||
|
||||
_tide_option 2 "I only see the square around 2"
|
||||
echo
|
||||
|
||||
_tide_option 3 "I see both squares"
|
||||
echo
|
||||
|
||||
_tide_menu
|
||||
switch $_tide_selected_option
|
||||
case 1
|
||||
_load_config "$_tide_configure_style"
|
||||
set -e _tide_16color
|
||||
switch $_tide_configure_style
|
||||
case lean rainbow
|
||||
_next_choice all/show_time
|
||||
case classic
|
||||
_next_choice classic/classic_prompt_color
|
||||
end
|
||||
end
|
||||
_next_choice all/show_time
|
||||
end
|
@ -21,6 +21,6 @@ function prompt_colors
|
||||
_next_choice classic/classic_prompt_color
|
||||
end
|
||||
case 2
|
||||
_next_choice all/show_time
|
||||
_next_choice all/black_or_brblack
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user