marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.38k stars 148 forks source link

Recent paths is not show after changing using keybinds #731

Closed tshu-w closed 4 months ago

tshu-w commented 4 months ago

Environment

% typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace
typeset VENDOR=apple
typeset OSTYPE=darwin23.0
typeset ZSH_PATCHLEVEL=zsh-5.9-0-g73d3173
typeset -a _autocomplete__funcfiletrace=(
  /Users/wangtianshu/.local/share/znap/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /Users/wangtianshu/.config/zsh/.zshrc:34
  /Users/wangtianshu/.local/share/znap/zsh-snap/functions/.znap.source:37
  /Users/wangtianshu/.local/share/znap/zsh-snap/functions/znap:27
  /Users/wangtianshu/.config/zsh/.zshrc:41
  zsh:0
)
% git -C ~autocomplete log --oneline -n1
cfc3fd9 (HEAD -> main, origin/main, origin/HEAD) Fix grammar mistakes in Readme

Steps to reproduce

% cd $(mktemp -d)
% git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
Cloning into 'zsh-autocomplete'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 53 (delta 0), reused 29 (delta 0), pack-reused 0
Receiving objects: 100% (53/53), 1.64 MiB | 2.86 MiB/s, done.
% > .zshrc <<EOF
setopt interactivecomments transientrprompt
PS1='%# '
PS2=
RPS2='%^'
source $PWD/zsh-autocomplete/zsh-autocomplete.plugin.zsh
EOF
% env -i HOME=$PWD PATH=$PATH TERM=$TERM ${TERMINFO:+TERMINFO=$TERMINFO} zsh -d
% mkdir a b c d
% mkdir a/x a/y a/z
% cd a/x
% cd ../../
% ls
a  b  c  d  zsh-autocomplete
% dirs
/private/var/folders/jn/61h25tzd7xj_f17p9ljjnvlh0000gn/T/tmp.L231KyFKmv /private/var/folders/jn/61h25tzd7xj_f17p9ljjnvlh0000gn/T/tmp.L231KyFKmv/a/x
% cd x (pressing C-x)
Contents of ~autocomplete-log/YYYY-MM-DD.log (click to expand)
[Empty]
tshu-w commented 4 months ago

It seems like C-x is blocked by other features, and I switches to other keybind and it works.

tshu-w commented 4 months ago
Screenshot 2024-06-22 at 18 10 21

Oh I see, It should be C-x /, the line break confuses me.