@@ -450,18 +450,15 @@ the configuration.
450450REVIEWING AN MR *gitlab.nvim.reviewing-an-mr*
451451
452452The `review` action will open a diff of the changes. You can leave comments
453- using the `create_comment` action. In visual mode, add multiline comments with
454- the `create_multiline_comment` command, and add suggested changes with the
453+ using the `create_comment` action, and add suggestions for changes with the
455454`create_comment_suggestion` command:
456455>lua
457456 require("gitlab").review()
458457 require("gitlab").create_comment()
459- require("gitlab").create_multiline_comment()
460458 require("gitlab").create_comment_suggestion()
461459<
462460For suggesting changes you can use `create_comment_suggestion` in visual mode
463- which works similar to `create_multiline_comment` but prefills the comment
464- window with Gitlab’s suggest changes
461+ which prefills the comment window with Gitlab’s suggest changes
465462<https://docs.gitlab.com/ee/user/project/merge_requests/reviews/suggestions.html >
466463code block with prefilled code from the visual selection. Just like the
467464summary, all the different kinds of comments are saved via the
@@ -883,33 +880,28 @@ have permission or has not previously approved the MR.
883880 *gitlab.nvim.create_comment*
884881gitlab.create_comment() ~
885882
886- Opens a popup to create a comment on the current line. Must be called when focused on the
887- reviewer pane (see the gitlab.nvim.review command), otherwise it will error.
883+ Opens a popup to create a comment on the selected line(s) in the current
884+ buffer. Must be called when focused on the reviewer pane (see the
885+ | gitlab.nvim.review | command). In normal mode comments on the current line. In
886+ visual mode comments on the selected lines
888887>lua
889888 require("gitlab").create_comment()
890-
891- After the comment is typed, submit it to Gitlab via the
892- `keymaps.popup .perform_action` keybinding, by default `ZZ` .
893-
894- *gitlab.nvim.create_multiline_comment*
895- gitlab.create_multiline_comment() ~
896-
897- Opens a popup to create a multi-line comment. May only be called in visual
898- mode, and will use the currently selected lines.
899- >lua
900- require("gitlab").create_multiline_comment()
901-
902- After the comment is typed, submit it to Gitlab via the
903- `keymaps.popup .perform_linewise_action` keybinding, by default `ZA` .
889+ <
890+ You can use the `keymaps.popup .perform_linewise_action` keybinding (by default
891+ `ZA` ) to attach a file to the comment. After the comment is typed, submit it
892+ to Gitlab via the `keymaps.popup .perform_action` keybinding, by default `ZZ` .
893+ Discard the comment with `keymaps.popup .discard_changes` (`ZQ` ), otherwise if
894+ you close the popup with something like `<c-w> q ` , the comment contents are
895+ saved to the temporary register(s) (| gitlab.nvim.temp-registers | ).
904896
905897 *gitlab.nvim.create_comment_suggestion*
906898gitlab.create_comment_suggestion() ~
907899
908900Opens a popup to create a comment suggestion (aka a comment that makes a committable
909901change suggestion to the currently selected lines).
910902>lua
911- require("gitlab").create_multiline_comment ()
912-
903+ require("gitlab").create_comment_suggestion ()
904+ <
913905After the comment is typed, submit it to Gitlab via the
914906`keymaps.popup .perform_linewise_action` keybinding, by default `ZA` .
915907
0 commit comments