Release 1/24/26 (#519)
* Fix: Jumping to renamed files (#484) * fix: prevent "cursor position outside buffer" error * fix: swap file_name and old_file_name in reviewer data `old_file_name` is not set to the empty string for un-renamed files anymore, because then we can remove the empty-line check in `comment_helpers.go` which was used to replace the empty string with the current file name anyway. * fix: add old_file_name to discussion root node data * fix: also consider old_file_name when jumping to the reviewer This fixes jumping to renamed files, however, may not work for comments that were created on renamed files with the previous version of `gitlab.nvim` as that version assigned the `file_name` and `old_file_name` incorrectly. * refactor: don't shadow variable * fix: check file_name or old_file_name based on which SHA comment belongs to * Fix: Store reviewer data before creating comment popup (#476) * Fix: Make publishing drafts more robust (#483) * Fix: Swap file_name and old_file_name in reviewer data (#485) * Feat: Enable toggling date format between relative and absolute (#491) * Fix: Add opts to help popup (#492) * Fix: Force start_line for jumping to diagnostic to be inside buffer (#494) * fix: redefine colors after reloading colorscheme (#500) * Fix: Use path instead of oldpath as fallback for unrenamed files (#496) * Fix: Use file_name when old_file_name is not set (#495) * fix(ci): fix lua tests (#501) * Proxy Support (#499) * feat(ci): Cancel obsolete after a new commit is pushed in an open PR (#503) * fix: start and clean up winbar timer properly (#513) This is a PATCH. * fix: put attach_file markdown on new line (#512) This is a PATCH PR. * docs: fix incorrect value for 'relative' option to Split (#511) This is a PATCH. * docs: add default keybinding maps available in the help (#506) This is a PATCH change. * feat: enable setting discussion tree options (#509) * docs: add description of `refresh_data` function * fix: only set gitlab filetype in one place * feat: set some useful window options for the discussion tree split This is a PATCH PR. --------- Co-authored-by: Jakub F. Bortlík <jakub.bortlik@proton.me> Co-authored-by: Jonathan Duck <Duckbrain30@gmail.com> Co-authored-by: Kitsios Konstantinos <kitsios.konst@gmail.com> Co-authored-by: Mohammad Akbari <makbari@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e29909cd10
commit
e4eabaf71d
81
README.md
81
README.md
@@ -122,3 +122,84 @@ For a list of all these settings please run `:h gitlab.nvim.configuring-the-plug
|
||||
The plugin sets up a number of useful keybindings in the special buffers it creates, and some global keybindings as well. Refer to the relevant section of the manual `:h gitlab.nvim.keybindings` for more details.
|
||||
|
||||
For more information about each of these commands, and about the APIs in general, run `:h gitlab.nvim.api`
|
||||
|
||||
`gitlab.nvim` comes with a set of default `keymaps` for different contexts. You can override any of these in your configuration.
|
||||
|
||||
### Global Keymaps
|
||||
|
||||
These keymaps are available globally (i.e., in any buffer).
|
||||
|
||||
```
|
||||
g? Open a help popup for local keymaps
|
||||
glaa Add assignee
|
||||
glad Delete assignee
|
||||
glla Add label
|
||||
glld Delete label
|
||||
glra Add reviewer
|
||||
glrd Delete reviewer
|
||||
glA Approve MR
|
||||
glR Revoke MR approval
|
||||
glM Merge the feature branch to the target branch and close MR
|
||||
glC Create a new MR for currently checked-out feature branch
|
||||
glc Chose MR for review
|
||||
glS Start review for the currently checked-out branch
|
||||
gls Show the editable summary of the MR
|
||||
glu Copy the URL of the MR to the system clipboard
|
||||
glo Open the URL of the MR in the default Internet browser
|
||||
gln Create a note (comment not linked to a specific line)
|
||||
glp Show the pipeline status
|
||||
gld Toggle the discussions window
|
||||
glD Toggle between draft mode and live mode
|
||||
glP Publish all draft comments/notes
|
||||
```
|
||||
|
||||
#### Popup Keymaps
|
||||
|
||||
These `keymaps` are active in the popup windows (e.g., for creating comments, editing the summary, etc.).
|
||||
|
||||
```
|
||||
<Tab> Cycle to the next field
|
||||
<S-Tab> Cycle to the previous field
|
||||
ZZ Perform action (e.g., save comment)
|
||||
ZA Perform linewise action
|
||||
ZQ Discard changes and quit the popup
|
||||
```
|
||||
|
||||
#### Discussion Tree Keymaps
|
||||
|
||||
These `keymaps` are active in the discussion tree window.
|
||||
|
||||
```
|
||||
Ea Add an emoji to the note/comment
|
||||
Ed Remove an emoji from a note/comment
|
||||
dd Delete comment
|
||||
e Edit comment
|
||||
r Reply to comment
|
||||
- Toggle the resolved status of the whole discussion
|
||||
o Jump to comment location in file
|
||||
a Jump to the comment location in the reviewer window
|
||||
b Jump to the URL of the current note/discussion
|
||||
u Copy the URL of the current node to clipboard
|
||||
c Toggle between the notes and discussions views
|
||||
i Toggle type of discussion tree
|
||||
P Publish the currently focused note/comment
|
||||
dt Toggle between date formats
|
||||
D Toggle between draft mode and live mode
|
||||
st Toggle whether discussions are sorted by the "latest_reply", or by "original_comment"
|
||||
t Open or close the discussion
|
||||
T Open or close separately both resolved and unresolved discussions
|
||||
R Open or close all resolved discussions
|
||||
U Open or close all unresolved discussions
|
||||
<C-R> Refresh the data in the view
|
||||
<leader>p Print the current node (for debugging)
|
||||
```
|
||||
|
||||
#### Reviewer Keymaps
|
||||
|
||||
These `keymaps` are active in the reviewer window (the diff view).
|
||||
|
||||
```
|
||||
c Create a comment for the lines that the following {motion} moves over
|
||||
s Create a suggestion for the lines that the following {motion} moves over
|
||||
a Jump to the comment in the discussion tree
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user