diff options
| author | Ben Smith <37027883+smithbm2316@users.noreply.github.com> | 2021-04-14 09:31:05 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-14 12:31:05 +0300 |
| commit | c5f0d05835f70f4bce15168d949563ef4c842e4d (patch) | |
| tree | b729147e6922da06de5d3d7a3298efd0e1992484 /lua/telescope/builtin/git.lua | |
| parent | b7d0488db91240bed3afe4b82e5c974836ee060f (diff) | |
git(action): create and checkout branch (#755)
* added git action for creating and checking out a new branch, added basic docstrings for git actions
* Added confirmation for creation of new branch, changed default mapping
to <c-u>
* Switched back to `<c-a>` default mapping for now
Diffstat (limited to 'lua/telescope/builtin/git.lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index b2270ad..f7c0096 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -177,11 +177,12 @@ git.branches = function(opts) map('i', '<c-r>', actions.git_rebase_branch) map('n', '<c-r>', actions.git_rebase_branch) + map('i', '<c-a>', actions.git_create_branch) + map('n', '<c-a>', actions.git_create_branch) + map('i', '<c-d>', actions.git_delete_branch) map('n', '<c-d>', actions.git_delete_branch) - map('i', '<c-u>', false) - map('n', '<c-u>', false) return true end }):find() |
