mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
feat(history-substring-search): update to 87ce96b1 (#12486)
Co-authored-by: ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com>
This commit is contained in:
parent
8510847ff3
commit
cedbb9e228
3 changed files with 7 additions and 7 deletions
2
.github/dependencies.yml
vendored
2
.github/dependencies.yml
vendored
|
@ -21,7 +21,7 @@ dependencies:
|
||||||
plugins/history-substring-search:
|
plugins/history-substring-search:
|
||||||
repo: zsh-users/zsh-history-substring-search
|
repo: zsh-users/zsh-history-substring-search
|
||||||
branch: master
|
branch: master
|
||||||
version: 8dd05bfcc12b0cd1ee9ea64be725b3d9f713cf64
|
version: 87ce96b1862928d84b1afe7c173316614b30e301
|
||||||
precopy: |
|
precopy: |
|
||||||
set -e
|
set -e
|
||||||
rm -f zsh-history-substring-search.plugin.zsh
|
rm -f zsh-history-substring-search.plugin.zsh
|
||||||
|
|
|
@ -57,13 +57,13 @@ Using [antigen](https://github.com/zsh-users/antigen):
|
||||||
|
|
||||||
1. Add the `antigen bundle` command just before `antigen apply`, like this:
|
1. Add the `antigen bundle` command just before `antigen apply`, like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
antigen bundle zsh-users/zsh-history-substring-search
|
antigen bundle zsh-users/zsh-history-substring-search
|
||||||
antigen apply
|
antigen apply
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Then, **after** `antigen apply`, add the key binding configurations, like this:
|
2. Then, **after** `antigen apply`, add the key binding configurations, like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
# zsh-history-substring-search configuration
|
# zsh-history-substring-search configuration
|
||||||
bindkey '^[[A' history-substring-search-up # or '\eOA'
|
bindkey '^[[A' history-substring-search-up # or '\eOA'
|
||||||
|
@ -120,7 +120,7 @@ Usage
|
||||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||||
|
|
||||||
Users have also observed that `[OA` and `[OB` are correct values,
|
Users have also observed that `[OA` and `[OB` are correct values,
|
||||||
_even if_ these were not the observed values. If you are having trouble
|
_even if_ these were not the observed values. If you are having trouble
|
||||||
with the observed values, give these a try.
|
with the observed values, give these a try.
|
||||||
|
|
||||||
|
|
|
@ -406,7 +406,7 @@ _history-substring-search-end() {
|
||||||
|
|
||||||
# For debugging purposes:
|
# For debugging purposes:
|
||||||
# zle -R "mn: "$_history_substring_search_match_index" m#: "${#_history_substring_search_matches}
|
# zle -R "mn: "$_history_substring_search_match_index" m#: "${#_history_substring_search_matches}
|
||||||
# read -k -t 200 && zle -U $REPLY
|
# read -k -t 200 && zle -U -- "$REPLY"
|
||||||
|
|
||||||
#
|
#
|
||||||
# When this function returns, z-sy-h runs its line-pre-redraw hook. It has no
|
# When this function returns, z-sy-h runs its line-pre-redraw hook. It has no
|
||||||
|
@ -421,7 +421,7 @@ _history-substring-search-end() {
|
||||||
# before removing search highlight and exiting. This ensures no highlights
|
# before removing search highlight and exiting. This ensures no highlights
|
||||||
# are left lingering after search is finished.
|
# are left lingering after search is finished.
|
||||||
#
|
#
|
||||||
read -k -t ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT:-1} && zle -U $REPLY
|
read -k -t ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT:-1} && zle -U -- "$REPLY"
|
||||||
region_highlight=( "${(@)region_highlight:#*${highlight_memo}*}" )
|
region_highlight=( "${(@)region_highlight:#*${highlight_memo}*}" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue