Skip to content

Conversation

@ExpandingMan
Copy link
Contributor

This is a module for storing and accessing previously output results.

The way it works is pretty simple: it uses the display_output hook to append results to an environment variable. The subtlety that tripped me up is that one must be very careful to preserve the metadata of ls output to preserve the ls colors in the display output. The only reliable way to do this is to store metadata separately, as most operations will not preserve it.

I wasn't sure whether this would be better off in modules or hooks, but it's structured as a module and provides the commands result, result ls and result select for accessing the results, so I figured it was better off in modules.

@fdncred
Copy link
Contributor

fdncred commented Oct 3, 2025

We're trying to move all these to a folder of their own with their own readme.md. it just makes it easier to consume. Can you make those changes please?

@ExpandingMan
Copy link
Contributor Author

Ok done. I've also gotten rid of the reference I had made to my personal color scheme.

@fdncred fdncred merged commit cc25164 into nushell:main Oct 3, 2025
1 check passed
@fdncred
Copy link
Contributor

fdncred commented Oct 3, 2025

Thanks

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.

2 participants