Examples
Apps in the repository, to read and to run. Each line leads to the app there, where its README says how it is run.
- containers A program with a view, to try pencere with.
-
containers-lua
A made-up Docker host as an app of one Lua file (
src/program/app.lua) and a page (src/view/page.lua) with its pictures (src/assets/), run bypencere. -
editor-lua
An editor of SQL as an app of one Lua file (
src/program/app.lua) and a page (src/view/page.lua), run bypencere. - files-lua An app that moves files with its view: its page shows a picture the program attaches, receives a file the person drops on it, pastes or chooses in the Open panel, and saves a copy of it where the person chooses in the Save panel.
-
gutter-lua
An editor whose gutter is the page's: columns it declares (a column of breakpoints, a column of change bars between the numbers and the buttons that fold), markers in them (dots, bars, a triangle where lines were taken away), a mark of each on the overview ruler, the pointer in a column (
gutterevents, on an empty cell too, a faint dot where the pointer is over one) and a zone, a gap the editor keeps open after a line that the page's peek stands in. - text-lua What an editor page shows of a language server's answers, with no server: the pointer resting on a word (a card by it with what the page knows of it: the styles with a name under the pointer, a diagnostic), ⌘ held over a word (it is a link, drawn and given the hand by the editor while ⌘ is held; a ⌘-press on it is the page's), inlay hints before arguments (hidden while ⌃⌥ are held), an error at the end of a line, and a code lens above a function (a row of buttons in a gap above its line).
-
ui-lua
The components of the kit's library (
@pencere/ui) on one page: an app of one Lua file (src/program/app.lua) and a page (src/view/page.lua), run bypencere.