-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add frame and character powerline option
- Loading branch information
1 parent
d7ca88d
commit 115a45f
Showing
6 changed files
with
55 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
functions/tide/configure/choices/powerline/powerline_prompt_height.fish
This file was deleted.
Oops, something went wrong.
49 changes: 27 additions & 22 deletions
49
...ces/powerline/powerline_prompt_frame.fish → ...ces/powerline/powerline_prompt_style.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,51 @@ | ||
function powerline_prompt_frame | ||
_tide_title 'Prompt Frame' | ||
function powerline_prompt_style | ||
_tide_title 'Powerline Prompt Style' | ||
|
||
_tide_option 1 'No frame' | ||
_tide_option 1 'One line' | ||
_tide_find_and_remove newline fake_tide_left_prompt_items | ||
_tide_find_and_remove character fake_tide_left_prompt_items | ||
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 -a fake_tide_left_prompt_items newline | ||
|
||
_tide_option 2 'Two lines, character' | ||
set -a fake_tide_left_prompt_items character | ||
set fake_tide_left_prompt_frame_enabled false | ||
set fake_tide_right_prompt_frame_enabled false | ||
_tide_display_prompt | ||
|
||
_tide_option 3 Right | ||
set fake_tide_left_prompt_frame_enabled false | ||
_tide_option 3 'Two lines, frame' | ||
_tide_find_and_remove character fake_tide_left_prompt_items | ||
set fake_tide_left_prompt_frame_enabled true | ||
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 | ||
_tide_option 4 'Two lines, character and frame' | ||
set -a fake_tide_left_prompt_items character | ||
set fake_tide_left_prompt_frame_enabled true | ||
set fake_tide_right_prompt_frame_enabled true | ||
_tide_display_prompt | ||
|
||
_tide_menu (status function) | ||
switch $_tide_selected_option | ||
case 'No frame' | ||
case 'One line' | ||
_tide_find_and_remove newline fake_tide_left_prompt_items | ||
_tide_find_and_remove character fake_tide_left_prompt_items | ||
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 Left | ||
set fake_tide_left_prompt_frame_enabled true | ||
set fake_tide_right_prompt_frame_enabled false | ||
case Right | ||
_next_choice all/prompt_connection_andor_frame_color | ||
case 'Two lines, character' | ||
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 Full | ||
set fake_tide_right_prompt_frame_enabled false | ||
_next_choice all/prompt_connection | ||
case 'Two lines, frame' | ||
_tide_find_and_remove character fake_tide_left_prompt_items | ||
set fake_tide_left_prompt_frame_enabled true | ||
set fake_tide_right_prompt_frame_enabled true | ||
_next_choice all/prompt_connection | ||
case 'Two lines, character and frame' | ||
_next_choice all/prompt_connection | ||
end | ||
_next_choice all/prompt_connection_andor_frame_color | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
functions/tide/configure/choices/powerline/powerline_right_prompt_frame.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function powerline_right_prompt_frame | ||
_tide_title 'Right Prompt Frame' | ||
|
||
_tide_option 1 No | ||
set fake_tide_right_prompt_frame_enabled false | ||
_tide_display_prompt | ||
|
||
_tide_option 2 Yes | ||
set fake_tide_right_prompt_frame_enabled true | ||
_tide_display_prompt | ||
|
||
_tide_menu (status function) | ||
switch $_tide_selected_option | ||
case No | ||
set fake_tide_right_prompt_frame_enabled false | ||
case Yes | ||
set fake_tide_right_prompt_frame_enabled true | ||
end | ||
_next_choice all/prompt_connection_andor_frame_color | ||
end |