diff --git a/lua/plugins/16-commands.lua b/lua/plugins/16-commands.lua index 056bad0..64744dc 100644 --- a/lua/plugins/16-commands.lua +++ b/lua/plugins/16-commands.lua @@ -4,12 +4,25 @@ return { ---@type AstroCoreOpts opts = { commands = { - TermOpen = { - function() - vim.bo.number = false - vim.bo.spell = false - end, - desc = "Remove linenumber in term buffers", + CopyFilename = { + 'let @+=expand("%:p")', + desc = "Copy filename to clipboard", + }, + P4Edit = { + "!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", }, }, },