Skip to content
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

Search motions scroll #33

Open
vkrajacic89 opened this issue Nov 5, 2021 · 4 comments
Open

Search motions scroll #33

vkrajacic89 opened this issue Nov 5, 2021 · 4 comments

Comments

@vkrajacic89
Copy link

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

@psliwka
Copy link
Owner

psliwka commented May 3, 2022

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.

@basilgood
Copy link

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.

@toombs-caeman
Copy link

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

@basilgood
Copy link

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

vokoscreenNG-2022-05-12_01-13-45.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants