Загрузка...

Custom "Search Everything" feature in Neovim

I hate UI of Android/Visual Studio but I love their Search Everything feature. This is my first attempt to have it in Neovim.

I use ripgrep to search files and content in the current directory and I populate the quickfix list. I use a simple buffer for the user input.

Nothings fancy, just the methods from the neovim api and 100~ lines.

00:00 Intro
00:35 Creating Buffer
01:38 Create Window
05:48 Open Search
08:30 Close Search
09:42 Toggle Search
11:44 Keymap
12:54 Search content entries
20:17 Search files entries
23:48 Search function
32:37 Handle text change
41:08 Fixing errors
43:01 Final results

Source code:
https://github.com/FractalCodeRicardo/dev-config/blob/master/nvim/lua/my/search-everything.lua

My config:
https://github.com/FractalCodeRicardo/dev-config/tree/master

Видео Custom "Search Everything" feature in Neovim канала Programming Headache
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять