Skip to content

Commit

Permalink
feat(widgets): drop support for functions deprecated in 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Dec 30, 2021
1 parent da5205a commit 4166395
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions zsh-abbr.zsh
Expand Up @@ -1374,10 +1374,6 @@ _abbr_deprecations() {

bindkey_declarations=$(bindkey)

deprecated_widgets[_abbr_expand_and_accept]=abbr-expand-and-accept
deprecated_widgets[_abbr_expand_and_space]=abbr-expand-and-space
deprecated_widgets[_abbr_expand_widget]=abbr-expand

for deprecated replacement in ${(kv)deprecated_widgets}; do
bindkey_declaration=$('builtin' 'echo' $bindkey_declarations | grep $deprecated)

Expand Down Expand Up @@ -1418,28 +1414,6 @@ _abbr_warn_deprecation() {
'builtin' 'print' -P $message
}

_abbr_expand_and_accept() {
emulate -LR zsh

ABBR_PRECMD_MESSAGE+="\\n$(_abbr_warn_deprecation _abbr_expand_and_accept abbr-expand-and-accept)"
abbr-expand-and-accept
}

_abbr_expand_and_space() {
emulate -LR zsh

ABBR_PRECMD_MESSAGE+="\\n$(_abbr_warn_deprecation _abbr_expand_and_space abbr-expand-and-space)"
abbr-expand-and-space
}

_abbr_expand_widget() {
emulate -LR zsh

ABBR_PRECMD_MESSAGE+="\\n$(_abbr_warn_deprecation _abbr_expand_widget abbr-expand)"
abbr-expand
}


# INITIALIZATION
# --------------

Expand Down

0 comments on commit 4166395

Please sign in to comment.