-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add option to use locate to list repos #9
Conversation
cljoly
commented
Nov 2, 2021
- refactor: isolate picker creation
- feat: add cached_list
- fix: change prompt for the various commands
6cda47e
to
a5c200b
Compare
There is a bug in the construction of the repository list (we get the .git, not the repo itself). |
on macos intel. it seems that the list is not populated visually when using the cached command.
|
You should be able to run |
Also, does |
I think I’ve fixed the issue with the trailing Here is what I get with a freshly started neovim: I hope the screencast helps to show the behavior I think you should get. |
returns command not found on macos |
returns on macos locate -r '/.git$'
locate: illegal option -- r
usage: locate [-0Scims] [-l limit] [-d database] pattern ...
default database: `/var/db/locate.database' or $LOCATE_PATH |
BUT my terminal is a bit messed up at the moment tho so I cant be hundred percent sure everything returns correctly. |
What linux are you using? |
i have been searching a bit and I don't know if I have come up with anything useful yet, but it seems that you need a different command for locate on macos. |
You're preview looks good! |
Mostly Arch linux. |
Thanks! |
cool, my goal is to migrate to that in the future. |
i find this thread on how to use I'm just posting here for reference. I have to look into this and see if you can create some kind of OS conditional. |
Yeah, I’ve found |
Our posts crossed it seems :) |
Hmmm that's a bummer |
Looks like you can get |
Wow I'll try that later today. It is wierd also because I get some indication it seems that some kind of locate exists on my machine but it doesn't have the -r flag. Hopefully it works without any mods with this brew package. ---- currently ---- If I run
and I can use it to search but I don't know how to get help on it, i mean, eg. |
Yeah, I suspect the version of locate that you have installed currently does not support the |
allright, so now I have installed it and aliased it like so:
Should trepo pick up on this or do I have to change anything in the source you think? |
oh nvm now I think I understand how to add it. |
You would need the “more arguments” thing (not implemented yet) for the You should be able to test just by changing the command here |
cool yeah I've tried that now and it does not work at first try. |
That’s great news! |
could flag order be of importance? |
I’m still thinking about a way to solve this… |
Me to haha |
I have thinking about this pretty much 24/7 for the last couple of days but this seems to be a bit above my level of nvim so I have had to spend some time on other stuff in the mean time but I am extremely looking forward to get some more time to look into this issue again because this is probably one of the most useful plugins ever. |
Thanks for your enthusiasm! I’ve added some log messages (they may need adjustments so that it is less verbose, but for now it should be fine). You can see them by typing When you have some time, maybe copy-pasting the output in a gist for me to look into would prove insightful. |
cool! I will try to do that tomorrow. |
If you still have the link, I would be interested, if only for comparison with what I do |
Yo! I pulled
and it open a reddit link in my web browser |
I simply created a command that calls |
This shows what the preview shows me when I search for
|
i created a new gist. |
Thanks, I'll look into this in the next few days! |
It might be that telescope can’t execute the command for some reason, I’ll try to look deeper into this… |
Hmm interesting!! Tell me if you want me to do something for you |
Do you think that this would be grounds for a bug submission to telescope? |
Maybe, I wanna read the docs some more first though. |
ooh i have to also read the built-in docs |
When I login to this GitHub Actions Workflow (that uses Mac OS), I can run:
and after a few seconds, I get a list of repositories, like so: @molleweide You won’t be able to log in to the action as it requires one of my private SSH keys, but maybe by comparing what’s done in the
works as intended, while:
did not return any results.
|
yo I've seen that you wrote. I'll try to look at this and reply as soon as I can. |
Thanks! |
No worries, i just wanted you to know I am following. I have a lot of stuff to do atm so I cant wait until I get to test this. |
This is to pave the way for the use of commands other than fd
Use a `locate` command instead of `fd`, to get cached results. Update the documentation as well. Fixes #3
Should hopefully make clearer how the list was built.
The current entry maker process the whole list to remove the last part of the path and is not very customizable, but there is most likely a better way, especially for the customizability issue.
@molleweide I’m going to merge this PR as it works for me on Linux and I want to further build on the code without creating more conflicts 😅 . I’ve created a discussion (#13) to further investigate why the |