{"id":51667493,"url":"https://github.com/piersolenski/wayback.nvim","last_synced_at":"2026-07-14T21:03:24.212Z","repository":{"id":349546759,"uuid":"1202770492","full_name":"piersolenski/wayback.nvim","owner":"piersolenski","description":"Browse and open the current file at any previous commit, without detaching HEAD","archived":false,"fork":false,"pushed_at":"2026-04-06T13:32:46.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T14:36:39.330Z","etag":null,"topics":["git","neovim","neovim-plugin","nvim","nvim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piersolenski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-06T11:34:39.000Z","updated_at":"2026-04-06T13:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/piersolenski/wayback.nvim","commit_stats":null,"previous_names":["piersolenski/wayback.nvim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/piersolenski/wayback.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piersolenski%2Fwayback.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piersolenski%2Fwayback.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piersolenski%2Fwayback.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piersolenski%2Fwayback.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piersolenski","download_url":"https://codeload.github.com/piersolenski/wayback.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piersolenski%2Fwayback.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35478764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","neovim","neovim-plugin","nvim","nvim-plugin"],"created_at":"2026-07-14T21:03:23.478Z","updated_at":"2026-07-14T21:03:24.207Z","avatar_url":"https://github.com/piersolenski.png","language":"Lua","funding_links":["https://ko-fi.com/piersolenski'"],"categories":[],"sub_categories":[],"readme":"# 🌀 wayback.nvim\n\nA git time machine for Neovim. Browse file history, view change heatmaps, and step through versions - all without detaching HEAD.\n\n## ✨ Features\n\n- Browse and open any file at any previous commit in a buffer, split, or tab\n- Visual-select lines to filter history to only commits that touched those lines\n- Open file at commit in your web browser (GitHub, GitLab, Bitbucket, Azure DevOps)\n- Change frequency heatmap with a blue-to-red background gradient\n- Time-lapse mode to step through file versions with keybindings\n- Preview file contents at each commit inside the picker\n- Tracks file renames and moves via `git log --follow`\n- Opens as [vim-fugitive](https://github.com/tpope/vim-fugitive) objects when available\n- Supports [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim), [fzf-lua](https://github.com/ibhagwan/fzf-lua), and [snacks.nvim](https://github.com/folke/snacks.nvim) pickers\n\n### What is the difference between this and `buffer commits`?\n\nSome pickers such as Telescope include the functionality to view buffer commits via `:Telecope b_commits`. This plugin differs in a few ways:\n\n- **Purpose**: Opens the file at a previous version without affecting your git state. `git_bcommits` checks out the entire repo.\n- **Moved files**: Handles renamed/moved files correctly.\n- **Preview**: Shows file contents at the commit, not the diff.\n\n## 🔩 Installation\n\n### Using [lazy.nvim](https://github.com/folke/lazy.nvim)\n\n```lua\n{\n  \"piersolenski/wayback.nvim\",\n  dependencies = {\n    -- Optional\n    { \"tpope/vim-fugitive\" },\n  },\n  opts = {},\n  keys = {\n    {\n      \"\u003cleader\u003egw\",\n      function()\n        require(\"wayback\").open()\n      end,\n      mode = { \"n\", \"x\" },\n      desc = \"Wayback\",\n    },\n    {\n      \"\u003cleader\u003egh\",\n      function()\n        require(\"wayback\").heatmap()\n      end,\n      desc = \"Wayback heatmap\",\n    },\n    {\n      \"\u003cleader\u003egt\",\n      function()\n        require(\"wayback\").timelapse()\n      end,\n      desc = \"Wayback timelapse\",\n    },\n  },\n}\n```\n\n#### Optional dependencies\n\n- **[vim-fugitive](https://github.com/tpope/vim-fugitive)** - When installed, files open as fugitive objects instead of read-only scratch buffers. This means you get full fugitive integration (`:Gblame`, `:Gdiffsplit`, etc.) on historical file versions.\n\n## ⚙️ Configuration\n\n```lua\nrequire(\"wayback\").setup({\n  -- \"auto\", \"telescope\", \"fzf_lua\", or \"snacks\"\n  picker = \"auto\",\n\n  -- Browser command for the open-in-browser action (nil = auto-detect)\n  browser_command = nil,\n\n  -- Force a specific forge for browser URLs (nil = auto-detect from remote URL)\n  -- Options: \"github\", \"gitlab\", \"bitbucket\", \"azure_devops\"\n  forge = nil,\n\n  -- Additional telescope-specific mappings (only applies to telescope backend)\n  mappings = {\n    i = {},\n    n = {},\n  },\n\n  -- Timelapse buffer keybindings\n  timelapse = {\n    next = \"]v\",\n    prev = \"[v\",\n    quit = \"q\",\n  },\n})\n```\n\n### Browser support\n\nThe open-in-browser action auto-detects your forge from the remote URL hostname:\n\n| Forge        | Detection                                          |\n| ------------ | -------------------------------------------------- |\n| GitHub       | Default fallback                                   |\n| GitLab       | URL contains `gitlab`                              |\n| Bitbucket    | URL contains `bitbucket`                           |\n| Azure DevOps | URL contains `dev.azure.com` or `visualstudio.com` |\n\nFor self-hosted instances with non-standard hostnames, set `forge` explicitly in your config.\n\n### Telescope extension (optional)\n\nIf you prefer the `:Telescope wayback` command, load the extension:\n\n```lua\nrequire(\"telescope\").load_extension(\"wayback\")\n```\n\nThis always uses the Telescope picker regardless of your `picker` setting.\n\n## 🚀 Usage\n\n```vim\n:Wayback\n```\n\nOr for a specific file:\n\n```vim\n:Wayback path/to/file.lua\n```\n\nOr from Lua:\n\n```lua\nrequire(\"wayback\").open() -- current file\nrequire(\"wayback\").open(\"path/to/file.lua\") -- specific file\n```\n\nOr via Telescope:\n\n```vim\n:Telescope wayback\n```\n\n### Line-range history\n\nVisual-select lines, then invoke wayback to see only commits that touched those lines:\n\n```lua\n-- From a visual selection keymap:\nrequire(\"wayback\").open()\n```\n\n```vim\n:'\u003c,'\u003eWayback\n```\n\n\u003e **Note**: Line-range history does not track file renames since `git log -L` does not support `--follow`.\n\n### Change frequency heatmap\n\nToggle a background color overlay showing how frequently each line region has been changed:\n\n```lua\nrequire(\"wayback\").heatmap()\n```\n\n```vim\n:WaybackHeatmap\n```\n\nLines range from cool blue (rarely changed) to hot red (frequently changed). Call again to toggle off. Highlight groups `WaybackHeat1` through `WaybackHeat10` can be overridden in your colorscheme.\n\n### File time-lapse\n\nStep through every version of the file. Timelapse opens on the latest version; navigate backward and forward through history:\n\n```lua\nrequire(\"wayback\").timelapse()\n```\n\n```vim\n:WaybackTimelapse\n```\n\nInside the timelapse buffer (configurable via `timelapse` in setup):\n\n| Keymap (default) | Action         |\n| ---------------- | -------------- |\n| `]v`             | Newer version  |\n| `[v`             | Older version  |\n| `q`              | Exit timelapse |\n\nA virtual text header shows the current position, commit hash, date, and message.\n\n## ⌨️ Keymaps\n\nThe following keymaps are available from inside the picker:\n\n| Keymap  | Action                                  |\n| ------- | --------------------------------------- |\n| `\u003cCR\u003e`  | Open file at commit in current buffer   |\n| `\u003cC-v\u003e` | Open file at commit in vertical split   |\n| `\u003cC-x\u003e` | Open file at commit in horizontal split |\n| `\u003cC-t\u003e` | Open file at commit in new tab          |\n| `\u003cC-g\u003e` | Open file at commit in web browser      |\n| `\u003cC-y\u003e` | Copy commit hash to clipboard           |\n\n## Credits\n\nBased off of the [telescope-git-file-history.nvim](https://github.com/isak102/telescope-git-file-history.nvim) Telescope extension by [isak102](https://github.com/isak102/telescope-git-file-history.nvim).\n\n## 🤓 About the author\n\nAs well as a passionate Vim enthusiast, I am a Full Stack Developer and Technical Lead from London, UK.\n\nWhether it's to discuss a project, talk shop or just say hi, I'd love to hear from you!\n\n- [Website](https://www.piersolenski.com/)\n- [CodePen](https://codepen.io/piers)\n- [LinkedIn](https://www.linkedin.com/in/piersolenski/)\n\n\u003ca href='https://ko-fi.com/piersolenski' target='_blank'\u003e\n  \u003cimg height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiersolenski%2Fwayback.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiersolenski%2Fwayback.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiersolenski%2Fwayback.nvim/lists"}