ternjs / tern_for_vim

Tern plugin for Vim
MIT License
1.83k stars 100 forks source link

print doc to status bar instead of spliting a window if length <= 120 #167

Closed maple-leaf closed 7 years ago

maple-leaf commented 7 years ago

I think it's a better way to show doc on status bar if length of doc is small, because this is a silent way and doc can display well too.

And fix non ascii chars showing escaped string instead of showing as it is.

marijnh commented 7 years ago

Hi. Are the status bar and the split window both guaranteed to be at the bottom of the screen? (If not, I think it would be annoying to not know in advance where the requested information is going to appear.)

maple-leaf commented 7 years ago

Not. The split window will show on top. I may try to split window at bottom, but the default way to show manual (trigger by pressing K on a keyword) of vim is at top. Maybe just stay default way is better.

marijnh commented 7 years ago

Yeah, I've pushed your unicode fix as af09245 (thanks!), but I don't think the other part is a good idea if it makes the user experience unpredictable.