Miss - Unsaved Files Manager

March 30, 2025 ยท View on GitHub

Neovim

Miss helps manage unsaved files. It provides a popup window listing all modified buffers, allowing you to quickly save or open them in new tabs.

Features

  • Lists all unsaved files in a floating popup window.
  • Save selected files directly from the popup.
  • Reset all changes from selected file from the popup.
  • Open selected files in a new tab.
  • Safety run user commands as a callback if there are unsaved files.
  • Easy-to-use keybindings.

Installation

Using packer.nvim

use 'Enigama/miss.nvim'

Using vim-plug

Plug 'Enigama/miss.nvim'

Usage

Use the default keybinding:

<leader>a

Could be used for git status safety:

keymap("n", "<leader>gs", function()
    require("miss").has_missed_files(function()
        vim.cmd(":G")
    end)
end, opts)

Keybindings

KeyAction
<leader>aShow popup with unsaved files
sSave selected file and refresh list
<CR> (Enter)Open selected file in a new tab
xReset changes of selected file and refresh list
qClose the popup

Configuration

Miss works out of the box but can be initialized manually:

require('miss').setup()

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.