Skip to content

Cell path display output doesn't escape/quote properly #13362

@sholderbach

Description

@sholderbach

Describe the bug

The current Display implementation for CellPath directly outputs both the string key/column members and int row. This makes it impossible to distinguish columns from rows should they contain only numbers or contain a dot.

How to reproduce

> $.0."0"
0.0
> $."foo.bar".baz
foo.bar.baz

Expected behavior

Either...

> $.0."0"
0."0"
> $."foo.bar".baz
"foo.bar".baz

... or

> $.0."0"
$.0."0"
> $."foo.bar".baz
$."foo.bar".baz

Configuration

key value
version 0.95.1
major 0
minor 95
patch 1
branch main
commit_hash f65bc97
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.77.2 (25ef9e3d8 2024-04-09)
rust_channel 1.77.2-x86_64-unknown-linux-gnu
cargo_version cargo 1.77.2 (e52e36006 2024-03-26)
build_time 2024-07-12 10:59:10 +02:00
build_rust_channel debug
allocator mimalloc
features default, sqlite, system-clipboard, trash
installed_plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:cell-path-semanticsAll around the cell path type and its semantics for accesscategory:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions