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
{{ message }}
Repository navigation
Idea: Tagging external programs with marshalling commands #451
It would be useful to be able to "tag" external programs (using some kind of per-file or per-command metadata) with input-marshalling and output-marshalling shell scripts, so that (for example) git branch | sort-by name or git status | where status == Untracked | git add do what you'd expect. You could include a standard set of these and/or have them be easy to add manually, like which some-command | add-input-filter $it { skip 1 | split-by ' | ' }, for example. This means that external commands could look like internal commands without the hassle of having to write a fully-fledged plugin.
Obviously an alternative is to replace the program entirely with your own script, but this is a far lighter-weight alternative that encourages doing it for any program you need to use, plus it makes it much easier to remove filters where they're unnecessary. Not to mention that since this would only make sense with nu itself, replacing the program would essentially confine you to not being able to use any other shell unless you did some crazy $PATH shenanigans.
Reacted by Akito, Odin, Antti Keränen, AJ Kerrigan and Dror Levin
This is a really cool idea. You could put this kind of thing in config, but it seems like it would want to be generally shared. Any thoughts on an MVP approach?
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.
Hey @wycats (or whoever else is involved nowadays), I randomly remembered this issue 6 years later, was there ever any work on this? I know a couple of people mentioned it in other issues but I'm out of the loop on Nushell nowadays.
Activity
wycats commentedon Aug 27, 2019
This is a really cool idea. You could put this kind of thing in config, but it seems like it would want to be generally shared. Any thoughts on an MVP approach?
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.
add default-run so cargo r works (nushell#451)
add default-run so cargo r works (#451)
Fix inverted “shebang” in book/scripts.md (nushell#451)
eira-fransham commentedon Mar 11, 2025
Hey @wycats (or whoever else is involved nowadays), I randomly remembered this issue 6 years later, was there ever any work on this? I know a couple of people mentioned it in other issues but I'm out of the loop on Nushell nowadays.