Skip to content

v0.2.0

Latest

Choose a tag to compare

@gitsang gitsang released this 20 May 06:53
· 16 commits to main since this release

v0.2.0

BREAKING CHANGES

  • Removed the fixed_width option. Codock now always sets winfixwidth when opening the terminal split so the initial configured width is preserved while still allowing manual resize via normal window commands.
    • Migration: remove fixed_width from your setup options.
  • Updated the recommended file-position keymaps to split copy-only and copy-and-paste behavior.
    • :CodockFilePosPaste / <leader>CP copies the current file position and sends it to the Codock terminal.
    • :CodockFilePosYank / <leader>CY only copies the current file position.
    • :CodockFilePos remains available as a compatibility alias for :CodockFilePosPaste, but new lazy-loading configs should include the new command names.

Added

  • Added :Codock [cmd] so users can launch a one-off CLI command without changing codock_cmd.
  • Added :CodockFilePosPaste and :CodockFilePosYank to separate paste-to-terminal and yank-only workflows.
  • Added file-position path resolution relative to the Codock terminal process cwd, with Neovim cwd as the fallback.
  • Added headless Neovim regression tests for terminal width, terminal input, terminal scrolling, and file-position command behavior.

Changed

  • Codock terminals are now marked with buffer/window-local state, making terminal detection more reliable.
  • Codock terminal windows keep tailing output after focus changes by moving the inactive terminal cursor to the latest output.
  • README examples now show separate launch mappings for common CLI tools and the new file-position commands.
  • File path and visual selection helpers were extracted into shared utilities.

Fixed

  • Fixed Codock terminal detection when multiple terminal buffers exist.
  • Fixed diagnostic prompt formatting and terminal command dispatch paths.
  • Fixed visual selection text retrieval across visual modes.
  • Fixed terminal width handling so the configured width remains stable on open.

Verification

  • git diff --check
  • for test in tests/*.lua; do nvim --headless -u NONE -n -S "$test"; done