summaryrefslogtreecommitdiff
path: root/.config/fish/functions/tide/configure/choices/powerline/powerline_prompt_frame.fish
blob: 19b3588461f297c50f08eb7d86e22d97e5ce87fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function powerline_prompt_frame
    _tide_title 'Prompt Frame'

    _tide_option 1 'No frame'
    set fake_tide_left_prompt_frame_enabled false
    set fake_tide_right_prompt_frame_enabled false
    set -a fake_tide_left_prompt_items character
    _tide_display_prompt
    set -e fake_tide_left_prompt_items[-1]

    _tide_option 2 Left
    set fake_tide_left_prompt_frame_enabled true
    set fake_tide_right_prompt_frame_enabled false
    _tide_display_prompt

    _tide_option 3 Right
    set fake_tide_left_prompt_frame_enabled false
    set fake_tide_right_prompt_frame_enabled true
    set -a fake_tide_left_prompt_items character
    _tide_display_prompt
    set -e fake_tide_left_prompt_items[-1]

    _tide_option 4 Full
    set fake_tide_left_prompt_frame_enabled true
    set fake_tide_right_prompt_frame_enabled true
    _tide_display_prompt

    _tide_menu
    switch $_tide_selected_option
        case 1
            set fake_tide_left_prompt_frame_enabled false
            set fake_tide_right_prompt_frame_enabled false
            set -a fake_tide_left_prompt_items character
        case 2
            set fake_tide_left_prompt_frame_enabled true
            set fake_tide_right_prompt_frame_enabled false
        case 3
            set fake_tide_left_prompt_frame_enabled false
            set fake_tide_right_prompt_frame_enabled true
            set -a fake_tide_left_prompt_items character
        case 4
            set fake_tide_left_prompt_frame_enabled true
            set fake_tide_right_prompt_frame_enabled true
    end
    _next_choice all/prompt_connection_andor_frame_color
end