-
-
Notifications
You must be signed in to change notification settings - Fork 856
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
move from telescope/path to plenary/path #473
Conversation
Some of the changes in the diffs don't make sense... it's showing a bunch of changes regarding the names actions that shouldn't be there. When comparing my code to what I see on master by hand it seems to match. Can someone take a look? |
You probably based this branch on your last branch rather than on master. You could try to rebase it on current master. Not sure if it will work tho 😆 Note: I will look at your plenary work first. I probably won't look at this PR today :) |
@Conni2461 I'll try rebasing - thanks!
Of course. We all have things we need to do :) |
This needs to be worked on some more after changes being made to plenary |
@Conni2461 sure I'll take a look at #394 today. As for the rebasing, I took a step back from telescope and was trying to get everything done with plenary first (which I think I have, so I'll get back to this today or tomorrow). And while I'm at it, I'll switch all instances of |
@Conni2461 I just rebased against master, and it seems to have worked (all tests pass, it seems to be running fine, etc.). As for #394, I tested it in the following way:
I then repeated the above steps on my branch, |
(What do you need me to do 😆 ) |
@tjdevries Unless there are changes that need to be made to this code before it can be merged (stuff to resolve the failed linting test maybe?) I'd say there isn't much to do regarding this issue until the PR to plenary has been merged since this is dependent on that. It's probably worth it to see if someone can recreate #394. I've tried and haven't been able to. |
@Conni2461 I don't think we should wait on |
Works for me. I am currently really busy (sorry exams and stuff) so i won't be around that much but i 100% trust @elianiva if he wants to finish it with you :) |
No worries - good luck with the exams! I'll talk to @elianiva here or on gitter when he's free :) |
probably better talk it here, Gitter is a bit janky for me. It deletes DM from other people randomly for some reason 😆 |
Do you need anything from me? |
@tjdevries I believe this is good to go - it just needs to be reviewed by someone. I had talked with Conni about waiting until we have a |
@elianiva Can you take a look at the second conflict in |
Makes sense - thanks :) |
I ended up resetting and doing everything over again because it turned out to be easier than rebasing against the latest changes (at least for me). In the processing of doing everything I realized that not only did @Conni2461 and @elianiva can one of you check this out? |
Also we wanna remove Similar to telescope.nvim/lua/telescope/utils.lua Lines 420 to 434 in 49b86b4
lets finish this pr in the next two days. I am here if you need me :) |
@Conni2461 how do we typically handle deprecating things like |
Could we do something like this? local path = setmetatable({}, {
__index = function()
error("telescope.path is deprecated. please use plenary.path instead")
end
})
return path |
Yes thats better for our case because we deprecate a whole module, not just a couple of functions 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I need to test it, so i will run it today and see if something doesnt work. If all works out i'll merge this evening
Thank you very much :) and thank you for your patience :)
6d388cb
to
8980840
Compare
I talked with tj for a second. He wants to keep the module for now but throw an error. Just so extensions have a week or so to switch over to plenary.path I am going to merge this now. Thanks for all your work and your patience with me :) |
Shouldn't this get an entry in https://github.com/nvim-telescope/telescope.nvim/blob/master/doc/telescope_changelog.txt? |
I forgot about this. Calling the function will yell at you tho 😆 |
Yeah, but some explanation -- and migration guide! -- would be good since it's not as simple as replacing |
I'll add one i noticed something else super small too too, i shouldn't have merged. Honest mistake. I was just glad right now that it was done and it didn't break anything inside telescope 😆 |
@Conni2461 thanks for all your help! Lmk if there's anything else you'd like me to do :) And sorry again for disappearing for weeks on end! |
- adds option to configure the length of shortened parts of filenames - only affects paths when "shorten" is in `path_display` - reimplemented based on changes in nvim-telescope#473 and nvim-telescope#839
- adds option to configure the length of shortened parts of filenames - only affects paths when "shorten" is in `path_display` - reimplemented based on changes in nvim-telescope#473 and nvim-telescope#839
Closes #387