Skip to content

feat: add is_coauthor_context() for coexistence with other @ sources - #5

Merged
wassimk merged 1 commit into
mainfrom
wm/coauthor-context
Mar 15, 2026
Merged

wassimk merged 1 commit into
mainfrom
wm/coauthor-context

Conversation

@wassimk

@wassimk wassimk commented Mar 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add public is_coauthor_context() function that returns true when the cursor is on a Co-Authored-By: line
  • Document how to use it with blink-cmp-git (transform_items) and nvim-cmp (entry_filter) to suppress other @ sources on co-author lines
  • Add tests for the new function

Test plan

  • make test passes (55 tests, 6 new for is_coauthor_context)
  • make lint passes

Adds a public function that returns true when the cursor is on a
`Co-Authored-By:` line. This lets users conditionally suppress other
completion sources (like blink-cmp-git mentions) on those lines using
blink.cmp's `transform_items` or nvim-cmp's `entry_filter`.

Includes tests and README documentation with examples for both
blink-cmp-git and nvim-cmp.
@wassimk
wassimk merged commit dc8a151 into main Mar 15, 2026
2 checks passed
@wassimk
wassimk deleted the wm/coauthor-context branch March 15, 2026 19:32
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.

1 participant