feat: implement nvimpager = "float"#608
Conversation
|
Thank you! It works! Some ideas (waiting for comments):
|
|
good ideas, i'll try to implement these changes later today and see what looks good |
|
i have implemented the changes:
one shortcoming (or feature?) compared to the last version is that the example/help window does not get directly overlaid on top of the preview help/example window, but is relative to it. subsequent help->help/example->example windows are overlaid as before. |
|
Thank you, @kkanden! Some observations:
|
so in the
that happens if the editor window is less than 60 and the width of the floating window defaults to 80 columns. this also makes the window look like it's stuck to the side of the editor instead of centered. i thought this looked better than a centered but small and squished window. |
|
I'm sorry, but I'm on a trip now and will need some time to properly review the code again... |
this implements the "float" option for nvimpager for both R help and example. i have added a utils function for creating floating.
in the future, a user config option could be added to customize the location and size of the floating window. by default it just centers the window.