Minimal VS Code support for kiwi .k files.
Features
- syntax highlighting for kiwi source
- one-space indentation defaults for
.kfiles - bracket and quote pairing, without backtick auto-close
- integrated-terminal REPL commands:
kiwi: Start REPLkiwi: Eval Selection or Current Statementkiwi: Eval Current Blockkiwi: Eval Filekiwi: Reset Session
Keybindings
shift+enter: eval selection or current statementcmd+enteron macOS /ctrl+enterelsewhere: eval current blockcmd+shift+enteron macOS /ctrl+shift+enterelsewhere: eval file
Settings
kiwi.binaryPath: executable used to start the REPL, defaultkiwikiwi.replArgs: extra arguments passed to the REPL commandkiwi.workingDirectory: working directory for the REPL terminalkiwi.environment: environment variables for the REPL terminal
shift+enter sends the active selection when there is one. Without a selection,
it sends the smallest complete line-oriented statement around the cursor,
expanding across balanced (), [], and {} while ignoring strings and
comments. cmd+enter / ctrl+enter sends the surrounding blank-line block and
expands it when needed to avoid cutting through a multiline statement.