Skip to content

rdgd/timeline.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timeline.nvim

A Neovim plugin that exposes a timeline of your file viewing and editing and enables navigation to those files.

Timeline Display

The timeline is sorted chronologically descending and shows:

  • Files you've visited
  • Files you've edited
  • Timestamps for each action

Press Enter when on a file's line and it will open that file.

Usage

Commands

  • :TimelineShow - Show the timeline window
  • :TimelineClear - Clear the timeline history

Default Keymaps

  • <leader>t - Toggle timeline window visibility
  • <leader>ct - Clear timeline history

Timeline Window Keymaps

  • <CR> - Open the file under cursor
  • esc - Close timeline window
  • q - Close timeline window
  • r - Refresh timeline display

Installation

Using lazy.nvim

Add to your plugins configuration:

{
  dir = "~/timeline-nvim",
  name = "timeline.nvim",
  dependencies = { "nvim-tree/nvim-web-devicons" },
}

Configuration

Here is an example config, which restates the defaults for the plugin.:

  require('timeline').setup({
    max_entries = 100,
    sort_order = 'desc',    -- 'desc' (default) or 'asc'
    use_devicons = true,
    keymaps = {
      show = '<leader>t',
      clear = '<leader>ct',
      -- set to false/nil to disable a keymap
    },
  })

Change as you wish

About

File access and editing timeline in vim which allows you to quickly navigate to files in your history.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors