diff --git a/lua/keymap/tool.lua b/lua/keymap/tool.lua index 60b0af91d..617a2d082 100644 --- a/lua/keymap/tool.lua +++ b/lua/keymap/tool.lua @@ -96,8 +96,8 @@ local plug_map = { :with_noremap() :with_silent() :with_desc("tool: Find files"), - ["n|fw"] = map_callback(function() - require("search").open({ collection = "word" }) + ["n|fp"] = map_callback(function() + require("search").open({ collection = "pattern" }) end) :with_noremap() :with_silent() @@ -112,8 +112,8 @@ local plug_map = { :with_noremap() :with_silent() :with_desc("tool: Locate Git objects"), - ["n|fr"] = map_callback(function() - require("search").open({ collection = "rootdir" }) + ["n|fd"] = map_callback(function() + require("search").open({ collection = "dossier" }) end) :with_noremap() :with_silent() diff --git a/lua/modules/configs/tool/search.lua b/lua/modules/configs/tool/search.lua index c01555fd0..ffad69cbc 100644 --- a/lua/modules/configs/tool/search.lua +++ b/lua/modules/configs/tool/search.lua @@ -40,7 +40,7 @@ return function() }, }, -- Search using patterns - word = { + pattern = { initial_tab = 1, tabs = { { @@ -89,7 +89,7 @@ return function() }, }, -- Retrieve dossiers - rootdir = { + dossier = { initial_tab = 1, tabs = { { diff --git a/lua/modules/configs/ui/alpha.lua b/lua/modules/configs/ui/alpha.lua index fcc7cddd7..befcbd2e3 100644 --- a/lua/modules/configs/ui/alpha.lua +++ b/lua/modules/configs/ui/alpha.lua @@ -62,14 +62,14 @@ return function() { noremap = true, silent = true, nowait = true } ), button( - "space f r", + "space f d", icons.ui.FolderWithHeart .. "Retrieve dossiers", leader, nil, { noremap = true, silent = true, nowait = true } ), button( - "space f w", + "space f p", icons.documents.Word .. "Find patterns", leader, nil, diff --git a/tutor/dots.tutor b/tutor/dots.tutor index 70f55ebd5..c4232b100 100644 --- a/tutor/dots.tutor +++ b/tutor/dots.tutor @@ -96,14 +96,14 @@ the "Frecency" and "Oldfiles" tabs enable searches based on the most frequently recently opened files, respectively, while the "Buffers" tab facilitates searches among currently opened buffers. -For pattern searches within the current working directory, press ``{normal}`f`{normal}`w`{normal}. This +For pattern searches within the current working directory, press ``{normal}`f`{normal}`p`{normal}. This functionality leverages [ripgrep](https://github.com/BurntSushi/ripgrep) for its search capabilities, making it as intuitive to use as ripgrep itself. As with the "file finder collection", ``{normal} and ``{normal} can be used to cycle through the search tabs. The "Word under cursor" tab displays all instances of the word located under the current cursor position. Nvimdots also offers comprehensive dossier management, seamlessly integrated with -Telescope. Press ``{normal}`f`{normal}`r`{normal} to access the recent dossiers list. The first tab +Telescope. Press ``{normal}`f`{normal}`d`{normal} to access the recent dossiers list. The first tab presents the currently saved sessions; select a session and press ``{normal} to restore the corresponding session. The second tab lists various projects. Instead of exiting this interface, you can add the current working directory to the project list by