Thanks to visit codestin.com
Credit goes to github.com

Skip to content

walkingshamrock/undoplay.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

undoplay.nvim

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.

Features

  • Auto-play forward: Automatically redo changes at a specified interval.
  • Auto-rewind: Automatically undo changes at a specified interval.

Installation

Use your favorite plugin manager to install undoplay.nvim. For example, with lazy.nvim:

require('lazy').setup({
  'walkingshamrock/undoplay.nvim'
})

Usage

Commands

  • :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).
  • :lua require('undoplay.player').rewind(interval_ms)

    • Starts auto-rewinding undo steps. The interval_ms parameter specifies the interval in milliseconds (default: 300ms).

Example

-- Start auto-playing redo steps every 500ms
require('undoplay.player').play(500)

-- Start auto-rewinding undo steps every 200ms
require('undoplay.player').rewind(200)

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the plugin.

Acknowledgments

Inspired by the idea of visualizing undo/redo history in a dynamic way.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages