Discover Packages
github.com/mochow13/keen-code
internal
cli
repl
syntax
package
Version:
v0.74.0
Opens a new window with list of versions in this module.
Published: Dec 4, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Render applies syntax attributes without losing the diff row's base style.
Sanitize makes repository text safe to draw without changing printable text.
Width returns the display-cell width of highlighted text.
type SourceLine struct {
Number int
Text string
}
SourceLine identifies a line in one version of a file. Number is one-based.
Span is terminal-safe source text with optional syntax attributes.
SpanLine is one highlighted source line, split at syntax token boundaries.
HighlightDiff highlights the old and new versions independently, keeping
syntax context across hunks of the same version.
Truncate limits highlighted text to width cells and adds an ellipsis when
content does not fit.
Wrap splits highlighted text at display-cell boundaries without carrying
terminal styles across physical lines.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.