Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.5 KB

README.rst

File metadata and controls

65 lines (44 loc) · 1.5 KB

./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 :)