Skip to content

[mini.pick] alignment with grep_live? #1192

Answered by echasnovski
pkazmier asked this question in Q&A
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 6 replies

Comment options

You must be logged in to vote
6 replies
@echasnovski
Comment options

@pkazmier
Comment options

@echasnovski
Comment options

@pkazmier
Comment options

@echasnovski
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
3 participants