Загрузка...

Powerful Multiline Search and Replace in Neovim with grug-far.nvim + ast-grep

Have you ever needed to replace really complex strings in Neovim? Probably sometimes you need to replace entire paragraphs that include multiple lines

Or maybe you need need more advanced search and replace patterns that actually understand your code? That's where the ast-grep functionality comes in handy

I have another example, I needed to add `{:target="_blank"}` to each one of the markdown links on each one of my blogpost articles

All of this is possible with the grug-far.nvim plugin

Join us in discord
https://discord.gg/NgqMgwwtMH

YouTube Memberships
https://www.youtube.com/channel/UCrSIvbFncPSlK6AdwE2QboA/join

If you find this video helpful and want to support me
https://ko-fi.com/linkarzu

Follow me on twitter
https://x.com/link_arzu

My dotfiles (remember to star them)
https://github.com/linkarzu/dotfiles-latest

grug-far.nvim github repo
https://github.com/MagicDuck/grug-far.nvim

Commands found in blogpost
https://linkarzu.com/posts/neovim/grug-far/

#linkarzu #neovim #ghostty #wezterm #kitty #vim #markdown

Видео Powerful Multiline Search and Replace in Neovim with grug-far.nvim + ast-grep канала linkarzu
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять