Skip to content

feat: immediately execute command - #882

Merged
132ikl merged 15 commits into
nushell:mainfrom
mrdgo:immediately-accept
Jun 9, 2025
Merged

132ikl merged 15 commits into
nushell:mainfrom
mrdgo:immediately-accept

Conversation

@mrdgo

@mrdgo mrdgo commented Feb 11, 2025 •

Copy link
Copy Markdown
Contributor

Description

Pass a boolean value immediately_execute to each invocation of get_line.
This way, the nu command commandline edit can accept a flag --accept and not only edit the currently, but also immediately execute the result.

API

The API severely changes, as now this flag has to be passed to get_line and get_line_helper.
This could be changed to a channel, but then the initialization of the module would get more complicated.

Comment thread src/engine.rs Resolved
@mrdgo

mrdgo commented Feb 19, 2025

Copy link
Copy Markdown
Contributor Author

I'm so sorry for missing some of the calls. Now, clippy should pass

@VuiMuich

VuiMuich commented Apr 3, 2025

Copy link
Copy Markdown

Is there anything that could be helped to get this merged?

@mrdgo

mrdgo commented Apr 15, 2025

Copy link
Copy Markdown
Contributor Author

Ping maintainers?

@VuiMuich

Copy link
Copy Markdown

Well, when I am new to a repo I try to be careful in my interaction as I don't want to annoy the maintainers.
If I am not mistaken you are a first contributor to this project yourself, so I understand why you might be hesitant to drop a ping as well.

Btw: part reason, why I would like to see this getting into the next release is that I recently learned about the brush-shell project, so there is two very interesting shells depending on this.

@132ikl

132ikl commented Apr 16, 2025

Copy link
Copy Markdown
Member

sorry, this one fell off my radar and i've been very busy recently. i will take another look when i get the chance

@shgew

shgew commented Jun 8, 2025

Copy link
Copy Markdown

Hi @132ik. Sorry to trouble you, but if you have some time in the near future, would you mind taking a look?

@132ikl

132ikl commented Jun 9, 2025

Copy link
Copy Markdown
Member

thanks for the reminder, I think we're good to go with this. We'll need to wait until after the Nushell 0.105 release to merge the corresponding PR on the Nushell side

@132ikl
132ikl merged commit f716256 into nushell:main Jun 9, 2025
132ikl added a commit to 132ikl/reedline that referenced this pull request Jun 16, 2025
132ikl added a commit that referenced this pull request Jun 16, 2025
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.

4 participants