Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/FredeEB/tardis.nvim

Timetravel for neovim
https://github.com/FredeEB/tardis.nvim

neovim neovim-plugin nvim nvim-plugin

Last synced: about 2 months ago
JSON representation

Timetravel for neovim

Awesome Lists containing this project

README

        

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

.. code:: lua

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

The default options are

.. code:: lua

require('tardis-nvim').setup {
keymap = {
["next"] = '', -- next entry in log (older)
["prev"] = '', -- previous entry in log (newer)
["quit"] = 'q', -- quit all
["revision_message"] = '', -- show revision message for current revision
["commit"] = '', -- 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

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

.. |issues| image:: https://github.com/FredeEB/tardis.nvim/issues