dotfiles/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish

27 lines
1 KiB
Fish
Raw Normal View History

2023-10-08 22:26:07 -05:00
function lean_prompt_height
_tide_title 'Prompt Height'
_tide_option 1 'One line'
_tide_find_and_remove newline fake_tide_left_prompt_items
set -g fake_tide_left_prompt_suffix ''
_tide_display_prompt
_tide_option 2 'Two lines'
set -g fake_tide_left_prompt_items $fake_tide_left_prompt_items[1..-2] newline $fake_tide_left_prompt_items[-1]
set -g fake_tide_left_prompt_suffix ' '
_tide_display_prompt
2023-11-20 11:20:55 -06:00
_tide_menu (status function)
2023-10-08 22:26:07 -05:00
switch $_tide_selected_option
2023-11-20 11:20:55 -06:00
case 'One line'
2023-10-08 22:26:07 -05:00
_tide_find_and_remove newline fake_tide_left_prompt_items
set fake_tide_left_prompt_suffix ''
_next_choice all/prompt_connection_andor_frame_color
2023-11-20 11:20:55 -06:00
case 'Two lines'
2023-10-08 22:26:07 -05:00
_tide_find_and_remove newline fake_tide_left_prompt_items
set -g fake_tide_left_prompt_items $fake_tide_left_prompt_items[1..-2] newline $fake_tide_left_prompt_items[-1]
set -g fake_tide_left_prompt_suffix ' '
_next_choice all/prompt_connection
end
end