2021-04-25 03:42:12 +03:00
|
|
|
function _tide_item_character
|
2021-11-11 21:46:04 +03:00
|
|
|
test $_tide_status = 0 && set_color $tide_character_color || set_color $tide_character_color_failure
|
2021-07-07 01:51:40 +03:00
|
|
|
|
2021-12-12 13:17:44 +03:00
|
|
|
set -q add_prefix || echo -ns ' '
|
|
|
|
|
2021-11-11 21:46:04 +03:00
|
|
|
test "$fish_key_bindings" = fish_default_key_bindings && echo -ns $tide_character_icon ||
|
2021-04-25 03:42:12 +03:00
|
|
|
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
|