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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user