Skip to content
Discussion options

You must be logged in to vote

The simplest (and the hackiest) suggestion is to temporarily monkey patch vim.fn.strdisplaywidth = string.len.

The more proper suggestion would be to replace \0 with come rare character (or even '│' right away), align using replaced character as split pattern, and then replace them back to be \0.


Just a note: as grep_live is a fairly performance critical function, I don't think it having alignment option similar to MiniExtra.pickers.buf_lines is a good idea.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@pkazmier
Comment options

pkazmier Sep 2, 2024
Collaborator Author

@echasnovski
Comment options

@pkazmier
Comment options

pkazmier Sep 3, 2024
Collaborator Author

@echasnovski
Comment options

@dwoodwardgb
Comment options

Answer selected by pkazmier
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants