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
This commit is contained in:
Ben Smith
2021-04-14 09:31:05 +00:00
committed by GitHub
parent b7d0488db9
commit c5f0d05835
2 changed files with 43 additions and 2 deletions

View File

@@ -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()