aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/prr-ui
AgeCommit message (Collapse)Author
2023-12-12prr-ui: Allow `PrrApprove` and `PrrReject` to be called outside of *.prrTeddy Wing
Sometimes I don't have any line comments to make and can go ahead and accept or reject a change immediately. In those cases, I want `PrrApprove` and `PrrReject` to be available in any file type buffer, not just in *.prr buffers. Additionally, those two commands should automatically do `PrrStart` if it hasn't been executed manually before, like we already do with `PrrComment`.
2023-12-09prr-ui: Remove `s:active` variableTeddy Wing
This variable isn't necessary. The same effect can be accomplished with the try-catch.
2023-12-09prr-ui: Automatically `PrrStart` on `PrrComment`Teddy Wing
If the Prr session hasn't been started yet, do so automatically when running `PrrComment`. This lets me comment directly on a line without having to worry about starting the Prr review beforehand. Now that I see the code and my earlier TODO, I think I could probably have made it work without the `s:active` flag. Will have to try removing it and testing whether that works.
2023-12-07prr-ui: Comment: Exit early when Prr buffer doesn't existTeddy Wing
If `PrrStart` hasn't been run yet, we should error and stop execution so we don't insert newlines and start insert mode in the current buffer. Eventually, we should set it up so `PrrStart` is called automatically from `PrrComment` if it hasn't been already.
2023-12-07prr-ui: Switch to insert mode immediately on `PrrComment`Teddy Wing
We already said we wanted to write a comment with the command, so we should start in insert mode immediately rather than it being an additional action.
2023-12-06prr-ui: Implement `PrrComment`Teddy Wing
The idea is to open the Prr file at the line corresponding to the current line in the real source file. This makes it easy to comment on a line while looking at the source, rather than the diff.
2023-12-06prr-ui: Idea for a command to comment on a line from the codeTeddy Wing
2023-11-30prr-ui: Ensure file is saved before `PrrSubmit`Teddy Wing
Guard against accidentally submitting a stale unsaved code review.
2023-11-30prr-ui: Pick a random emoji to include in `PrrApprove`Teddy Wing
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.
2023-11-30prr-ui: Educate quotes in prr buffersTeddy Wing
2023-11-30prr-ui: Move to top of file on `PrrApprove` and `PrrReject`Teddy Wing
This puts the cursor in the correct position to quickly add a top-level review comment.
2023-11-27prr-ui: Add `PrrApprove` and `PrrReject` commandsTeddy Wing
Add commands to quickly approve or reject a pull request.
2023-11-27Add 'prr-ui' pluginTeddy Wing
Make a plugin to facilitate Prr code reviews from within Vim.