chore: add action.which_key to README (#1192)

This commit is contained in:
fdschmidt93
2021-09-01 20:36:24 +02:00
committed by GitHub
parent fbe004142f
commit 8842f5dde2

View File

@@ -269,20 +269,21 @@ require("telescope").setup {
Mappings are fully customizable. Mappings are fully customizable.
Many familiar mapping patterns are setup as defaults. Many familiar mapping patterns are setup as defaults.
| Mappings | Action | | Mappings | Action |
|----------------|--------------------------------------------| |----------------|--------------------------------------------------------------|
| `<C-n>/<Down>` | Next item | | `<C-n>/<Down>` | Next item |
| `<C-p>/<Up>` | Previous item | | `<C-p>/<Up>` | Previous item |
| `j/k` | Next/previous (in normal mode) | | `j/k` | Next/previous (in normal mode) |
| `<cr>` | Confirm selection | | `<cr>` | Confirm selection |
| `<C-q>` | Confirm selection and open quickfix window | | `<C-q>` | Confirm selection and open quickfix window |
| `<C-x>` | go to file selection as a split | | `<C-x>` | Go to file selection as a split |
| `<C-v>` | go to file selection as a vsplit | | `<C-v>` | Go to file selection as a vsplit |
| `<C-t>` | go to a file in a new tab | | `<C-t>` | Go to a file in a new tab |
| `<C-u>` | scroll up in preview window | | `<C-u>` | Scroll up in preview window |
| `<C-d>` | scroll down in preview window | | `<C-d>` | Scroll down in preview window |
| `<C-c>` | close telescope | | `<C-/>/?` | Show picker mappings (in insert & normal mode, respectively) |
| `<Esc>` | close telescope (in normal mode) | | `<C-c>` | Close telescope |
| `<Esc>` | Close telescope (in normal mode) |
To see the full list of mappings, check out `lua/telescope/mappings.lua` and To see the full list of mappings, check out `lua/telescope/mappings.lua` and
the `default_mappings` table. the `default_mappings` table.