commit 126b2d787e74906bff4fec31ab93c2ffa4ce01fe parent 5485349e3ef7abc07ad9b49b04dfc27c0728ac0c Author: Dash Eclipse <dashezup@disroot.org> Date: Fri, 1 Apr 2022 17:26:18 +0000 feat: update sdict() in .zshrc.local * CTRL+D -> Definition * CTRL+T -> Translation Diffstat:
M | .zshrc.local | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.zshrc.local b/.zshrc.local @@ -116,9 +116,10 @@ sdict() { --info=inline \ --prompt="${DICT} > " \ --preview="dict --database=${DB} {}" \ - --header="[Enter] View | [CTRL+T] Translate Shell | [CTRL+S] Listen" \ + --header="[Enter] View | [CTRL+D] Definition | [CTRL+T] Translation | [CTRL+S] Listen" \ --bind="enter:execute:dict --database=${DB} {} | less -c" \ - --bind="ctrl-t:execute:trans {} | less -c" \ + --bind="ctrl-d:execute:trans -theme random {} | less -c" \ + --bind="ctrl-t:execute:trans -theme random :zh-TW {} | less -c" \ --bind="ctrl-s:execute-silent:trans -speak {}" \ --preview-window=up,border-bottom }