tide/functions/_tide_item_character.fish

19 lines
703 B
Fish
Raw Normal View History

2021-04-25 03:42:12 +03:00
function _tide_item_character
test $_tide_last_status = 0 || set -g tide_character_color $tide_character_color_failure
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
_tide_print_item character $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
_tide_print_item character $tide_character_icon
2021-04-25 03:42:12 +03:00
case default
2021-05-20 18:46:39 +03:00
_tide_print_item character $tide_character_vi_icon_default
2021-04-25 03:42:12 +03:00
case replace replace_one
2021-05-20 18:46:39 +03:00
_tide_print_item character $tide_character_vi_icon_replace
2021-04-25 03:42:12 +03:00
case visual
2021-05-20 18:46:39 +03:00
_tide_print_item character $tide_character_vi_icon_visual
2021-04-25 03:42:12 +03:00
end
end
end