From f0afdb831a3736a6d3d24f85f78d35f9e2aa9e3f Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Mon, 29 Jan 2024 15:54:20 -0500 Subject: editor: Automatically editor-ize keyboards --- virtual-programs/editor.folk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'virtual-programs') diff --git a/virtual-programs/editor.folk b/virtual-programs/editor.folk index 0c7e4275..76536f02 100644 --- a/virtual-programs/editor.folk +++ b/virtual-programs/editor.folk @@ -1,6 +1,13 @@ set ::debug_print false set baseCode "Wish \$this is outlined green" +# This makes all keyboards into editors automatically, so a keyboard +# doesn't need an extra printed claim to be an editor. May choose to +# change later, or exclude keyboards that opt out. +When /page/ is a keyboard with path /anything/ { + Claim $page is an editor +} + When /page/ is a keyboard with path /kbPath/ & /page/ is an editor & /page/ has region /r/ { set id "$page$kbPath" Claim $id has region [region move $r up 900px] -- cgit v1.2.3