From 2ef516935747eaacacbe9e075fbc5a23ea9c2a15 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Mon, 29 Jan 2024 19:35:34 +0900 Subject: feat(zsh): update widget names (#1631) The current widget names for Zsh start with "_", which gives an impression to users that those widgets are internal API and should not be bound by the users. However, we actually instruct users to set up custom keybindings by specifying them to bindkey. In other shells, a separate namespace for widgets are not prepared, so we want to prefix "_" to shell function names to tell the users that these are not the commands that are supposed to be called from the command line. However, the widget names are separated in their own namespace in Zsh, so we do not have to isolate them by prefixing "_". In fact, other frameworks such as `fzf` define widgets with names not starting with "_". In this patch, we update the widget names to have the form "atuin-*". The old widget names that existed in the release version <= 17.2.1 are left for compatibility. --- docs/ru/key-binding_ru.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/ru/key-binding_ru.md') diff --git a/docs/ru/key-binding_ru.md b/docs/ru/key-binding_ru.md index 487d34b9..d6917e4e 100644 --- a/docs/ru/key-binding_ru.md +++ b/docs/ru/key-binding_ru.md @@ -15,17 +15,17 @@ eval "$(atuin init zsh)" # zsh -Autin устанавливает виджет ZLE "\_atuin_search_widget" +Autin устанавливает виджет ZLE "atuin-search" ``` export ATUIN_NOBIND="true" eval "$(atuin init zsh)" -bindkey '^r' _atuin_search_widget +bindkey '^r' atuin-search # зависит от режима терминала -bindkey '^[[A' _atuin_search_widget -bindkey '^[OA' _atuin_search_widget +bindkey '^[[A' atuin-search +bindkey '^[OA' atuin-search ``` # bash -- cgit v1.3.1