fix crash on folder rendering

This commit is contained in:
Will Hanlen 2024-06-13 23:24:30 +02:00
parent 001cf49470
commit c513d378d4
3 changed files with 14 additions and 7 deletions

View File

@ -71,7 +71,9 @@
%+ turn folder
|= name=@tas
=/ pith ~[name]
=/ =pail:neo q.saga:(~(got of:neo kids.bowl) pith)
?~ suga=(~(get of:neo kids.bowl) pith)
;div.p3.br1.bd1: no file called {<name>}
=/ =pail:neo q.saga.u.suga
=/ =stud:neo p.pail
=/ =path (pout (welp here.bowl pith))
=/ label

View File

@ -14,7 +14,7 @@
^- kook:neo
|%
++ state pro/%folder
++ poke (sy %folder %folder-diff ~)
++ poke (sy %folder-diff ~)
++ kids
:- ~
:- %y
@ -44,7 +44,7 @@
=/ this !<(folder q.pail)
?- -.poke
%make
:_ folder/!>([name.poke this])
:_ folder/!>([name.poke this]) :: add new item to head of of list
:~ [(snoc here.bowl name.poke) %make stud.poke (~(get by default-pails) stud.poke) ~]
==
::

View File

@ -24,15 +24,20 @@
:_ home/!>(*home)
:~ [#/[p/our.bowl]/home/diary %make %diary ~ ~]
[#/[p/our.bowl]/home/tasks %make %task `task/!>(['' | & ~]) ~]
[#/[p/our.bowl]/home/sail %make %sail `sail/!>(['' 'prose p-page' ~]) ~]
[#/[p/our.bowl]/home/sail %make %sail `sail/!>(['# hello world' 'prose p-page mw-page ma' ~]) ~]
[#/[p/our.bowl]/home/accel %make %accel ~ ~]
[#/[p/our.bowl]/home/circle %make %circle ~ ~]
[#/[p/our.bowl]/home/files %make %folder ~ ~]
[#/[p/our.bowl]/home/planner %make %planner ~ ~]
[#/[p/our.bowl]/home/messenger %make %messenger ~ ~]
[#/[p/our.bowl]/home/docs %make %folder `folder/!>([%diary %feather ~]) ~]
[#/[p/our.bowl]/home/docs/feather %make %sail `sail/!>([feather-intro 'prose p-page mw-page ma' ~]) ~]
[#/[p/our.bowl]/home/docs/diary %make %sail `sail/!>([diary 'prose p-page mw-page ma' ~]) ~]
::
[#/[p/our.bowl]/home/docs %make %folder `folder/!>([%introduction %tutorials %guides ~]) ~]
::
[#/[p/our.bowl]/home/docs/tutorials %make %folder `folder/!>([%counter %diary %messenger %tasks ~]) ~]
[#/[p/our.bowl]/home/docs/tutorials/diary %make %sail `sail/!>([diary 'prose p-page mw-page ma' ~]) ~]
::
[#/[p/our.bowl]/home/docs/guides %make %folder `folder/!>([%feather ~]) ~]
[#/[p/our.bowl]/home/docs/guides/feather %make %sail `sail/!>([feather-intro 'prose p-page mw-page ma' ~]) ~]
==
++ poke
|= =pail:neo