Repository navigation
Demos
The animations on this wiki are recorded with
VHS from the tapes in demos/ of
this wiki repository
(git clone https://github.com/blue-panels/bluerig.wiki.git). They land in
assets/, next to it.
VHS, ttyd and ffmpeg are needed, and a build directory of bluerig:
cd demos
./record.sh # every tape
./record.sh fold git # those tapes
BLUERIG_BUILD=~/src/bluerig/build ./record.shBLUERIG_BUILD is the meson build directory whose bluerig is recorded
(~/dev/coole-build by default). The program runs through meson devenv, so
the plugins of that build are the ones loaded, not installed ones.
Every tape gets a fresh scratch directory, ${TMPDIR:-/tmp}/bluerig-demos: a
home of its own with the settings of demos/config/, so your own
configuration is never read or written, and in it ~/calc, a copy of
demos/fixtures/calc made a git repository with a short history. Some tapes
get more: git a modified file and an untracked one, build and debugger
a meson build directory.
calc is a calculator of expressions in reverse Polish notation in C, with a
meson build. It is small enough to read at a glance and has what the demos
need: functions to fold and to jump to, a header, a stack to step through
under the debugger, a README with a table and a mermaid diagram for the
Preview, a JSON file, an HTML page, a Smarty template and a shell script for
the syntax highlighting, and a list of words for the macro.
| Tape | Shows |
|---|---|
overview |
The tree, an outline jump, README with its Preview, the terminal |
syntax |
HTML, a Smarty template, markdown and a shell script |
fold |
Alt-Shift-F on four functions, the whole file on one screen |
filter |
The Filter button of the search dialog, Alt-s |
undo |
A few changes and a jump back in the undo history |
macros |
Ctrl-R, a macro on Alt-z, the Macro Explorer |
preview-markdown |
A row typed into a table, the mermaid diagram |
preview-json |
A member added, the text broken and fixed again |
project |
The tree with the outline, Alt-Shift-P by name and by symbol, Alt-Shift-A |
build |
An error and a warning marked, Alt-Shift-J, a clean build |
git |
Stage, commit with a message, the log |
debugger |
bluerig -D, a breakpoint, the Program tab, F8 |
terminal |
Ctrl-O, a command or two, hidden and shown again |
nested |
A markdown file of fenced blocks, with languages inside them in turn |
skins |
Six skins over the same windows |
find |
Find in project from the menu, the list narrowed as it is typed |
lsp |
bluerig -D with clangd: completion, a problem marked, Alt-, and Alt-. |
query |
bluerig -Q on PostgreSQL: F5, EXPLAIN from the menu of the queries, the schema |
query-export |
The rows of a query exported as Markdown and the file opened |
git-branches |
The tab Graph, the window of the branches: filter, F3, F7, Enter |
The query and query-export tapes need a PostgreSQL on 127.0.0.1:55432, user tester,
password secret, with the database shop that demos/fixtures/shop-db.sql
makes:
docker run -d --name bluerig-pg -p 127.0.0.1:55432:5432 \
-e POSTGRES_USER=tester -e POSTGRES_PASSWORD=secret postgres:16
psql -h 127.0.0.1 -p 55432 -U tester -c 'create database shop'
psql -h 127.0.0.1 -p 55432 -U tester -d shop -f demos/fixtures/shop-db.sqlVHS has no function keys, no Home and End, and no Shift with the arrows.
- bluerig reads
Escfollowed by a digit as a function key andEscfollowed by a letter as Alt with it, so a tape typesEscapeand then9for F9,Escapeand thenPfor Alt-Shift-P.demos/config/initurns onold_esc_modewith a timeout long enough for that. - The keymap the tapes run with binds Home and End to Ctrl-W and Alt-x as well.
- The box drawing of the Lua script
draw-tableneeds Shift and the arrows, so it has no demo.
- The windows of a project come back when bluerig starts again in it: a tape that starts bluerig twice finds the Preview it opened the first time.
- The program of the build is given the syntax files, the skins and the
keymap of the source tree (
BLUERIG_SRC,~/dev/cooleby default) and the Lua runtime of the build: otherwise it would run with the older ones that are installed. -
GIT_PAGER=catis set, sogit login the terminal does not stop in a pager.
bluerig on GitHub |
Issues |
F1 in the editor and man bluerig have the full reference.
The editor
Beside the text
Extending
About the wiki