summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/tide/configure/choices/powerline
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/fish/functions/tide/configure/choices/powerline')
-rw-r--r--home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_heads.fish32
-rw-r--r--home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish51
-rw-r--r--home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_tails.fish40
-rw-r--r--home-config/fish/functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish20
4 files changed, 143 insertions, 0 deletions
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_heads.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_heads.fish
new file mode 100644
index 0000000..0030cad
--- /dev/null
+++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_heads.fish
@@ -0,0 +1,32 @@
1function powerline_prompt_heads
2 _tide_title 'Prompt Heads'
3
4 _tide_option 1 Sharp
5 set -g fake_tide_left_prompt_suffix 
6 set -g fake_tide_right_prompt_prefix 
7 _tide_display_prompt
8
9 _tide_option 2 Slanted
10 set -g fake_tide_left_prompt_suffix 
11 set -g fake_tide_right_prompt_prefix 
12 _tide_display_prompt
13
14 _tide_option 3 Round
15 set -g fake_tide_left_prompt_suffix 
16 set -g fake_tide_right_prompt_prefix 
17 _tide_display_prompt
18
19 _tide_menu (status function)
20 switch $_tide_selected_option
21 case Sharp
22 set -g fake_tide_left_prompt_suffix 
23 set -g fake_tide_right_prompt_prefix 
24 case Slanted
25 set -g fake_tide_left_prompt_suffix 
26 set -g fake_tide_right_prompt_prefix 
27 case Round
28 set -g fake_tide_left_prompt_suffix 
29 set -g fake_tide_right_prompt_prefix 
30 end
31 _next_choice powerline/powerline_prompt_tails
32end
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish
new file mode 100644
index 0000000..b374757
--- /dev/null
+++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish
@@ -0,0 +1,51 @@
1function powerline_prompt_style
2 _tide_title 'Powerline Prompt Style'
3
4 _tide_option 1 'One line'
5 _tide_find_and_remove newline fake_tide_left_prompt_items
6 _tide_find_and_remove character fake_tide_left_prompt_items
7 set fake_tide_left_prompt_frame_enabled false
8 set fake_tide_right_prompt_frame_enabled false
9 _tide_display_prompt
10
11 set -a fake_tide_left_prompt_items newline
12
13 _tide_option 2 'Two lines, character'
14 set -a fake_tide_left_prompt_items character
15 set fake_tide_left_prompt_frame_enabled false
16 set fake_tide_right_prompt_frame_enabled false
17 _tide_display_prompt
18
19 _tide_option 3 'Two lines, frame'
20 _tide_find_and_remove character fake_tide_left_prompt_items
21 set fake_tide_left_prompt_frame_enabled true
22 set fake_tide_right_prompt_frame_enabled true
23 _tide_display_prompt
24
25 _tide_option 4 'Two lines, character and frame'
26 set -a fake_tide_left_prompt_items character
27 set fake_tide_left_prompt_frame_enabled true
28 set fake_tide_right_prompt_frame_enabled true
29 _tide_display_prompt
30
31 _tide_menu (status function)
32 switch $_tide_selected_option
33 case 'One line'
34 _tide_find_and_remove newline fake_tide_left_prompt_items
35 _tide_find_and_remove character fake_tide_left_prompt_items
36 set fake_tide_left_prompt_frame_enabled false
37 set fake_tide_right_prompt_frame_enabled false
38 _next_choice all/prompt_connection_andor_frame_color
39 case 'Two lines, character'
40 set fake_tide_left_prompt_frame_enabled false
41 set fake_tide_right_prompt_frame_enabled false
42 _next_choice all/prompt_connection
43 case 'Two lines, frame'
44 _tide_find_and_remove character fake_tide_left_prompt_items
45 set fake_tide_left_prompt_frame_enabled true
46 set fake_tide_right_prompt_frame_enabled true
47 _next_choice all/prompt_connection
48 case 'Two lines, character and frame'
49 _next_choice all/prompt_connection
50 end
51end
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_tails.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_tails.fish
new file mode 100644
index 0000000..6b1574b
--- /dev/null
+++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_tails.fish
@@ -0,0 +1,40 @@
1function powerline_prompt_tails
2 _tide_title 'Prompt Tails'
3
4 _tide_option 1 Flat
5 set -g fake_tide_left_prompt_prefix ''
6 set -g fake_tide_right_prompt_suffix ''
7 _tide_display_prompt
8
9 _tide_option 2 Sharp
10 set -g fake_tide_left_prompt_prefix 
11 set -g fake_tide_right_prompt_suffix 
12 _tide_display_prompt
13
14 _tide_option 3 Slanted
15 set -g fake_tide_left_prompt_prefix 
16 set -g fake_tide_right_prompt_suffix 
17 _tide_display_prompt
18
19 _tide_option 4 Round
20 set -g fake_tide_left_prompt_prefix 
21 set -g fake_tide_right_prompt_suffix 
22 _tide_display_prompt
23
24 _tide_menu (status function)
25 switch $_tide_selected_option
26 case Flat
27 set -g fake_tide_left_prompt_prefix ''
28 set -g fake_tide_right_prompt_suffix ''
29 case Sharp
30 set -g fake_tide_left_prompt_prefix 
31 set -g fake_tide_right_prompt_suffix 
32 case Slanted
33 set -g fake_tide_left_prompt_prefix 
34 set -g fake_tide_right_prompt_suffix 
35 case Round
36 set -g fake_tide_left_prompt_prefix 
37 set -g fake_tide_right_prompt_suffix 
38 end
39 _next_choice powerline/powerline_prompt_style
40end
diff --git a/home-config/fish/functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish b/home-config/fish/functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish
new file mode 100644
index 0000000..a2d0a5b
--- /dev/null
+++ b/home-config/fish/functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish
@@ -0,0 +1,20 @@
1function powerline_right_prompt_frame
2 _tide_title 'Right Prompt Frame'
3
4 _tide_option 1 No
5 set fake_tide_right_prompt_frame_enabled false
6 _tide_display_prompt
7
8 _tide_option 2 Yes
9 set fake_tide_right_prompt_frame_enabled true
10 _tide_display_prompt
11
12 _tide_menu (status function)
13 switch $_tide_selected_option
14 case No
15 set fake_tide_right_prompt_frame_enabled false
16 case Yes
17 set fake_tide_right_prompt_frame_enabled true
18 end
19 _next_choice all/prompt_connection_andor_frame_color
20end