Skip to content

feat: allow truncation of strings from left#236

Merged
Conni2461 merged 2 commits intonvim-lua:masterfrom
l-kershaw:feat/truncate_left
Sep 16, 2021
Merged

feat: allow truncation of strings from left#236
Conni2461 merged 2 commits intonvim-lua:masterfrom
l-kershaw:feat/truncate_left

Conversation

@l-kershaw
Copy link
Copy Markdown
Collaborator

Allows optional direction for truncate, where >0 truncates from the right and <0 truncates from the left.

Could be used for truncation of paths in telescope, as requested here.

@Conni2461
Copy link
Copy Markdown
Collaborator

nice. I like it. Thanks :)

But i hate to be the guy. Can we get one or two tests here https://github.com/nvim-lua/plenary.nvim/blob/master/tests/plenary/strings_spec.lua#L47

@l-kershaw
Copy link
Copy Markdown
Collaborator Author

No worries, was planning to do that later today 👍

@l-kershaw
Copy link
Copy Markdown
Collaborator Author

@Conni2461 tests are now added

@Conni2461
Copy link
Copy Markdown
Collaborator

thanks :)

@Conni2461 Conni2461 merged commit ce8f7fa into nvim-lua:master Sep 16, 2021
@l-kershaw l-kershaw deleted the feat/truncate_left branch September 16, 2021 14:19
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

Successfully merging this pull request may close these issues.

2 participants