Skip to content

Commit

Permalink
Enable full text search in completion menu
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Jun 20, 2021
1 parent a5d6df1 commit 154d4e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Works out of the box with zero configuration, but also supports `zsh-z`, `zoxide
| <kbd>Shift</kbd><kbd>Tab</kbd> | Accept bottom completion |
| <kbd>Ctrl</kbd><kbd>Space</kbd> | Multi-select |
| <kbd>Enter</kbd> | Accept command line |
| <kbd>Ctrl</kbd><kbd>R</kbd> | Full text search / Previous search match |
| <kbd>Ctrl</kbd><kbd>S</kbd> | Full text search / Next search match |

### History Menu
| Key(s) | Action |
Expand Down
2 changes: 0 additions & 2 deletions module/.autocomplete.async
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ typeset -g ZSH_AUTOSUGGEST_USE_ASYNC=yes

zle -N history-incremental-search-backward .autocomplete.async.history-incremental-search
zle -N history-incremental-search-forward .autocomplete.async.history-incremental-search
bindkey -s -M menuselect '^R' '^G^R'
bindkey -s -M menuselect '^S' '^G^S'

.autocomplete.async.precmd() {
typeset -gHF _autocomplete__async_avg_duration
Expand Down
2 changes: 1 addition & 1 deletion zsh-autocomplete.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/zsh

setopt NO_singlelinezle
setopt NO_flowcontrol NO_singlelinezle
() {
emulate -L zsh -o NO_aliases
zmodload -Fa zsh/parameter p:functions
Expand Down

0 comments on commit 154d4e7

Please sign in to comment.