Add save to json/yaml (ctrl-w)

This commit is contained in:
2024-10-01 21:40:13 +02:00
parent 9bc83ccd56
commit 3caca13e5c
10 changed files with 101 additions and 8 deletions

View File

@ -154,7 +154,7 @@ class TreeList implements Countable
if (!is_null($entry->key)) {
echo (is_int($entry->key)
?"\e[36;2m\u{e0b6}\e[7m#{$entry->key}\e[27m\u{e0b4}\e[22m "
:"\e[36m\"{$entry->key}\":\e[37m ");
:"\e[36m{$entry->key}:\e[37m ");
}
if ($entry->node instanceof ArrayNode) {
echo "[";