diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index 575645d..e527bdc 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -484,6 +484,12 @@ gitnew() { git branch experimental } +#- Перевод слов/выражений с сохранением слова в файл +t() { + echo "$*" >> $SHELLRC/var/memory/dictionary + sdcv "$*" +} + #- Vimwiki alias ,ww="vim -c VimwikiIndex" #noindex diff --git a/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim b/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim index 944d9a6..e55652c 100644 --- a/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim +++ b/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim @@ -149,6 +149,8 @@ endfun " }}} " {{{ The Dict(word) function call a dict command for word fun! Dict(word) + let dict = $HOME . "/.shellrc/var/memory/dictionary" + call writefile(readfile(dict)+[a:word], dict) call OpenHelpWin("sdcv -n --data-dir ~/.shellrc/etc/soft/sdcv/dictionaries/ ".a:word." 2>/dev/null", 'dict', a:word) normal G2kzvztk0 endfun