DB & Dev Tools · Data formats: YAML lists at their key's indent, XML entities
YAML reads a list written at its key's own indent, as manifests do, and a list at a map's indent ends at the next key. A `#` inside a quoted scalar is no comment. XML reads entity references in text and attributes, failing on one it does not know, and a text's path counts text nodes from one. A tree's note takes at most half its row, cut with an ellipsis, so a long value or attribute leaves the key its name. Format and Minify fail loud if pressed while the JSON does not read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1c01adc4d6
commit
a0984e80a3
8 files changed
+204
-40
No files matched your search
@@ -3,7 +3,7 @@ use std::{ops::Range, rc::Rc};
|
||||
use gpui::{
|
||||
AnyElement, App, DragMoveEvent, ElementId, Entity, EntityId, FocusHandle, InteractiveElement,
|
||||
IntoElement, MouseButton, ParentElement, SharedString, StatefulInteractiveElement, Styled,
|
||||
Window, div, prelude::*,
|
||||
Window, div, prelude::*, relative,
|
||||
};
|
||||
|
||||
use super::{
|
||||
@@ -210,10 +210,12 @@ fn row(rows: &Rows, ix: usize, window: &mut Window, cx: &mut App) -> AnyElement
|
||||
.child(body)
|
||||
.children(note.map(|note| {
|
||||
div()
|
||||
.debug_selector(|| "tree-note".into())
|
||||
.flex_none()
|
||||
.max_w(relative(0.5))
|
||||
.text_size(theme.text_size(TextSize::Xs))
|
||||
.text_color(ink.unwrap_or(colors.fg_subtle))
|
||||
.child(note)
|
||||
.child(Ellipsis::new(note))
|
||||
}))
|
||||
.children(landing.filter(|at| *at != DropAt::Inside).map(line))
|
||||
.on_click(move |event, window, cx| {
|
||||
|
||||
Reference in new issue
Block a user