You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ability to spawn off workers while you're inside of the terminal is a natural part of working in a shell. One way nu could approach this is to be able to create a task that is worked on in the background, as part of a group of tasks.
These tasks could be killed as a group, closed on exit from the shell, etc.
One possible extension to the idea is to use #244 as a way of jumping back into a background task and interacting with its stdin/stdout.
Reacted by Thayne McCombs, Eddie Lebow, Kyle J Strand, Jack Wright, Günter Zöchbauer, Felipe S. S. Schneider, Tony, Hannes Hochreiner, Beicker, Ben Mellor and 30 more
This issue has been marked stale for more than 10 days without activity. Closing this issue, but if you find that the issue is still valid, please reopen.
Could this be reopened? I think it's a necessary feature. I'd actually say starting with the nursery pattern (aka "structured concurrency") could make a nice MVP.
This issue is being marked stale because it has been open for 90 days without activity. If you feel that this is in error, please comment below and we will keep it marked as active. Otherwise, it will be closed in 10 days.
This should stay opened until implemented - could the robot be made to not close this automatically and if not, then maybe first in 2 years but not earlier?
Reacted by NNB, Kamil, buster-blue, Linden Krouse, Tony, Maksim Vykhota, aben-adr and Lynn Romich
I need this as well. I just need the ability to at least suspend one TUI application then come back to it later. I'd say start there, and then more improvements (making it work on windows, running bg tasks, multiple running or stopped tasks, etc.) can be made down the road.
We need to introduce features one-by-one but cross-platform. I really want to avoid adding any particular linux feature and waiting on other platforms. So, if the first feature is suspending, then I'd want it to work cross platform, then go on to the next feature. I'm fine with adding features one-by-one.
I think it's a good place to learn about the details. However, there may already be a representation in Rust in the fish-shell, which was recently ported to Rust. The bigger problem is getting it to work cross-platform (windows, macos, linux). One could also review the pueue which does job mgmt and I believe is already cross-platform.
I would be willing to implement this functionality, as it is such a core part of my work flow and it sounds like an interesting problem. Unfortunately, I don't think I have the necessary skills to make it cross platform, I do have an idea of how it may be done for Linux specifically.
Reacted by Andy Bao, Giovanni Bassi, Taylor Richberger, Matt Kingston, Thilo Uttendorfer, Thayne McCombs, fnuttens, Abdel B., Chris Dawkins, GrabbenD and 6 more
Reacted by Ozan İrsoy, Andy Bao, Matt Kingston, Thayne McCombs, Khaïs COLIN, silwol, Tiago Amorim and lily-unnecessarily
Activity
andrasio commentedon Nov 3, 2019
#900
github-actions commentedon Jun 24, 2021
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
github-actions commentedon Jul 7, 2021
This issue has been marked stale for more than 10 days without activity. Closing this issue, but if you find that the issue is still valid, please reopen.
dumblob commentedon Jul 10, 2021
Could this be reopened? I think it's a necessary feature. I'd actually say starting with the nursery pattern (aka "structured concurrency") could make a nice MVP.
github-actions commentedon Oct 9, 2021
This issue is being marked stale because it has been open for 90 days without activity. If you feel that this is in error, please comment below and we will keep it marked as active. Otherwise, it will be closed in 10 days.
dumblob commentedon Oct 9, 2021
This should stay opened until implemented - could the robot be made to not close this automatically and if not, then maybe first in 2 years but not earlier?
Merge pull request nushell#247 from nushell/clippy
hyiltiz commentedon Aug 23, 2022
Something like
luitornqbuilt-in would be really awesome.27 remaining items
cosineblast commentedon Jan 20, 2025
well, this sounds like fun. I'll give this a try and document any roadblocks I'll find, if any
tmillr commentedon Jan 21, 2025
I need this as well. I just need the ability to at least suspend one TUI application then come back to it later. I'd say start there, and then more improvements (making it work on windows, running bg tasks, multiple running or stopped tasks, etc.) can be made down the road.
fdncred commentedon Jan 21, 2025
We need to introduce features one-by-one but cross-platform. I really want to avoid adding any particular linux feature and waiting on other platforms. So, if the first feature is suspending, then I'd want it to work cross platform, then go on to the next feature. I'm fine with adding features one-by-one.
cosineblast commentedon Jan 21, 2025
I think handling TSTP signals (i.e Ctrl-Z) can probably work well as a unix-only feature, as I believe there is no equivalent in windows.
fdncred commentedon Jan 21, 2025
SuspendThread and ResumeThread are Windows API functions. I've seen other ways of doing this too although some may be undocumented.
felipesere commentedon Jan 22, 2025
Im also super keen on this to keep my ctrl-Zug workflow with neovim. Happy to help test branches and PRs when they come up.
felipesere commentedon Jan 23, 2025
Would it make sense to go through https://www.gnu.org/software/libc/manual/html_node/Implementing-a-Shell.html and using it as inspiration be a step in the right direction? Obviously it would need porting to Rust 😂
fdncred commentedon Jan 23, 2025
I think it's a good place to learn about the details. However, there may already be a representation in Rust in the fish-shell, which was recently ported to Rust. The bigger problem is getting it to work cross-platform (windows, macos, linux). One could also review the pueue which does job mgmt and I believe is already cross-platform.
delyan-kirov commentedon Feb 8, 2025
I would be willing to implement this functionality, as it is such a core part of my work flow and it sounds like an interesting problem. Unfortunately, I don't think I have the necessary skills to make it cross platform, I do have an idea of how it may be done for Linux specifically.
fdncred commentedon Feb 8, 2025
@delyan-kirov We need it to be cross-platform but feel free to jump into the discussion on discord. https://discord.com/channels/601130461678272522/1334407709587673141 and active PR #14883
Jobs (#14883)
WindSoilder commentedon Feb 26, 2025
Finished by #14883
132ikl commentedon Mar 1, 2025
For future readers, additional job control features are being tracked in #15193