zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.81k stars 1.85k forks source link

Conflict with zsh-cmd-architect #641

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 2 years ago

Describe the bug

This plugin conflicts with zsh-cmd-architect. The related issue is https://github.com/zdharma-continuum/zsh-cmd-architect/pull/1

To Reproduce

Steps to reproduce the behavior: (This script is smaller than the original script of issue)

# $ uname -r
# 5.15.4-arch1-1
# $ has zsh
# ✓ zsh 5.8
# $ cat test.zsh
. ~/.zinit/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
. ~/.zinit/plugins/zui/zui.plugin.zsh
. ~/.zinit/plugins/zsh-cmd-architect/zsh-cmd-architect.plugin.zsh
# $ zsh -df
# $ . ./test.zsh

Press Ctrl-T, then press q

Screenshots

Screenshot from 2021-12-10 23-21-56

Expected behavior

The cursor should occur after the prompt-string.

ericfreese commented 2 years ago

@Freed-Wu It looks like the linked PR will fix the problem from the zsh-cmd-architect side. Is there any change you'd like us to make on this side?

Freed-Wu commented 2 years ago

Thanks for your reply. Can I know why this bug happened? Is it a bug of zsh-autosuggestions, or a bug of zsh-cmd-architect?

ericfreese commented 2 years ago

My guess is it's on the zsh-cmd-architect side but I haven't looked into it. That will probably be pretty low priority for me