mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
chore(build): auto-generate docs
This commit is contained in:
parent
ced377a057
commit
bc3f656620
1 changed files with 27 additions and 6 deletions
|
@ -1635,12 +1635,21 @@ Open recent projects
|
|||
preview = { minimal = true },
|
||||
input = {
|
||||
keys = {
|
||||
-- every action will always first change the cwd to the project
|
||||
["<c-e>"] = { { "cd", "picker_explorer" }, mode = { "n", "i" } },
|
||||
["<c-f>"] = { { "cd", "picker_files" }, mode = { "n", "i" } },
|
||||
["<c-g>"] = { { "cd", "picker_grep" }, mode = { "n", "i" } },
|
||||
["<c-r>"] = { { "cd", "picker_recent" }, mode = { "n", "i" } },
|
||||
["<c-w>"] = { { "cd" }, mode = { "n", "i" } },
|
||||
-- every action will always first change the cwd of the current tabpage to the project
|
||||
["<c-e>"] = { { "tcd", "picker_explorer" }, mode = { "n", "i" } },
|
||||
["<c-f>"] = { { "tcd", "picker_files" }, mode = { "n", "i" } },
|
||||
["<c-g>"] = { { "tcd", "picker_grep" }, mode = { "n", "i" } },
|
||||
["<c-r>"] = { { "tcd", "picker_recent" }, mode = { "n", "i" } },
|
||||
["<c-w>"] = { { "tcd" }, mode = { "n", "i" } },
|
||||
["<c-t>"] = {
|
||||
function(picker)
|
||||
vim.cmd("tabnew")
|
||||
Snacks.notify("New tab opened")
|
||||
picker:close()
|
||||
Snacks.picker.projects()
|
||||
end,
|
||||
mode = { "n", "i" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -2159,6 +2168,12 @@ Snacks.picker.actions.item_action(picker, item, action)
|
|||
Snacks.picker.actions.jump(picker, _, action)
|
||||
```
|
||||
|
||||
### `Snacks.picker.actions.lcd()`
|
||||
|
||||
```lua
|
||||
Snacks.picker.actions.lcd(_, item)
|
||||
```
|
||||
|
||||
### `Snacks.picker.actions.list_bottom()`
|
||||
|
||||
```lua
|
||||
|
@ -2338,6 +2353,12 @@ and moves the cursor to the prev item.
|
|||
Snacks.picker.actions.select_and_prev(picker)
|
||||
```
|
||||
|
||||
### `Snacks.picker.actions.tcd()`
|
||||
|
||||
```lua
|
||||
Snacks.picker.actions.tcd(_, item)
|
||||
```
|
||||
|
||||
### `Snacks.picker.actions.toggle_focus()`
|
||||
|
||||
```lua
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue