-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zeavim starts Zeal in foreground #18
Comments
No this is not expected, vim should not be blocked. There is the command used in the plugin, try it directly and see what happen: " Linux
:silent exe "!zeal --style=gtk+ foo:bar 2> /dev/null &" | redraw!
" Windows
:silent exe "!start path/to/zeal.exe foo:bar &" | redraw! |
Ah, if I disable the IMHO, I think it is better to separate the focus command from the zeal command. That is, I think you should have two let l:cmd = printf('!%s%s %s %s %s &',
\ (has('unix') ? '' : 'start '),
\ g:zv_zeal_executable,
\ g:zv_zeal_args,
\ shellescape(l:docset . l:query),
\ (has('unix') ? '2> /dev/null' : '')
\ )
silent execute l:cmd
if g:zv_keep_focus
\ && has('unix')
\ && executable('wmctrl')
\ && v:windowid !=# 0
silent execute 'wmctrl -ia' v:windowid
endif I would also claim that the following is more readable: silent execute '!'
\ . (has('unix') ? '' : 'start ')
\ . g:zv_zeal_executable
\ . ' ' . g:zv_zeal_args
\ . ' ' . shellescape(l:docset . l:query)
\ . (has('unix') ? ' 2> /dev/null' : '')
\ . ' &' Although clearly this is a subjective matter. :) |
Strange, this one is applied only when
Good idea, I'll do it later when having time ⌚
Nah 👅 I prefer the good old |
I have So far I like your plugin, good work! I would prefer a similar plugin that worked without external guis, but that is only a minor drawback. Zeal seems to work pretty well. |
Have you tried |
Yes, and |
Hi. I'm curious if I am misunderstanding something: When I start Zeal through zeavim, the Zeal window is blocking Vim. Is that by intention?
I'm on Vim 8.0.427 on Arch Linux. This behaviour happens with both vim and gvim. I use the following settings:
I would expect that the Zeal window opens as a background process, such that I could read the docs while editing the file. The current behaviour requires me to close the Zeal window before I continue editing the file.
The text was updated successfully, but these errors were encountered: