feat(p4): perforce commands

This commit is contained in:
2025-03-08 20:19:33 +01:00
parent d597afc5ee
commit 4655b2da81

View File

@@ -4,12 +4,25 @@ return {
---@type AstroCoreOpts ---@type AstroCoreOpts
opts = { opts = {
commands = { commands = {
TermOpen = { CopyFilename = {
function() 'let @+=expand("%:p")',
vim.bo.number = false desc = "Copy filename to clipboard",
vim.bo.spell = false },
end, P4Edit = {
desc = "Remove linenumber in term buffers", "!p4 edit %:p",
desc = "Edit in perforce",
},
P4History = {
"!p4vc history %:p",
desc = "Perforce history",
},
P4Timelapse = {
"!p4vc tlv %:p",
desc = "Perfoce timelapse view",
},
P4RevisionGraph = {
"!p4vc revisiongraph %:p",
desc = "Perforce revision graph",
}, },
}, },
}, },