diff options
| author | Joel Palmer <joelpalmer@users.noreply.github.com> | 2021-07-29 16:16:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-30 00:16:45 +0300 |
| commit | b742c50bf119d7c442a553cc52e8afde0086ae02 (patch) | |
| tree | 5d3fa49aa54a157394d2328b3ce8d48754cedb6a /lua/telescope/builtin/init.lua | |
| parent | 82f4d3028b64ad930123a5c713c538c872185a80 (diff) | |
feat: add git reset action for git commits picker (#999)
Diffstat (limited to 'lua/telescope/builtin/init.lua')
| -rw-r--r-- | lua/telescope/builtin/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index c581ac7..163a258 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -144,6 +144,9 @@ builtin.git_files = require("telescope.builtin.git").files --- Lists commits for current directory with diff preview --- - Default keymaps: --- - `<cr>`: checks out the currently selected commit +--- - `<C-r>m`: resets current branch to selected commit using mixed mode +--- - `<C-r>s`: resets current branch to selected commit using soft mode +--- - `<C-r>h`: resets current branch to selected commit using hard mode ---@param opts table: options to pass to the picker ---@field cwd string: specify the path of the repo builtin.git_commits = require("telescope.builtin.git").commits |
