Skip to content

gabriGutiz/termacro.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Termacro

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.

Setup

Clone the repository

Clone the repository in your machine.

$ git clone https://github.com/gabriGutiz/termacro.nvim

Add plugin to neovim

Add 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
}

TO-DO

  • 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

About

A neovim plugin to register macros for terminal commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages