A nvim plugin to create macros to your terminal commands.
For now termacro.nvim is a test and is not in it's best version.
Clone the repository in your machine.
$ git clone https://github.com/gabriGutiz/termacro.nvimAdd using lazy.nvim:
return {
dir = "~/Documents/projects/termacro.nvim", -- path to where termacro was cloned
name = "termacro",
config = function ()
require('termacro').setup({
key = ";", -- sets the key to use termacro | default ';'
default_commands = { -- default commands to be implemented when neovim is started
{
key = "l",
command = "ls -al",
buffer = true -- show output in a buffer updated in real time
}
},
execute_key = "e" -- key to execute a command passed in execution | default 'e'
})
end
}- Add tests
- Make command output on buffer optional when added by ;;
- Command usage without having to use input
- Make commands persist after exiting nvim
- Use temporary buffer that doesn't need to be deleted
- Edit commands
- See created commands
- User can create commands on configuration
- User can create default commands depending on the file type
- Add help