Skip to content

feat: add scratch pad plugin#5

Open
hikali123456789 wants to merge 1 commit into
cdxker:masterfrom
hikali123456789:feature/scratch-pad
Open

feat: add scratch pad plugin#5
hikali123456789 wants to merge 1 commit into
cdxker:masterfrom
hikali123456789:feature/scratch-pad

Conversation

@hikali123456789
Copy link
Copy Markdown

Summary

Adds a scratch pad plugin for Neovim that provides an interactive floating buffer for quick notes and commands.

Features

  • Floating scratch buffer: Opens in a centered floating window
  • Configurable position: Supports right, left, top, bottom, or center positioning
  • Persistent content: Content persists during the Neovim session
  • Easy to use: Simple keymaps (q/Esc to close)
  • Commands:
    • :ScratchPad - Open scratch pad
    • :ScratchPadToggle - Toggle scratch pad
    • :ScratchPadClose - Close scratch pad

Usage

-- In your init.lua or plugin config
require("scratch-pad").setup({
  width = 80,
  height = 20,
  position = "right", -- "right", "left", "top", "bottom", "center"
  border = "rounded",
  title = " Scratch Pad ",
})

Screenshots

The scratch pad appears as a floating window with:

  • Welcome message with instructions
  • Markdown filetype for syntax highlighting
  • Persistent content during session
  • Easy close with q or <Esc>

Fixes #1

- Add floating scratch buffer for quick notes
- Configurable position (right/left/top/bottom/center)
- Persistent content during session
- Keymaps: q/Esc to close
- Commands: ScratchPad, ScratchPadToggle, ScratchPadClose

Fixes cdxker#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: Add this scratch pad plugin into my config.

1 participant