-
Notifications
You must be signed in to change notification settings - Fork 0
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
Relative paths in the Projects section of the Alpha Plugin. #1
Comments
@Fausto-Korpsvart I'm not sure about relative vs absolute paths - I had a lot of troubling figuring that part out. But truncated paths are not too hard: The relevant part of my dotfiles would be here: https://github.com/sho-87/dotfiles/blob/master/nvim/lua/plugins/modules/alpha.lua#L124-L140 L124: get my list of recent projects from telescope plugin |
Hi again, @sho-87. OK, I understand better the Plenary part, but I still can't get the result, I have placed the code as you have in your configuration and I still have the full path in the Projects. Or is it something I have to configure in the Telescope Project Plugin? |
from your paths it looks like youre on linux, which uses a different path separator than on windows (which is what im using). so I think you'll need to tinker with the regular expressions on L134 an ensure that I would also throw in a few prints for I remember it took me a lot of trial an error to get this path thing working |
Yes, thanks, actually, I thought about that, as I noticed that in the Telescope Project Plugin the path you have assigned references the Windows paths, so I thought that in Alpha I should reassign those paths to make them work on Linux, when I have a bit of time I will do that. And I've also had to do some trial and error on various plugins, and it's great when you finally get it right. Thank you very much for your answers, have a good time. |
Greetings, @sho-87
Well, I came across your dotfiles in the theme sharing section of the
Alpha Dashboard
Plugin, I was looking for a way to add the Project section to my theme and when I saw your theme and setup it looked pretty cool, very clean, and it's that way of adding the Projects that I would like to set it up.You know, I used elements from your setup to add this section and everything works fine, but the problem I've noticed is that the projects added to Telescope shows the full path in Alpha, which makes the text in the Alpha layout overflow.
The question is: Is there any way to make it show a relative path instead of the full path? Something like in the MRU section, which shows truncated paths.
Thanks in advance, and thanks for posting your theme, I found your setup very helpful.
The text was updated successfully, but these errors were encountered: