summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.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/lean/lean_prompt_height.fish
parent776a7ca55d2d2c3f396de91db1c6c3c5065012cd (diff)
ahhh sloppy fish, still needs fixing, esp with the vars
Diffstat (limited to 'home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish')
-rw-r--r--home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish26
1 files changed, 26 insertions, 0 deletions
diff --git a/home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish b/home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish
new file mode 100644
index 0000000..2077241
--- /dev/null
+++ b/home-config/fish/functions/tide/configure/choices/lean/lean_prompt_height.fish
@@ -0,0 +1,26 @@
1function lean_prompt_height
2 _tide_title 'Prompt Height'
3
4 _tide_option 1 'One line'
5 _tide_find_and_remove newline fake_tide_left_prompt_items
6 set -g fake_tide_left_prompt_suffix ''
7 _tide_display_prompt
8
9 _tide_option 2 'Two lines'
10 set -g fake_tide_left_prompt_items $fake_tide_left_prompt_items[1..-2] newline $fake_tide_left_prompt_items[-1]
11 set -g fake_tide_left_prompt_suffix ' '
12 _tide_display_prompt
13
14 _tide_menu (status function)
15 switch $_tide_selected_option
16 case 'One line'
17 _tide_find_and_remove newline fake_tide_left_prompt_items
18 set fake_tide_left_prompt_suffix ''
19 _next_choice all/prompt_connection_andor_frame_color
20 case 'Two lines'
21 _tide_find_and_remove newline fake_tide_left_prompt_items
22 set -g fake_tide_left_prompt_items $fake_tide_left_prompt_items[1..-2] newline $fake_tide_left_prompt_items[-1]
23 set -g fake_tide_left_prompt_suffix ' '
24 _next_choice all/prompt_connection
25 end
26end