-
Notifications
You must be signed in to change notification settings - Fork 72
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
"Option not supported" when paging the contents of Kitty buffer #265
Comments
I use kitty too, I'll take a look. |
The AnsiEsc support, to be honest, is only meant for simple things like Git diffs. And I haven't looked at or updated the version I have in many years. Dunno right now I'm going to do that soon, this project needs a lot of work in general. If you don't really need AnsiEsc support, you can try turning it off with: let g:vimpager.ansiesc = 0 . I will look at whatever the bug is here a bit later. |
I tried your mapping, and it does run for me, although the AnsiEsc output is not ideal. Did you install a different version of AnsiEsc with Plug or pathogen or something? Is your vim recent? |
I'm using NVIM v0.7.2, I just installed "rkitover/vimpager" using vim-plug. I haven't installed AnsiEsc separately. It does "kind of" work for me too, after I move past the error: Disabling ANSI support wouldn't be very useful, as it's really the only reason I'm trying vimpager 😅 Otherwise I would just pipe to
|
The ANSI support in vimpager is generally very broken and is only meant for simple things like Git diffs/colordiff/etc.. As far as highlighting goes, the point of vimpager is to use Vim's powerful filetype detection and syntax highlighting support. I haven't worked on this project in a while, but I might look into updating AnsiEsc in case it has gotten any better and/or fixing some things in it. Maybe there are better solutions now too, I may do some research. I'm not optimistic about this however and I'm not promising anything. AnsiEsc is a giant horrible hack, which I made even worse in my copy.
Have you considered using the tmux scrollback support with something like: set-window-option -g mode-keys vi
bind-key Escape copy-mode
# Add shift-page<up/down> bindings for scrolling.
bind-key -T root -n S-PPage copy-mode -u
bind-key -T copy-mode-vi -n S-PPage send-keys -X page-up
bind-key -T copy-mode-vi -n S-NPage send-keys -X page-down
# Increase copy-mode buffer size.
set-option -g history-limit 300000 . This may give you most of what you want, you can copy and paste from the scrollback as well. This is from the tmux config I maintain here. |
I'm using this keybind with Kitty:
This causes errors when vimpager starts:
The text was updated successfully, but these errors were encountered: