skanehira / translate.vim Goto Github PK
View Code? Open in Web Editor NEWtranslate language plugin
License: MIT License
translate language plugin
License: MIT License
:AutoTranslateModeEnable
した際にうまく動かなかったので報告です。
s:focus_window()
が window-ID を要求していますが、違ったものを渡しているためにウィンドウフォーカスの処理でおかしくなっているように思いました。
以下の部分をそれぞれ修整すると良さそうです。
translate.vim/autoload/translate.vim
Line 130 in 97f97c5
let s:currentw = win_getid()
translate.vim/autoload/translate.vim
Line 173 in 97f97c5
call s:focus_window(bufwinid(tranw))
素敵なプラグインをありがとうございます 😄
"Lunch
gvim.exe -Nu NONE
" Setting
:set rtp+=/path/to/translate.vim
:runtime plugin/translate.vim
:let g:translate_source = 'ja'
:let g:translate_target = 'en'
" One buffer opend 2 window
i俺は海賊王になる<ESC><C-w>v
" Move right window
<C-w>l
" Select string and do :Translate
_vg_:Translate
expected: not move current window
actuary: move current window
VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 16 2019 22:08:59)
MS-Windows 64 ビット GUI 版 with OLE サポート
適用済パッチ: 1-1866
Windows7
すみません、日本語で、、
複数Windowで同じバッファを開いている状態で:Translateを実施すると
一番左のウィンドウ がカレントウィンドウになっているようです。
ご確認宜しくお願いします。:bow:
When I select 3 lines, I can see 2 lines.
When I select 1 lines, I can not see lines!
So I can't use (Translate)
Windows10(2004)
vim 8.2.1199
curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL
go 1.14.4
It looks like neovim isn't supported. Any plans to do so?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.