An open API service indexing awesome lists of open source software.

https://github.com/tmccombs/ansify.nvim

Minimal nvim plugin to use the terminal mode to process ansi escape codes
https://github.com/tmccombs/ansify.nvim

Last synced: 5 days ago
JSON representation

Minimal nvim plugin to use the terminal mode to process ansi escape codes

Awesome Lists containing this project

README

          

# Ansify.nvim

This is a simple, and fairly minimal Neovim plugin that allows you to view content that contains ANSI escapes as intended within
the editor, using Neovim's terminal functionality to process the escapes.

# Requirments

The main branch, and versions 2.0.0 and later require Neovim version 0.12 or later.

# Documentation

The full documentation is in [doc/ansify.txt](doc/ansify.txt).

# Acknowledgments

- https://github.com/neovim/neovim/issues/30415#issuecomment-2368519968 for the start of the implementation, although this has added some additional functionality
- https://github.com/kovidgoyal/kitty/issues/719 for some ideas on how to handle kitty's scrollback buffer with Neovim

# Alternatives

There are some other plugins I'm aware of that solve similar problems. However, these
either don't take advantage of Neovim's terminal mode, or in the case of
kitty-scrollback.nvim, are larger and more complicated than what I needed.

- https://github.com/m00qek/baleia.nvim processes escapes in Lua code
- https://github.com/powerman/vim-plugin-AnsiEsc processes escapes with vimscript
- https://github.com/mikesmithgh/kitty-scrollback.nvim If you are using this exclusively for viewing scrollback with kitty