Closed
Description
eric@G6D6PX2JTW ~> fish --version
fish, version 3.6.1
eric@G6D6PX2JTW ~> uname -a
Darwin G6D6PX2JTW 21.6.0 Darwin Kernel Version 21.6.0: Mon Dec 19 20:43:09 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T6000 arm64 arm Darwin
eric@G6D6PX2JTW ~> echo $TERM
xterm-256color
When using any of the Vi modes in iTerm2 with default settings, the cursor is always set to block regardless of the settings in iTerm2 Settings > Profiles > Text > Cursor.
It turns out the following is where "block" is being set:
fish-shell/share/functions/fish_vi_cursor.fish
Lines 80 to 81 in e78560d
Is there an opportunity to "pass-through" what iTerm sets as the default cursor style?
I tested an override to fish_vi_cursor.fish
with the following handler code to achieve the desired behavior:
set -l varname fish_cursor_\$fish_bind_mode
if set -q \$varname
$function \$\$varname
end
I'm happy to submit a PR if this is of interest.