aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/prr-ui/ftplugin
diff options
context:
space:
mode:
authorTeddy Wing2023-11-27 23:51:05 +0100
committerTeddy Wing2023-11-27 23:56:32 +0100
commitea426334f9fa8c6dfaa2efeed00f6e25aec4d908 (patch)
tree04908d76d9d858616c63bb9d36b4d52d8dd111d8 /bundle/prr-ui/ftplugin
parent47a069063b7eb5354f73c36c70e7cb907853c5b6 (diff)
downloaddotvim-ea426334f9fa8c6dfaa2efeed00f6e25aec4d908.tar.bz2
prr-ui: Add `PrrApprove` and `PrrReject` commands
Add commands to quickly approve or reject a pull request.
Diffstat (limited to 'bundle/prr-ui/ftplugin')
-rw-r--r--bundle/prr-ui/ftplugin/prr/prr_ui.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundle/prr-ui/ftplugin/prr/prr_ui.vim b/bundle/prr-ui/ftplugin/prr/prr_ui.vim
new file mode 100644
index 0000000..c1dc9d7
--- /dev/null
+++ b/bundle/prr-ui/ftplugin/prr/prr_ui.vim
@@ -0,0 +1,8 @@
+let b:undo_ftplugin = ''
+
+" TODO: Pick an emoji at random from a pre-defined list.
+command! -buffer PrrApprove normal! ggOLooks good <CR><CR>@prr approve<CR><Esc>
+command! -buffer PrrReject normal! ggO<CR><CR>@prr reject<CR><Esc>
+
+let b:undo_ftplugin .= '| delcommand -buffer PrrApprove'
+let b:undo_ftplugin .= '| delcommand -buffer PrrReject'