Git Product home page Git Product logo

timewarp.nvim's Introduction

πŸŒ€ Timewarp

Timewarp enhances your Neovim navigation among open buffers, automatically keeping track of your last edit and yank positions, enabling swift movement between important points in your code. Pivot as needed between these warp points and your initial cursor position.

πŸ“‹ Requirements

Neovim v0.9+ recommended.

πŸ’Ύ Installation

Below is an example using the Lazy package manager for Neovim. Modify the configuration to fit your choice of package manager.

{
"l-bowman/timewarp.nvim",
config = function()
  require("timewarp").setup({})
end,
}

⌨️ Usage

  • :TimewarpLastEdit - Jump to the position of the last edit.
  • :TimewarpLastYank - Jump to the position of the last yank.
  • :TimewarpReturn - Return to the initial position prior to the last warp.

Which Key Example

For users of https://github.com/folke/which-key.nvim, here’s a suggestion for setting up your key bindings.

z = {
      name = "Timewarp",
      e = { "<cmd>TimewarpLastEdit<cr>", "Last Edit" },
      y = { "<cmd>TimewarpLastYank<cr>", "Last Yank" },
      r = { "<cmd>TimewarpReturn<cr>", "Return to Initial Position" },
    },

πŸ€– Behavior Explained

Essential Navigation Points

Timewarp simplifies your navigation by focusing on three points of interest:

  • Last Edit: Quickly warp back to where you last modified the code.
  • Last Yank: Easily warp back to where you last yanked text.
  • Return: Return to where you were before you warped.

License

MIT License

timewarp.nvim's People

Contributors

l-bowman avatar

Stargazers

Ibo Kiani avatar Neos21 avatar Yuta Katayama avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.