undoplay.nvim
is a Neovim plugin that provides automatic undo and redo playback functionality. It allows users to replay their undo/redo history at a customizable interval.
- Auto-play forward: Automatically redo changes at a specified interval.
- Auto-rewind: Automatically undo changes at a specified interval.
Use your favorite plugin manager to install undoplay.nvim
. For example, with lazy.nvim:
require('lazy').setup({
'walkingshamrock/undoplay.nvim'
})
-
:UndoplayPlay
- Starts auto-playing redo steps using the default interval of 300ms.
-
:UndoplayRewind
- Starts auto-rewinding undo steps using the default interval of 300ms.
-
:lua require('undoplay.player').play(interval_ms)
- Starts auto-playing redo steps. The
interval_ms
parameter specifies the interval in milliseconds (default: 300ms).
- Starts auto-playing redo steps. The
-
:lua require('undoplay.player').rewind(interval_ms)
- Starts auto-rewinding undo steps. The
interval_ms
parameter specifies the interval in milliseconds (default: 300ms).
- Starts auto-rewinding undo steps. The
-- Start auto-playing redo steps every 500ms
require('undoplay.player').play(500)
-- Start auto-rewinding undo steps every 200ms
require('undoplay.player').rewind(200)
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the plugin.
Inspired by the idea of visualizing undo/redo history in a dynamic way.