fish vi mode variable cursor shape

383 views
Skip to first unread message

Chinmay Dalal

unread,
Oct 28, 2021, 8:05:58 AM10/28/21
to tmux-users
Hello 👋
I use fish's vi mode, which changes the cursor based on mode. However inside tmux the cursor is always block-shaped irrespective of mode.

I tried adding
set -as terminal-features ",*:cstyle"
to my tmux.conf, it doesn't help

Nicholas Marriott

unread,
Oct 28, 2021, 8:23:18 AM10/28/21
to Chinmay Dalal, tmux-users
Show tmux server log please.

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/237cfcf5-e794-496c-93ff-208a26d2ba7en%40googlegroups.com.

Chinmay Dalal

unread,
Oct 28, 2021, 8:37:58 AM10/28/21
to tmux-users

Chinmay Dalal

unread,
Oct 28, 2021, 9:19:13 AM10/28/21
to tmux-users
This only happens in fish's vi mode, the cursor changes shape correctly in neovim-inside-tmux

Nicholas Marriott

unread,
Oct 28, 2021, 9:21:37 AM10/28/21
to Chinmay Dalal, tmux-users
This log is truncated before there is any output from fish.




Chinmay Dalal

unread,
Oct 28, 2021, 9:36:12 AM10/28/21
to tmux-users
I've attached a log with echo statements when I changed modes
tmux-server-55560.log

Nicholas Marriott

unread,
Oct 28, 2021, 10:11:20 AM10/28/21
to Chinmay Dalal, tmux-users
There is no evidence of fish attempting to change the cursor in this log, maybe you are missing some bit of configuration when it is running inside tmux?



Chinmay Dalal

unread,
Oct 28, 2021, 10:27:49 AM10/28/21
to tmux-users
I start fish from my bashrc (my default shell is bash, to properly read /etc/profile and /etc/profile.d). I don't think it is possible to miss configuration

bashrc:

export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" ]] \
    && [ -z "$BASH_EXECUTION_STRING" ] \
    && [[ $- == *i* ]] \
    && command -v fish &> /dev/null
then
    exec fish
fi


I'll ask fish too, thanks for looking into this

Nicholas Marriott

unread,
Oct 28, 2021, 10:53:45 AM10/28/21
to Chinmay Dalal, tmux-users
I think you will need to ask the fish developers to help figure out why it is not asking tmux to change the cursor.




Reply all
Reply to author
Forward
0 new messages