vim-smoothie icon indicating copy to clipboard operation
vim-smoothie copied to clipboard

Search motions scroll

Open vkrajacic89 opened this issue 4 years ago • 4 comments

Hi, is it possible to implement scrolling for search motions (e.g. prev/next search result) using existing function smoothie#cursor_movement(movement)? Thanks!

vkrajacic89 avatar Nov 05 '21 08:11 vkrajacic89

The current interface to do this would be smoothie#do('n') and smoothie#do('N'). The latter seems to work well, the former not so much (it scrolls to the first occurrence, but then is unable to proceed further). Another problem is that error messages if the pattern is not found are much uglier than with native commands.

psliwka avatar May 03 '22 21:05 psliwka

But to actually scroll when I'm in commandline, I press / and type something and smoothscroll comes in, or with <c-g> or <c-t>. In neovim neoscroll does this very well. Thank you for the plugin.

basilgood avatar May 07 '22 08:05 basilgood

I've made a PR that addresses n and N movement

toombs-caeman avatar May 10 '22 21:05 toombs-caeman

I just tested @toombs-caeman PR and it works perfectly.

https://user-images.githubusercontent.com/16057481/167956422-d183c578-e472-4a20-b797-528bf1d3a238.mp4

basilgood avatar May 11 '22 22:05 basilgood