Bug Fixes (#470)
* fix: Restore buffer local settings outside reviewer (#446) * fix: do not show healthcheck alert for warnings (#468) * feat: Add MR URL to the summary details (#467) * fix: make cycling reviewed files faster (#474) * feat(pipeline): display trigger jobs for a pipeline in the pipelines popup (#465) * fix: Jumping to renamed files (#484) --------- Co-authored-by: Jakub F. Bortlík <jakub.bortlik@proton.me> Co-authored-by: Ashish Alex <ashish.alex10@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3b396a5e6b
commit
9f898aa1a8
@@ -120,7 +120,7 @@ M.set_popup_keymaps = function(popup, action, linewise_action, opts)
|
||||
settings.popup.temp_registers = temp_registers
|
||||
end, {
|
||||
buffer = popup.bufnr,
|
||||
desc = "Quit discarding changes",
|
||||
desc = "Quit, discarding changes",
|
||||
nowait = settings.keymaps.popup.discard_changes_nowait,
|
||||
})
|
||||
end
|
||||
@@ -236,4 +236,16 @@ M.set_cycle_popups_keymaps = function(popups)
|
||||
end
|
||||
end
|
||||
|
||||
---Create the title for the comment popup.
|
||||
---@param title string The main title, e.g., "Comment".
|
||||
---@param file_name string Name of file for which comment is created.
|
||||
---@param start_line integer Start of the line range.
|
||||
---@param end_line integer End of the line range.
|
||||
---@return string title The full title of the popup.
|
||||
M.create_title = function(title, file_name, start_line, end_line)
|
||||
local range = start_line < end_line and string.format("-%s", end_line) or ""
|
||||
local position = string.format("%s%s", start_line, range)
|
||||
return string.format("%s [%s:%s]", title, file_name, position)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user