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 a way to disable the prompt #729

Closed
wants to merge 1 commit into from
Closed

Add a way to disable the prompt #729

wants to merge 1 commit into from

Conversation

rtpg
Copy link

@rtpg rtpg commented Jan 28, 2024

This is part of work to simplify this nushell PR. Clearing out the prompt removes a reference to the stack, letting us avoid a copy

@stormasm
Copy link
Contributor

stormasm commented Feb 2, 2024

@rtpg can you please add in a example that shows this working... Thanks !

@stormasm
Copy link
Contributor

stormasm commented Feb 2, 2024

@rtpg as far as the example it can be as simple as the

https://github.com/nushell/reedline/blob/main/examples/basic.rs

but call it disable_prompt.rs

@fdncred
Copy link
Collaborator

fdncred commented Feb 9, 2024

@rtpg as far as the example it can be as simple as the

https://github.com/nushell/reedline/blob/main/examples/basic.rs

but call it disable_prompt.rs

I don't really understand what you're saying here. Can you add an example and some test to ensure this behavior works in the future?

@@ -487,6 +487,12 @@ impl Reedline {
self.transient_prompt = Some(transient_prompt);
self
}
/// Remove the current prompt
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be

Suggested change
/// Remove the current prompt
/// Remove the current transient prompt

@fdncred
Copy link
Collaborator

fdncred commented Apr 23, 2024

unresponsive.

@fdncred fdncred closed this Apr 23, 2024
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.

3 participants