Skip to content

haolian9/ansiesc.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

render ansi esc sequences

ansiesc-2024-07-05_09.27.45.mp4

impl, limits, design choices

  • it simply reads from the source (a buffer or a file), and sends the contents to a terminal buffer
  • it wont delete the source bufnr
  • as it's a terminal buffer, it inherits limits:
    • terminal mode instead insert mode
    • no responsing user inputs
    • not modifiable by default
    • limited scrollback
    • no undo history

status

  • just works

prerequisites

  • nvim 0.10.*
  • haolian9/infra.nvim

usage

here is my personal config

do --:AnsiEsc
  local spell = cmds.Spell("AnsiEsc", function(args) require("ansiesc")(0, args.open_mode) end)
  spell:add_arg("open_mode", "string", false, "inplace", cmds.ArgComp.constant({ "inplace", "left", "right", "above", "below", "tab" }))
  cmds.cast(spell)
end

credits

thanks to AnsiEsc.vim, which i had used for a long time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages