Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

configuration question



I'd like replace self-insert with a function that automatically
does something like "history-beginning-search-backward" the problem
with this is that it beeps when nothing is found and that the current
history number changes, meaning that every time I type something I
go backwards in the history even if the character that I type suits
the current history event just fine.

I tried something like this

---
insert-and-predict () {
  LBUFFER="$LBUFFER$KEYS"
  RBUFFER=""
  zle history-beginning-search-backward
}

autoload insert-and-predict
zle -N self-insert insert-and-predict
---

can someone stop the beep and give me the right behaviour?

wim yedema



Messages sorted by: Reverse Date, Date, Thread, Author