cp.nvim/lua/cp/commands
Barrett Ruth 693d3bf172
feat(commands): standalone :CP login/logout with auto-restore
Problem: `:CP login` and `:CP logout` only worked as `:CP <platform>
login`. Users with an active platform or in a registered buffer had to
type the platform name redundantly.

Solution: Parse standalone `login`/`logout`/`signup` as action commands
with `requires_context = true`, resolving the platform from state (or
auto-restoring from the current buffer). Add `vim.cmd.redraw()` after
auto-restore so the screen updates before any prompt. Add `login`/
`logout` to top-level completion when a platform is active.
2026-03-07 18:13:12 -05:00
..
cache.lua fix(submit): use file path over stdin; fix CF CodeMirror textarea (#305) 2026-03-05 14:34:14 -05:00
init.lua feat(commands): standalone :CP login/logout with auto-restore 2026-03-07 18:13:12 -05:00
picker.lua feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00