diff options
author | Teddy Wing | 2023-11-29 02:10:59 +0100 |
---|---|---|
committer | Teddy Wing | 2023-11-30 00:05:23 +0100 |
commit | 55a482ccc2756d0c79aa4790dc061f6f5d61fccb (patch) | |
tree | ba1f5eaf1b6024915d8a4fe2db04ba6ea3d56e0c /bundle/prr-ui/ftplugin | |
parent | 6f595300351b659daf7f74d45feddc678b643ea7 (diff) | |
download | dotvim-55a482ccc2756d0c79aa4790dc061f6f5d61fccb.tar.bz2 |
prr-ui: Pick a random emoji to include in `PrrApprove`
I collected a list of emoji from
https://github.com/ikatyang/emoji-cheat-sheet and trimmed it down. Now,
the pull request approval message will chose one of these emoji at
random to include.
Diffstat (limited to 'bundle/prr-ui/ftplugin')
-rw-r--r-- | bundle/prr-ui/ftplugin/prr/prr_ui.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle/prr-ui/ftplugin/prr/prr_ui.vim b/bundle/prr-ui/ftplugin/prr/prr_ui.vim index 488cb51..09e02d2 100644 --- a/bundle/prr-ui/ftplugin/prr/prr_ui.vim +++ b/bundle/prr-ui/ftplugin/prr/prr_ui.vim @@ -1,7 +1,7 @@ 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>gg +command! -buffer PrrApprove + \ normal! ggOLooks good <C-r>=prr_ui#RandomEmoji()<CR><CR><CR>@prr approve<CR><Esc>gg command! -buffer PrrReject normal! ggO<CR><CR>@prr reject<CR><Esc>gg let b:undo_ftplugin .= '| delcommand -buffer PrrApprove' |