Advanced telescope.nvim Examples
ฝัง
- เผยแพร่เมื่อ 11 ธ.ค. 2024
- Telescope.nvim advanced usage!!
telescope: github.com/nvi...
fzf-native: github.com/nvi...
I mentioned my course from boot dev, which you can check out here: boot.dev/teej
Language Server from Scratch: • tree-sitter explained
All notes are here: github.com/tjd...
#neovim #lua #programming #modding
stayed up all night for this
Haha sorry, I'll try and have the next one done earlier in the day 😉
Sending results to the quickfix list with ctrl--q is such a hack! thanks for sharing!
ctrl--q is sending all, if only want to select a few, use alt-q
use 'tab' to select a few interested entries before alt-q sending to qfixlist
it is useful too, refer to '?' in selection mode
I use this one almost everyday. Very convenient
I am giving nvim another chance for the nth time. This is one of the things I really want to understand.
@@camilocoelho7097please do, I am telling you and do not quit this time no matter how much you want to. I also went back and forth, got frustrated multiple times but then decided to just stick with it and now I enjoy it and it's only been couple of months.
and you can also preselect found entries with tab and then send them to quickfix list
I thought your son heard you say "live multigrep" and they thought it was a curse word and was like "heeey, (you can't say that)"
Who is your daddy and what does he do? My dad writes code and grips craps... vim btw
this video was a banger. Incredibly informative but also understandable! This is amazing
I've been stumbling around one of those big neovim setups like Astronvim for a while now after spending years with a custom vim setup. These telescope and lua tutes are fucking awesome dude. I've been modding neovim to my hearts delight since watching you. Getting lua in my editor is chefs kiss!
13:46 that was very good! You should fake missing stuff more often so we think you're actually human.
You deserve millions of views for this series. Don’t worry though, this is long living content that will get views in the months/years to come. Great job!
This was long on my bucket list but didn't know how to do it. Thanks so much for sharing. I really love the series
Really insightfull! I found the docs for creating custom telescope pickers a bit hard to digest, but this video clarifies a lot of stuff! Thanks!
Me sitting here waiting on this mornings video with my coffee, just soaking in the advanced telescope goodness a second day in a row.
great series TJ, can't wait for more. What a way to my 2025
This is just what I needed, thanks! Looking forward to more telescope videos, I’m writing a picker that fetches data to display in the picker and I was using octo as reference , but I don’t think it uses what you showed here, now I have a new thing to explore 👀
Great video.
Would love to see a video about implementing a picker which lists all snippet names. I keep forgetting them. Listing and picking them would be really great
thank you for continuing the series
This is awesome!!!
Learning so much
Thnx TJ
Can’t wait to watch the video explaining harpoon :)
I have been using live grep alot, and i have been putting all the results in a quickfix, and then opened that quicklist back into telescope again to filter out filetypes lul. This is a way better way to do it thanks
great video as always, maybe I will write my own picker over the holidays for fun :)
speaking of the quickfix list, in the past i've found it handy to search in telescope, hit C-q, and then use :cdo to run a command against all of the results
Thanks!
4:16 that was cute bro
When he rebels as a teenager he's going to start using Emacs.
this kind of content exactly is making me learn nvim so fast tysm
i started vim a week ago but tj makes it so lighttttt
Very cool really liking this series TJ
Now that's good content! Thanks for sharing!
looking forward to the new one!
Nice, thanks for coming back 😅
Yeah , actually been wanting this finxhionality I've noticed, thx
Wow! What a great video, this is truly amazing!
I would like to ask if someone know if there was a way to remember the previous input we gave to telescope. I would like to implement Intellij multi grep picker, where actually when you open it, the second part (the one that matches the file name) is set already by default to the one used before, while the first part is empty so that you can search for something else.
good job, thanks for your effort
amazing content! thank you
Thanks! Beautiful as always.
Quick question: how can I change this custom picker's (multigrep) theme to ivy?
Hey teej what are you using to show the keystrokes below???
Wake at 4:00 in the night for this.
he is saying he wakes up at 4am or something
Nah, I sleep after I see the sun rays, at least that's actually less insane than waking up at 4AM, I wake after afternoon.
Could you go over how to handle multiselections? I'm trying to set up a keymap for closing multiple (selected via telescope) buffers from a list. I just can't seem to find any documentation, or source code, on handling the multiselection programatically.
Whoa, shit got real in this one!
Thank you TJ
TJ you should show have to make a user command for the lua function, so the command can be mapped outside of the "plugin", and show they can call it? maybe :D
Why not extending Telescope prompt to support arguments such as "file:tsx" like some online code search have? So that an user can write "pattern file:cpp" ?
that's fire man
9:30 how to add @hint ?(i dont know what is called)
This is magic!
Can you have it store a per-picker last used search string and search string history, and automatically pre-fill the search field with the last used string and have some way of navigating through the history?
Great series btw, much appreciated!
Tj easy now, you are jump around and adding :find() without saying why at the time, we want people to make more plugins for Telescope, so take some air and easy, good video tho
Is it possible maybe to change filtering in multigrep from double spaces to pipe "|" ? It's common pattern in templating languages and thought it could match better for me :D
Great video. Tx ! One question though. Can you explain the table.insert() ? I know that it inserts a line in a table, but which table ? What does it reference ?
Unless I miss understood, it creates a table of flags and arguments to pass to the ripgrep (rg) command in order.
@@ArdentInfoSec Oh .. I must have been sleeping. The first argument is the table to insert into right ? The rg arguments part i got. tx.
I guess If I haven't found this channel I would still be using vs code.
There's a great instructive video on the youtube channel Developer Voices where he creates a telescope picker for viewing docker images, and shows how to step by step.
Totally agree this is fire and exactly what I am looking for to create some small neovim plugins. For whatever reason I cannot get the keymap portion to work though... Anyone else?
buy a terminal coffee using telescope 😂
Killin!
nvim scares me some times when I fat finger keys and random menus pop up.
By no means would I question my nvim overlord but allow me to ask if fzf={} is really required besides load_extension. Healthcheck shows it as OK with load_extension alone. Can I somehow confirm it's working as expected? ❤
Thnkz Tj 😊
how many takes per video do you do? :)
very useful function
Can you please release all videos all at once 😅
Concerning the use of joinpath, I get a Lua warning:
└╴ Cannot assign `string|string[]` to parameter `string`.
- `string[]` cannot match `string?`
- Type `string[]` cannot match `nil`
- Type `string[]` cannot match `string` Lua Diagnostics. (param-type-mismatch) [24, 31]
Why isn't the warning also in the video, I'm wondering?
It might be that the nvim version is different. The types are bundled with nvim, I think.
giving us the juice
Commit and push your changes please
makes TWO videos about his plugin xD
hell yeah
pleas help my preview windownot showing any result, i have rg installed
same issue, didnt find the answer yet
8:13
Don't you think it's too advanced? Telescope has poor documentation. I have a lot of struggle to make simple customisation for my picker😢
My brother in christ you are watching the documentation
Clutch
Anyone got the code so i don't have to type it out 😅
How do I buy you coffee...🎉
TJ prefers fresh goat's milk.
If you meant, how do i buy your coffee - thats basically self exclusion. If you meant you want to buy Teej some coffee, I'm pretty sure he has enough access to caffiene ;)
Thanks!