Skip to content

tmux tab complete sometimes deletes a char at prompt, cursor or in-between command,arg #658

@dezza

Description

@dezza
dza:~ $ ble summary # with tmux-256color, my default
GNU bash, version 5.3.8(1)-release (x86_64-suse-linux) [openSUSE Tumbleweed]
ble.sh, version 0.4.0-devel4+8060b7a (noarch) [git 2.50.1, GNU Make 4.4.1, GNU Awk 5.3.2, API 4.0, PMA Avon 8-g1, (GNU MPFR 4.2.2, GNU MP 6.3.0)]
bash-completion, version 2.12.0 (hash:480ffcc6a751e55621ec526eb5dea7a0d86d9e72, 17877 bytes) (noarch)
locale: LANG=en_US.UTF-8 LC_ADDRESS=da_DK.UTF-8 LC_MEASUREMENT=da_DK.UTF-8 LC_MONETARY=da_DK.UTF-8 LC_NAME=da_DK.UTF-8 LC_NUMERIC=da_DK.UTF-8 LC_PAPER=da_DK.UTF-8 LC_TELEPHONE=da_DK.UTF-8 LC_TIME=da_DK.UTF-8
terminal: TERM=tmux-256color wcwidth=16.0-west/16.0-2+ri, tmux:0 (84;0;0)
options: +extglob +histappend -hostcomplete +inherit_errexit +login_shell

dza:~ $ ble summary # with xterm-256color
GNU bash, version 5.3.8(1)-release (x86_64-suse-linux) [openSUSE Tumbleweed]
ble.sh, version 0.4.0-devel4+8060b7a (noarch) [git 2.50.1, GNU Make 4.4.1, GNU Awk 5.3.2, API 4.0, PMA Avon 8-g1, (GNU MPFR 4.2.2, GNU MP 6.3.0)]
bash-completion, version 2.12.0 (hash:480ffcc6a751e55621ec526eb5dea7a0d86d9e72, 17877 bytes) (noarch)
locale: LANG=en_US.UTF-8 LC_ADDRESS=da_DK.UTF-8 LC_MEASUREMENT=da_DK.UTF-8 LC_MONETARY=da_DK.UTF-8 LC_NAME=da_DK.UTF-8 LC_NUMERIC=da_DK.UTF-8 LC_PAPER=da_DK.UTF-8 LC_TELEPHONE=da_DK.UTF-8 LC_TIME=da_DK.UTF-8
terminal: TERM=xterm-256color wcwidth=16.0-west/16.0-2+ri, tmux:0 (84;0;0)
options: +extglob +histappend -hostcomplete +inherit_errexit +login_shell
$ ble-bind | grep -i TAB
ble-bind -k 'ESC ? I' 'TAB'
ble-bind -k 'ESC O I' 'TAB'
ble-bind -k 'ESC [ Z' 'S-TAB'
ble-bind -k 'SS3 I' 'TAB'
ble-bind -k 'CSI Z' 'S-TAB'
ble-bind -m 'vi_imap' -f 'TAB' 'vi_imap/complete'
ble-bind -m 'vi_imap' -f 'S-TAB' 'vi_imap/menu-complete backward'
ble-bind -m 'vi_imap' -f 'C-TAB' 'vi_imap/menu-complete'
ble-bind -m 'vi_cmap' -f 'TAB' 'complete'
ble-bind -m 'vi_cmap' -f 'S-TAB' 'menu-complete backward'
ble-bind -m 'vi_cmap' -f 'C-TAB' 'menu-complete'
ble-bind -m 'vi_cmap' -f 'M-TAB' 'complete context=dynamic-history'

$ tmux -V
tmux 3.6

Sometimes when I

dza:~ $ ctags --list-ex#<TAB>

or after.. mid-completion (with menu-complete visible)

# type any char after completing like above:
dza:~ $ ctags --list-ex#type any char (d)
# becomes
dza:~ $ ctags--list-exd # noticed no space between arg and command

# also seen
dza:~ $ctags --list-exd # noticed no space between prompt and command

I also tried

dza:~ $ tmux -f /dev/null
dza:~ $ bash --norc --noprofile
dza:~ $ source ~/.local/share/blesh/ble.sh
# still same result

So it seems like some translation issue that causes some misfiring of deleting characters in positions of prompt, command and arg

Screenshots:

I've narrowed it down to a tmux problem I think, as it does not happen outside tmux, happens with/without my tmux.conf and with/without init.sh (blerc), and of course exited all tmux sessions ensuring proper restart.

Appreciate your help and commitment to this awesome project!

EDIT: just saw now there was update, but still did on ble.sh, version 0.4.0-devel4+2f564e6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions