-
Notifications
You must be signed in to change notification settings - Fork 25
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
Holding <C-j> and <C-k> doesn't scroll between items smoothly #39
Comments
@strange Thanks for reporting this! I can reproduce (with |
I think that's because the preview buffers in telescope are cached, whereas at first glance they don't seem to be in neoclip. It's a bit entrenched in the buffer previewer logic but the file is only read if the buffer name does not constitute the file name as per this line which is then set after initial file reading here in telescope On the contrary, you seem to be nvim-neoclip.lua/lua/neoclip/telescope.lua Lines 142 to 147 in 6e5d6db
In brief, I guess the solution would be to define a separate function for I hope my hunch is correct :) |
Thanks a lot @fdschmidt93! This makes a lot of sense, I'll try to fix this :) |
@AckslD Unfortunately it does not seem to help. Turning off preview works though, so you're on the right track. |
Thanks for checking @strange! Hmm, strange (no pun intended), the change made the scrolling smoother for me. Maybe it depended on what specific entries I had in the history at that time. |
Steps to reproduce:
Open up the telescope picker, with < 1000 pastes visible, press and hold down
<C-k>
.Expected outcome:
The list should scroll smoothly (as with
Telescope find_files
).Actual outcome:
Nothing happens until I release the keys. The cursor then moves to the selected item.
Problem:
Have to hold down Ctrl and press
k
repeatedly to navigate the history.Context:
NVIM v0.7.0-dev+661-g99f6260f8
Build type: Debug
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -DNVIM_TS_HAS_SET_MATCH_LIMIT -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough
-Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=1 -I/home/gs/sr
c/checkouts/neovim/build/config -I/home/gs/src/checkouts/neovim/src -I/home/gs/src/checkouts/neovim/.deps/usr/include -I/usr/include -I/home/gs/src/checkouts/neovim/build/src/nvim/auto -I/home/gs/src/c
heckouts/neovim/build/include
Compiled by gs@strangepad
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"
The text was updated successfully, but these errors were encountered: