Repository navigation
feat: teach vibe the editor APIs and keep a bad segment from crashing - #21
Merged
Merged
Conversation
Vibe's catalog only listed stdlib, so a modeline clock came out as (string/trim (os/sh ...)) or (now) that C-c C-e couldn't resolve. The catalog now includes the live scripting surface; throwing segments become a badge; eval-buffer runs in the current ns like C-x C-e. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
(vibe "clock on the modeline")can emitregister-modeline-segment!/bind-key!/set-theme!instead of inventing Clojure.id!badge instead of taking down the frame (the usual(string/trim (os/sh ...))mistake —os/shreturns a map).C-c C-e/*repl*eval form-by-form in the current*ns*likeC-x C-e, so lg-isms such as(now)resolve in*scratch*(let-go'sload-stringcompiles inclojure.core, which does not referlet-go.core). Echo-area tabs render as spaces, not^I.Test plan
(vibe "clock on the modeline")in*scratch*,C-c C-v, thenC-c C-e— clock appears; noCan't resolve now(string/trim (os/sh "date" "+%H:%M"))— bar showsclock!, editor stays upcaused by, not^Ilg test/run.lgMade with Cursor