Harpoon : Vim Conference 2021
Вставка
- Опубліковано 1 лис 2021
- This is the presentation that I did for vim conference 2021. It is how I have arrived to the conclusion about harpoon. Its goal isn't to teach you about harpoon but how I arrived to its conclusion.
I hope you enjoy this presentation. - Наука та технологія
A caffeine-fueled Starcraft-player-turned-programmer can't stand inefficiencies. This is the greatest channel ever. Also, that was a lot of hyphenation.
Star craft control groups is really what I was thinking about with this idea, perfect!
I frigin love this guy. He is so insane! What a pleasure to watch
thanks! I really appreciate the nice comments.
That dance was amazing. Also, this is a revelation. I have also been struggling with this issue for years. Vim users don't usually encounter this unless you are in a high production environment where things are constantly changing. My last attempt at trying to alleviate this problem in my workflow was using tabs, but you are absolutely right: using tabs are only adding to the burden. Can't wait to add this to my toolbox.
You have something here. Marks always seems so powerful to me and yet for some reason no one uses them. And I was trying to use them and only then I realized "What?, now I have to think in more marks for every project that I am working on" and then I see this video, talking about even more drawback that I didnt think of and giving a very natural and "vim way" solution. Looking forward for this now.
That's the greatest and smartest navigation strategy and implementation ever.
hopefully its good. Its just how I like to do it.
Haven't watched day 2 yet but damn this was a good talk. Finally convinced me to Install it and I gotta say, I can already feel the power!
yayayaya!
The best tool to navigation I have been using every day, love it
How you distilled the problem and arrived to the conclusion is awesome! Keep it up my man!
Thanks! Its hard some times to walk through my thought process and I miss context from time to time, but thank you for the encouraging note!
harpoon really changed the way I used to do things. After just 2 days of using installing. I can feel the power!!
You deserve an Emmy for that dance!
*auto-updatable marks* - exactly what I was missing in (n)vim. This should be built-in. Thanks man!
that is how I feel! That was my big problem. Also the fact that if I switched cwd my marks remain totally screwing me up.
POGSLIDE I'm in the video POGSLIDE
DONT DO THIS
To be honest, when I watched your video I started noticing how much time I spend navigating between files and it started frustrating me. A LOT! Thanks!
I HAD TO install this plugin and since then - I'm a happier person.
You're the one of my most favorite discoveries in recent memory. Understanding why you do the incredible work you do has helped me reflect on myself too. You're a blessing Prime, and thank you for helping coding padawans like me. After all you've been through and shared on your channel, you deserve every good thing coming your way.
Tldr: i admire prime more than coconut oil (blasphemy fr)
This is what I was looking for for so long
So glad I found this channel
Great work. Great way to present where it's coming from.
Thank you^^
yayayayaya!
I love this so much! It's exactly what I was looking for. There's a project where I definitely have to open a few files somewhere during the development and I have a habit of closing my vim down completely when I am done with a feature or something, it's like just a habit at this point. Sometimes I am not in the right subdirectory so I can't even fuzzyfind the file(s) I want to open. Harpoon is going to be a game changer for sure. Also, for some reason, I had completely forgotten about marks, even though I use them for quickly jumping to my vim conf lol. They could've at least removed some of the burden for sure.
Looks awesome, thanks for another great talk! Already looking forward to the tmux version :o
Amazing plugin Prime! I see myself using it a lot. Very intuitive functionality.
this is the only channel that I tell myself ...must click the like button. love that dance!
Awesome thing Primeagen, thanks 🔥
It feels so natural to just write code and don't switch thoughts to finding files
btw: cool dance )
hah :) My dance moves are the best.
DDR king is oily! Btw, thank you for the harpoon gem! Excited to see the multiplex edition.
yaya! We will get there
Nice story. It reminds me of the glorious V mark in old Vim, it's always in my .vimrc. Still there, not moving, because I don't open vim now. Just neovim. Right now I solve the problem in the video with lua bufferline and pins. Pin buffers, close all others regularly.
Very good video and very helpful
you are welcome
@@ThePrimeagen a video on your bash scripts
One of your best videos
thank you :)
That is why I open all important files in splits and never close them. Hopefully harpoon is going to improve that workflow as now I will be able to finally write code in full-screen
holy cow! That would be a pain!
I freaking love this guy ❤
I was using Try 1, because you mentioned `mJ` and `mK` in another video. It worked, but I'm happy with the upgrade to harpooning files instead. Thank you!
no problem. the navigation via global marks is emotionally draining when you have to switch projects.
@@ThePrimeagen having to remember to create the marks in the first place is also frustrating, especially if you need to restart vim. Harpoon is working amazingly well with just 3 keymappings basically; mark this file, jump to the first mark, and show all the locations.
I am facing this exact same issue too and is frustrated to manage when I have opened many buffers. I ultimately use vim projectionist plugin from Tim pope and using alternate file feature that is relevant to the project I am working. I am impressed by your approach and will definitely try that.
Por que prime. This was a master piece talk. Also I was expecting a talk from tj on how to use coconut oil. Where is the talk?
hah. Tj does make an appearance
Using vim since 2006, still exiting with the power button
Pretty classic way to exit honestly.
so much energy, so hilarious! and still good tech content!
You should start doing tik toks 😜
Doc would be proud of that dance
Came for the dance moves. Stayed for the dance moves. Also Harpoon is pretty rad.
Shoot to thrill babe
That's really a cool plugin, I really really appreciate that, keep it up, thank you so much :)
Love your dance!
Really thanks for harpoon!! I'm enjoying it a lot!! :>
Awesome!!! I understand what harpoon does and it's value now and want to try it! I constantly feel like I can't navigate fast enough!
yayayaya! That is why I made it
super duper! don't make fun of me but I'm using this for a netxtjs / rust project and it is helping me bounce around between files like a 8 year old boy who had too much sugar! wonderful!
that is awesome!
Funny thing, I know about Harpoon already, but why do I keep watching talks about it? Ohhh, I know why! The Coconut Man!
most excellent :) Here is some free oil
found this guy some days ago and im addicted hah
Great video, hilarious that you then remained out of breath for the rest of the video :D
prime rocking out to pegboard nerds punching out code and internally screaming “i’m about to change the goddamn world” is a mental image i have with absolute clarity
wait i didn’t get to the actual dance bit in the video yet holy shit haha
Amazing Prime! Please put the git link in the description, people are gonna wanna use Harpoon after this !
OHH NO! sorry :)
Man I love this guys kkkkkkkkkkkkkkkkkkkkkkkkkkkk
love ur plugins
Damn, that intro was sure fireeeee
Thought it was good
love it!
Ty
Hope you had a wonderful day at your first day of Netflix after the holidays
its been great!
I came for the vim knowledge, I stayed for the screaming. And dancing.
excellent :)
Maybe I should finally try this out. I've been navigating with the help of tmux, other file, C-I/O and telescopes fuzzy search open buffers. I also do splits to not lose files, but they always get mixed up after awhile.
yeah. Sounds like we are the same :)
The nft joke had me subscribed 😂😂😂😂
Harpoon is one of the best vim plugins I installed this year. I was like "how did I code without this????" #yearslost
Thank you Prime for this plugin. I also love terminal functionality of it as well
ok I'm hooked
Installed for 2023!
What key mappings do you personally use with Harpoon?
I thought you are going to cry on the end :D :D
You really need to do a brand new VIM setup now
Great talk, miss a little the coconut oil tho
You have strong vibes of Michael Scott (played by Steve Carell) from The Office
I'm pretty new to your channel and boy 🤣, that Mike Tyson one had me dead 💀.
Btw, are you related to DocDisRespect in anyway? Just curious.
!brother
No we are not related, but some how we seem similar in a sense. Growing up in the 90s made some people a bit... weird
The voice, the energy and both legends in their own field .😛.
dude I love you
Thank you
I'm at the Buffer Next :bn :bp step.
it's awful... too many netrw buffers and things that I just wanted to grab a color or other style variables.
yeah! exactly!
Can we get a harpoon preview window like telescope in vim buffer so that before selecting from the menu, we get to see what’s marked?
This is a great idea. Make an issue, consider it yourself. I don't use the window to navigate. Or bother TJ
I fucking lost it at the interpretive dance. I love ThePrimeagen lol
We also want Harpoon for Vim!!!! 😭
i can do it, I CAN DO ITTT
I CAN DO IT TOO
This is the most intensive video I have ever watched. Inject Ritalin into this giy😂
This is amazing, too much coconut oil to digest, well done!
insane the leghths some will go to avoid using fuzzy finding or gasp a mouse.
Are you using "sent" to display all of this slides ?
btw harpoo is bless!!!
nope! I am just using google power point. I am lame.
like how after the dancing he changes into OutOfBreathPrimeagen for the rest of the talk
thanks hackerman
I must have something messed up... when harpoon back to my files, it goes to a blank buffer.
What talking about projects in vim, you mean folders, right?
For example when having marks per project, how does vim know which project you're in? By the working directory?
project is cwd / git root depending on how you use it.
RAUULLLLLLL
Por que maria?
'somebody should make an NFT out of this" 😂
This shit is epic.
“Try shift for a straight line”
I use vim + tmux with just like hundreds of named windows and sessions for all of my projects, I don’t leave the same terminal all day. I just swap session, I have a convention where my docker logs are on window 0 compiler is on 1 and 2 is my main function/router for web servers and then I branch out from there. If you get up to 9 windows you have gone too far and are probably hurting yourself
The concept feels similar to the argument list (`:help arglist`): `:arg foo.c bar.c baz.c` to keep a set of files, `:argu n` to edit the nth one, and abilities equivalent to buffers (`:next`, `:prev`, `:argdo`). Obviously, it's not as "interactive" as your plugin and it's not per-project.
yeah. I haven't explored arglist, but its on my todo.
I had same experience as yours. I had to turn off my computer to exit from VIM
Can you harpoon the coconut oil?
nope. Haproons come with oil already on them.
Nice
ty
hey Prime, I haven't noticed before but sometines your voice sounds a lot like Steve Carell's
yeah. People say that.
why move to Tmux? isn't it to slow?
In the video the mark of harpoon shows the full path of the file, what is not my case. How we can achieve that?
I am a bit confused as your question, could you try again?
@@ThePrimeagen In your case we see: lua/refactoring/treesitter/init.lua
in my case I can see only the basename (init.lua) listed on harpoon
What was the song you were jammin to?
NCS release - Happy
@@ThePrimeagen Legend, thanks!
TJ!!
3:45 lol, did you say "no me gusta" ?
When are your videos going to be uploaded to Netflix? They are loosing a business opportunity here
That is how I feel
af pluth-pluth @9:33 killed me....
Looks like great plugin with a lot of power but I think that for me it has no use. Usually i'm all over the repo with lots of folders and files and instead of 4 main files i'm jumping between 10 or 20. So fzf is the way for now :D although it is emotionaly hurting me :D
But thanks anyway, nice info and maybe day i will realize that there is some use. Keep it up ;)
just trying to solve problems!
I find when I am creating a new feature, this is generally true, when debugging, generally false.
@@ThePrimeagen maybe i will fork it and modify a little bit ;) cause it looks really nice, thanks for this
where is the yeah kid you're about to get powerpointed meme??????????????? btw good vid
Hah! It was a live presentation, so I couldn't be as goof :)
Please Lord Primeagen, don't let Vim Conference 2021 get lost in Twitch's sands of time (a.k.a. retention policies) and upload it maybe here? (:
THE VSM
Why not just use tabs? They are numbered, ordered and you can save them as sessions.
mind == blown
> True
ya ya :) hope you liked it
He sounds exactly like Bill Burr. It's frightening.