mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
update predefined
This commit is contained in:
parent
616f7ba177
commit
c9e30d863f
2 changed files with 12 additions and 4 deletions
|
@ -5,10 +5,13 @@
|
||||||
# configuration:
|
# configuration:
|
||||||
#
|
#
|
||||||
# ZSH_AUTOSUGGEST_PREDEFINE_NAME - auto generated predefine file name
|
# ZSH_AUTOSUGGEST_PREDEFINE_NAME - auto generated predefine file name
|
||||||
# ZSH_AUTOSUGGEST_PREDEFINE_PATH - user defined files joined by semicolon
|
# ZSH_AUTOSUGGEST_PREDEFINE_PATH - user defined files separated by semicolon
|
||||||
#
|
#
|
||||||
# "$HOME/.zsh_autosuggest" will be generated at the first time
|
# "$HOME/.zsh_autosuggest" will be generated at the first time
|
||||||
#
|
#
|
||||||
|
# zsh-autosuggestions/predefined.txt is generated from tldr pages and
|
||||||
|
# will ship with predefined.zsh .
|
||||||
|
#
|
||||||
|
|
||||||
_zsh_autosuggest_script_path="${0:A:h}"
|
_zsh_autosuggest_script_path="${0:A:h}"
|
||||||
|
|
||||||
|
@ -52,10 +55,11 @@ _zsh_autosuggest_predefined_generate() {
|
||||||
done
|
done
|
||||||
cd "${pwd}"
|
cd "${pwd}"
|
||||||
|
|
||||||
|
# TODO: generate command parameters from completion database
|
||||||
|
|
||||||
print -l $suggests >> "$pname"
|
print -l $suggests >> "$pname"
|
||||||
}
|
}
|
||||||
|
|
||||||
# echo "sourced predefined"
|
|
||||||
|
|
||||||
_zsh_autosuggest_strategy_predefined() {
|
_zsh_autosuggest_strategy_predefined() {
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
|
|
|
@ -571,10 +571,13 @@ _zsh_autosuggest_strategy_match_prev_cmd() {
|
||||||
# configuration:
|
# configuration:
|
||||||
#
|
#
|
||||||
# ZSH_AUTOSUGGEST_PREDEFINE_NAME - auto generated predefine file name
|
# ZSH_AUTOSUGGEST_PREDEFINE_NAME - auto generated predefine file name
|
||||||
# ZSH_AUTOSUGGEST_PREDEFINE_PATH - user defined files joined by semicolon
|
# ZSH_AUTOSUGGEST_PREDEFINE_PATH - user defined files separated by semicolon
|
||||||
#
|
#
|
||||||
# "$HOME/.zsh_autosuggest" will be generated at the first time
|
# "$HOME/.zsh_autosuggest" will be generated at the first time
|
||||||
#
|
#
|
||||||
|
# zsh-autosuggestions/predefined.txt is generated from tldr pages and
|
||||||
|
# will ship with predefined.zsh .
|
||||||
|
#
|
||||||
|
|
||||||
_zsh_autosuggest_script_path="${0:A:h}"
|
_zsh_autosuggest_script_path="${0:A:h}"
|
||||||
|
|
||||||
|
@ -618,10 +621,11 @@ _zsh_autosuggest_predefined_generate() {
|
||||||
done
|
done
|
||||||
cd "${pwd}"
|
cd "${pwd}"
|
||||||
|
|
||||||
|
# TODO: generate command parameters from completion database
|
||||||
|
|
||||||
print -l $suggests >> "$pname"
|
print -l $suggests >> "$pname"
|
||||||
}
|
}
|
||||||
|
|
||||||
# echo "sourced predefined"
|
|
||||||
|
|
||||||
_zsh_autosuggest_strategy_predefined() {
|
_zsh_autosuggest_strategy_predefined() {
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
|
|
Loading…
Reference in a new issue