nushell/crates/nu-command/src/filesystem
Bruce Weirdan 39b95fc59e
Environment-aware help for open and save (#15651)
# Description

This extends the documentation on the commands `open` and `save` can run
under the hood, and explicitly lists those, based on the current user
environment.

Also see [this discord
thread](https://discord.com/channels/601130461678272522/988303282931912704/1364930487092777020)

# User-Facing Changes

Users will be able to see the list of commands that `open` and `save`
can run, and the extensions that each command is run for, in `help open`
and `help save` respectively:

## `help open`

![image](https://github.com/user-attachments/assets/b245d12c-c6ef-4c6d-a9f1-6c5111cb0684)

## `help save`

![image](https://github.com/user-attachments/assets/e92ddb6b-6a1e-40cc-9139-78db8a921d4a)


# Tests + Formatting

All pass except for the ones that don't (and never did pass for me
before).

# After Submitting

No updates needed.
2025-05-03 17:07:39 -05:00
..
cd.rs fix(nu-command): support ACL, SELinux, e.g. in cd have_permission check (#15360) 2025-03-27 14:23:41 +01:00
du.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
glob.rs Add --follow-symlinks flag to glob command (fixes #15559) (#15626) 2025-04-23 10:47:48 -05:00
ls.rs Fix clippy (#15489) 2025-04-06 09:49:28 +08:00
mktemp.rs Refactor I/O Errors (#14927) 2025-01-28 16:03:31 -06:00
mod.rs Make utouch the new touch (#14721) 2025-01-02 06:26:46 -06:00
open.rs Environment-aware help for open and save (#15651) 2025-05-03 17:07:39 -05:00
rm.rs Fix future clippy lints (#15519) 2025-04-08 08:51:12 +08:00
save.rs Environment-aware help for open and save (#15651) 2025-05-03 17:07:39 -05:00
start.rs non-HTTP(s) URLs now works with start (#14370) 2025-01-23 17:14:31 -08:00
ucp.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
umkdir.rs Remove duplicate implementations of CallExt::rest (#14484) 2024-12-01 15:03:45 +01:00
umv.rs check signals in nu-glob and ls (#15140) 2025-02-28 19:36:39 +01:00
util.rs Remove duplicate implementations of CallExt::rest (#14484) 2024-12-01 15:03:45 +01:00
utouch.rs Remove nu-glob's dependency on nu-protocol (#15349) 2025-03-20 17:32:41 +01:00
watch.rs Refactor I/O Errors (#14927) 2025-01-28 16:03:31 -06:00