junegunn / vim-peekaboo

:eyes: " / @ / CTRL-R
1.13k stars 39 forks source link

Allow scroll to top and bottom with <Up> & <Down> #6

Closed smutch closed 9 years ago

smutch commented 9 years ago

If the window is too small then not all named registers can be inspected. This PR allows the peekaboo window to be scrolled to the top and bottom using and . I don't have huge experience with writing plugins, so this may not be the best way to achieve this functionality though!...

junegunn commented 9 years ago

Thanks for the PR! I agree that we need a way to see the registers that are outside the visible area. But I'm not yet sure which keys we should choose for this purpose - up, down, ctrl-d/u, ctrl-b/f, ctrl-e/y, ... - and how they should behave. Should we go to the top or bottom or should we scroll one row per keystroke? And I'm planning to implement #4 today, if it's done, this may not be an issue anymore. I'll let you know how it goes. Thanks!

smutch commented 9 years ago

No worries. Thanks for the great plugin though. It really is helping me to use registers to their full potential for the first time. (Also thanks for vim-plug!).

junegunn commented 9 years ago

Thanks. Now with #4 implemented, we can toggle fullscreen mode by hitting spacebar. But, then I realized that it does not solve the problem of short terminal. (EDIT: it helps a little as it hides statusline and tabline) I'll think about the options.

junegunn commented 9 years ago

I've updated the code so that the window is scrollable with various pairs of keys. Thanks.