Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "[J]ump to path" command, to support dropping out to inspect values #5

Merged
merged 4 commits into from
Mar 16, 2020

Conversation

NHDaly
Copy link
Owner

@NHDaly NHDaly commented Mar 16, 2020

This allows quitting an inspection and easily returning later.

—————————————————————————————————————————————————————————
Select a field to recurse into or  to ascend. [q]uit.

Commands: [J]ump to field path.

(d)::Dict{Any,Int64} => 464.0 B
   64.0 B internal
3 Allocated Fields:
  keys::Array{Any,1} => 176.0 B
   vals::Array{Int64,1} => 168.0 B
   slots::Array{UInt8,1} => 56.0 B
   
Enter the complete path to jump to (e.g. `parent.arr[2].keys[2].foo.bar`):
Path: d.keys[6]
—————————————————————————————————————————————————————————
Select a field to recurse into or  to ascend. [q]uit.

Commands: [J]ump to field path.

(d.keys[6])::Int64 => 8.0 B
0 Allocated Fields:
  

…te through

Also fix some missing Base imports, after extracting the code out of
Base
```
————————————————————————————————————————————————————————————————————————
Select a field to recurse into or ↩ to ascend. [q]uit.

(d)::Dict{Any,Int64} => 464.0 B
   64.0 B internal
3 Allocated Fields:
   keys::Array{Any,1} => 176.0 B
 → vals::Array{Int64,1} => 168.0 B
   slots::Array{UInt8,1} => 56.0 B
   ↩
```
@NHDaly NHDaly merged commit 3a35129 into master Mar 16, 2020
@NHDaly NHDaly mentioned this pull request Mar 17, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant