Skip to content

Commit

Permalink
Increase the default minimum delay
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Jan 14, 2022
1 parent 4fd8a6c commit 3942311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ zstyle ':autocomplete:*' default-context ''
# '': Start each new command line with normal autocompletion.
# history-incremental-search-backward: Start in live history search mode.

zstyle ':autocomplete:*' min-delay 0.0 # float
zstyle ':autocomplete:*' min-delay 0.05 # float
# Wait this many seconds for typing to stop, before showing completions.

zstyle ':autocomplete:*' min-input 0 # int
Expand Down
2 changes: 1 addition & 1 deletion scripts/.autocomplete.async
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ builtin zle -N history-incremental-search-forward .autocomplete.async.history-in
{
local -F min_delay=
builtin zstyle -s :autocomplete: min-delay min_delay ||
min_delay=0.01
min_delay=0.05
zselect -t "$(( [#10] 100 * max( 0, min_delay - SECONDS ) ))"

local -P hooks=( chpwd periodic precmd preexec zshaddhistory zshexit )
Expand Down

0 comments on commit 3942311

Please sign in to comment.