NORMAL ~/wkd/p/buffer-ctx :set skin=modern utf-8

buffer-ctx.nvim

Everything the current buffer already knows about itself, as text you can insert or copy: its path, its Lua module name, the line you are on, a timestamp, a UUID, an annotation, a boilerplate header.

status
beta — Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
category
AI
neovim
0.9+
repo
github.com/StefanBartl/buffer-ctx.nvim
commits
127
help
:help buffer-ctx

demo

recorded with VHS from demos/buffer-ctx.tape in a clean Neovim — re-recorded weekly
what is shown when
  1. :Insert location - path:line, at the cursor
  2. :Insert timestamp - and date, env, uuid, linecount ...
  3. :Insert uuid - a v4 uuid where you type
  4. :Insert linecount - and filename, filepath, module ...

install

{
  "StefanBartl/buffer-ctx.nvim",
  opts = {},
}

docs/

git log

  1. feat insert: :Insert mdlink puts the cursor into the inserted link
  2. feat notify: request popup delivery explicitly in buffer-ctx.nvim's notifier
  3. fix filepath: share root-matching between nvim/repos/env modes
  4. feat filepath: add env mode, folds $REPOS_DIR/$NVIM_CONFIG_DIR into $VAR
  5. refactor commands: rename markdownlink subcommand to mdlink
  6. docs link back to the wkd family site
  7. fix reveal: guard open.nvim's browser handler call with pcall
  8. feat commands: add markdownlink/imagepaste cross-plugin shims to :Insert/:Copy
  9. feat reveal: add :RevealInFm / :OpenInBrowser for the current buffer
  10. feat filepath: add repos mode, relative to REPOS_DIR
  11. feat git: swap own systemlist shellout for lib.nvim.git (GS-14)
  12. ci bump JohnnyMorganz/stylua-action to v5 (Node-20 deprecation)

keys

j / k
next / previous line
gg / G
first / last line
⏎
open the line under the cursor
/
search the plugins
:
command line — Tab completes
:help x
vimdoc of a plugin (:e x = plugin page)
:ls · :log · :stack
plugin list · activity stream · dependency graph
:colo x
colorscheme
:set skin=
modern | tui
?
this help
esc
close