nushell/crates/nu-utils/src
Bruce Weirdan ab641d9f18
Fix the order of preference for VISUAL and EDITOR (#14275)
# Description

The order in which Nushell consulted `$env.EDITOR` and `$env.VISUAL` was
wrong. Most other programs check `$env.VISUAL` first and then fall back
to `$env.EDITOR` (for historic reasons).

References:

*
https://wiki.archlinux.org/title/Environment_variables#Default_programs
*
https://help.ubuntu.com/community/EnvironmentVariables#Preferred_application_variables
 * https://unix.stackexchange.com/a/4861
 * https://git-scm.com/docs/git-var

# User-Facing Changes

Users will now be able to use those preferences variables the same way
they are used in other programs.

# Tests + Formatting

That part wasn't tested before, and I don't think it's necessary to test
it now.

# After Submitting

PR to the docs repo is here: nushell/nushell.github.io#1621
2024-11-06 17:01:57 -06:00
..
sample_config Fix the order of preference for VISUAL and EDITOR (#14275) 2024-11-06 17:01:57 -06:00
casing.rs Switch to unicase's to_folded_case (#14255) 2024-11-05 09:39:08 +01:00
deansi.rs allow tab to be retained with find (#13848) 2024-09-14 08:51:00 -05:00
emoji.rs add special emoji handling for debug --raw (#11368) 2023-12-19 13:09:31 -06:00
filesystem.rs Make auto-cd check for permissions (#12342) 2024-04-06 08:56:46 -05:00
lib.rs Fix quoting in to nuon and refactor quoting functions (#14180) 2024-10-29 07:43:26 -05:00
locale.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
main.rs added nu-utils crate, fixed issue where externals turn off vt processing (#4857) 2022-03-16 17:21:06 -05:00
quoting.rs Improve CellPath display output (#14197) 2024-11-02 10:28:10 -05:00
shared_cow.rs Copy-on-write for record values (#12305) 2024-04-14 01:42:03 +00:00
utils.rs Add ls colors to cjs and mjs files (#14028) 2024-10-08 08:55:20 -05:00