Skip to content
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

Truncate border titles #95

Closed
Conni2461 opened this issue Mar 11, 2021 · 4 comments
Closed

Truncate border titles #95

Conni2461 opened this issue Mar 11, 2021 · 4 comments

Comments

@Conni2461
Copy link
Collaborator

@delphinus i wrote you in gitter private but you haven't answered so i might try this way.

I wanna move your truncate code from telescope into plenary so we can use it to truncate border titles. See nvim-telescope/telescope.nvim#528 (comment)
I just wanted to ask if you want to do it because you wrote most of that amazing code. :)

I would remove the code in telescope afterwards, in the #528 PR

@Conni2461 Conni2461 changed the title truncate Truncate border titles Mar 11, 2021
@delphinus
Copy link
Contributor

Oh, sorry for it in gitter. OK I'll transfer the code into here. Wait a minute.

@delphinus delphinus mentioned this issue Mar 13, 2021
2 tasks
@delphinus
Copy link
Contributor

I created #96 and ported funcs that is ported from VimL ones.

  • strdisplaywidth()
  • strcharpart()
  • entry_display.truncate()

And I'll put PR to use these funcs from telescope.nvim itself.

@delphinus
Copy link
Contributor

And I added another one.

  • align_str()

@Conni2461
Copy link
Collaborator Author

This was implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants