Skip to content

FredeEB/tardis.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

./assets/tardis.webp

Tardis allows you to travel in time (git history) scrolling through each revision of your current file.

Inspired by git-timemachine which I used extensively when I was using emacs.

Installation

Like with any other

{
    'fredeeb/tardis.nvim',
    dependencies = { 'nvim-lua/plenary.nvim' },
    config = true,
}

The default options are

require('tardis-nvim').setup {
    keymap = {
        ["next"] = '<C-j>',             -- next entry in log (older)
        ["prev"] = '<C-k>',             -- previous entry in log (newer)
        ["quit"] = 'q',                 -- quit all
        ["revision_message"] = '<C-m>', -- show revision message for current revision
        ["commit"] = '<C-g>',           -- replace contents of origin buffer with contents of tardis buffer
    },
    initial_revisions = 10,             -- initial revisions to create buffers for
    max_revisions = 256,                -- max number of revisions to load
}

Usage

Using tardis is pretty simple

:Tardis <adapter>

This puts you into a new buffer where you can use the keymaps, like described above, to navigate the revisions of the currently open file

List of currently supported adapters:

  • git

Known issues

See issues

Contributing

Go ahead :)