-
Notifications
You must be signed in to change notification settings - Fork 32
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
Use Vim8.1 popup feature #30
Comments
As far as I understand a popup window cannot be focused so it wouldn't be possible to use the mappings etc. |
Yeah, the point is a blocker. Currently I don't have good idea to workaround that. |
I think if the user wants to use popups to see the blame info, it's useful even if they can't do anything with it. I suppose you can make the popup as big as the blame info, up to the size of the window, to minimise scrolling. |
Current implementation determines size of float window following contents. However, sometimes commit body is too big. And if user wants to see diff of the commit, it would be not fit to window (diff is usually bigger). Another point is local key maps in the float window. This plugin provides some mappings such as |
:help previewpopup |
bump |
I think operation likely that. (skip into preview; direct operation.) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nmap <silent><Leader>g :call setbufvar(winbufnr(popup_atcursor(split(system("git log -n 1 -L " . line(".") . ",+1:" . expand("%:p")), "\n"), { "padding": [1,1,1,1], "pos": "botleft", "wrap": 0 })), "&filetype", "git")<CR> |
This comment has been minimized.
This comment has been minimized.
All right, I'll make time to try to implement this feature this week. |
Discussion here: |
https://github.com/vim/vim/blob/master/runtime/doc/popup.txt
It seems about to be being implemented. If it works and sufficient for this plugin, using it would be better for Vim users.
The text was updated successfully, but these errors were encountered: