Skip to content
/ was.nvim Public

Neovim plugin to solve "What was I doing here" when moving between dirs

License

Notifications You must be signed in to change notification settings

bxrne/was.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

was.nvim

Neovim plugin to solve "What was I doing here" when moving between dirs.

It's for someone who doesn't need a terminal multiplexer like tmux or zellij but hops in and out of folders with multiple neovim instances and need to place a mental checkpoint in what they were doing or thinking.

Screenshot of was.nvim

Features

  • Store intentions per workspace (cwd)
  • Persistent storage between Neovim sessions
  • Minimal and fast
  • Written in pure Lua

Installation

Prerequisites

Using lazy.nvim:

{
  "bxrne/was.nvim",
  dependencies = {
    "nvim-lua/plenary.nvim", -- for path handling
  },
  config = true, -- calls require('was').setup()
},

Using packer.nvim:

use {
  "bxrne/was.nvim",
  requires = {
    "nvim-lua/plenary.nvim", -- for path handling
  },
  config = function()
    require('was').setup()
  end,
}

Configuration

In your Lazy or Packer configuration, you can pass an optional opts table to require('was').setup():

{
  -- "bxrne/was.nvim",
  -- dependencies = {
  --   "nvim-lua/plenary.nvim", -- for path handling
  -- },
  -- config = true, -- calls require('was').setup()
  opts = { -- optional config
    defer_time = 3000, -- default time for window to live for (ms)
  },
}

Usage

Store your current intention:

:Was Implementing user authentication system

View your last stored intention:

:Was

The plugin automatically detects your workspace based on cwd.

Intentions are stored persistently in ~/.local/share/nvim/was/intentions.json.

Testing

nvim --headless -c "PlenaryBustedDirectory tests/ { minimal_init = './tests/minimal_init.lua' }"

About

Neovim plugin to solve "What was I doing here" when moving between dirs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages