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
nu-explore/ Use hex-dump for binary data #12184
nu-explore/ Use hex-dump for binary data #12184
Conversation
Thanks @zhiburt. I think we'd like to have coloring if possible. I'm also not opposed to landing this in the interim. Let's see what other folks think. |
Good idea, paging through binary data is valuable |
Pretty simple one TODO:
fix: I've found that PgDOWN/Up and END is not working in some cases -- need a look. $env.config.explore.hex-dump.split = false
$env.config.explore.hex-dump.count_segments = 2
$env.config.explore.hex-dump.segment_size = 16 IMHO: I don't like the removal of Personally I'd go even further and would create a separate program (it could be also done in So any config option could be tweaked and the outcome be visible right away. Yes the only complication would be how to stash changes, to not change the original config, I mean comments etc. which could be present there. But it's details. Could be done in many ways. Just an idea |
@zhiburt Oh, wow! This looks much better in color!! It would be nice if the colors and symbols on the right match the current
Sorry. We found that explore was a bit too complicated which is why a few things were removed.
We have talked about a separate program to configure nushell. I've dreamed of a tui where it has a left pane that has the keys (config points) and the right pane has the values. But, like you say, there are details to work out about which file is being loaded env/config/login and what to do with comments. I personally think it would be helpful but probably is a lot of work to do it right. |
@zhiburt do you have time to update the colors to match our current pretty hex output? |
done Just reused your original function. |
wow! This looks great! Thanks. |
* Release notes for `0.92` Please add your new features and breaking changes to the release notes by opening PRs against the `release-notes-0.92` branch. ## TODO - [ ] look at interesting contributions - [ ] write all the sections - [ ] order the sections by interest - [ ] add the breaking changes - [ ] detail the breaking changes - [ ] add the full changelog - [ ] complete all the `TODO`s inside the release note - [ ] ... (PRs that need to land before the release, e.g. [deprecations](https://github.com/nushell/nushell/labels/deprecation) or [removals](https://github.com/nushell/nushell/pulls?q=is%3Apr+is%3Aopen+label%3Aremoval-after-deprecation)) * Release notes for 0.92.0 for @devyn so far (#1306) * Release notes for 0.92.0 for @devyn so far * add toc * Edit release notes (#1308) * Edit release notes * Fix typo * Change wording * Add a bunch more release notes for 0.92 (#1317) - Plugin command API updates, including LabeledError - Plugin engine calls - Plugin test support crate - Official plugin template * Add debugger note (#1321) * Edit release notes for 0.92.0 (#1322) * Edit release notes * Add missing toc link * Update typos * more little changes to the 0.92 release notes to cover things I did (#1323) * add/sort breaking changes, full changelog (#1324) * Fill in Hall of Fame; Add `debug profile` to new commands (#1325) * Add debug profile to new commands * Fill in hall of fame * Update abstract * 0.92.0 release notes cleanup (#1326) * stefan release note (#1327) * More on perf, `into bits` explainer * Rename perf section * extra politics * release notes for nushell/nushell#12184 (binary data in explore) (#1329) * Fix minor version 0.92.0 (#1328) --------- Co-authored-by: Devyn Cairns <devyn.cairns@gmail.com> Co-authored-by: Jakub Žádník <kubouch@gmail.com> Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
Hi there
So as 2 minute thing we could show
hex-dump
as it is as a string (no-coloring).But I'd do some more things around,.
Probably will take a few days (WIP).
ref: #12157
cc: @fdncred @lrdickson