tide/functions/_tide_item_character.fish

23 lines
655 B
Fish
Raw Normal View History

2021-04-25 03:42:12 +03:00
function _tide_item_character
2021-10-01 07:18:16 +03:00
if test $_tide_status = 0
set_color $tide_character_color
else
set_color $tide_character_color_failure
end
2021-07-07 01:51:40 +03:00
2021-04-25 03:42:12 +03:00
if test "$fish_key_bindings" = fish_default_key_bindings
2021-09-08 20:54:31 +03:00
echo -ns $tide_character_icon
2021-04-25 03:42:12 +03:00
else
switch $fish_bind_mode
2021-06-27 20:59:09 +03:00
case insert
2021-09-08 20:54:31 +03:00
echo -ns $tide_character_icon
2021-04-25 03:42:12 +03:00
case default
2021-09-08 20:54:31 +03:00
echo -ns $tide_character_vi_icon_default
2021-04-25 03:42:12 +03:00
case replace replace_one
2021-09-08 20:54:31 +03:00
echo -ns $tide_character_vi_icon_replace
2021-04-25 03:42:12 +03:00
case visual
2021-09-08 20:54:31 +03:00
echo -ns $tide_character_vi_icon_visual
2021-04-25 03:42:12 +03:00
end
end
end