Skip to content

Adapt for improved history isolation in reedline - #10402

Merged
WindSoilder merged 3 commits into
nushell:mainfrom
Hofer-Julian:update-history-isolation
Sep 18, 2023
Merged

WindSoilder merged 3 commits into
nushell:mainfrom
Hofer-Julian:update-history-isolation

Conversation

@Hofer-Julian

Copy link
Copy Markdown
Contributor

@Hofer-Julian
Hofer-Julian marked this pull request as ready for review September 18, 2023 05:04
@Hofer-Julian

Copy link
Copy Markdown
Contributor Author

Thanks @WindSoilder for updating the PR. It is ready to be reviewed now.

@WindSoilder WindSoilder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It looks good to me!

@maxim-uvarov

maxim-uvarov commented Sep 18, 2023 •

Copy link
Copy Markdown
Contributor

@Hofer-Julian, this is such a significant improvement in usability for me! Thank you so much!

@Hofer-Julian
Hofer-Julian deleted the update-history-isolation branch September 18, 2023 09:42
@fdncred

fdncred commented Sep 18, 2023

Copy link
Copy Markdown
Contributor

I hope we don't regret this. Landing PRs 1 day from release doesn't give much time for testing.

@WindSoilder

Copy link
Copy Markdown
Contributor

Sorry it's my fault, I'll follow up and keep our release schedule in mind

@Hofer-Julian

Copy link
Copy Markdown
Contributor Author

Sorry it's my fault, I'll follow up and keep our release schedule in mind

I don't think @fdncred meant to blame you for merging. Both he and @sholderbach agreed to land this.

@fdncred

fdncred commented Sep 18, 2023

Copy link
Copy Markdown
Contributor

I'm not super worried about it @WindSoilder. No hard feelings. We just need to keep an eye out for odd behaviors related to this and hope it doesn't cause us to have to make a point release. I wasn't planning on landing this until after the release but, I guess maybe we had to land it since the SqliteBackedHistory::with_file API changed in reedline, unless we were going to stay on an older version of reedline, which I doubt we would.

I'm trying to figure out how to get rid of these warnings now. I think this is related to the change but vscode/rust-analyzer aren't picking it up right. The good news is that it's not preventing me from compiling.
image

@ofek

ofek commented Sep 18, 2023 •

Copy link
Copy Markdown
Contributor

Does this require a new option or is it now the default behavior?

@Hofer-Julian

Copy link
Copy Markdown
Contributor Author

Do this require a new option or is it now the default behavior?

You have to set the backend to sqlite and enable history isolation.
I hope that it can become the default in one of the future releases.

hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
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.

5 participants