summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2024-04-05 11:57:45 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2024-04-05 11:57:45 -0400
commitb88d77fb2d0d5028a6f5670695dee6bec129501f (patch)
tree2536b0461d297e647cf07157641c9b1223339adf /home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish
parent776a7ca55d2d2c3f396de91db1c6c3c5065012cd (diff)
ahhh sloppy fish, still needs fixing, esp with the vars
Diffstat (limited to 'home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish')
-rw-r--r--home-config/fish/functions/tide/configure/choices/powerline/powerline_prompt_style.fish51
1 files changed, 51 insertions, 0 deletions
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