nushell/crates
Jakub Žádník 3b4baa31b6
Fix ls relative path & command argument path expansion (#757)
* Switch to short-names when the path is a relative_path (a dir) and exit with an error if the path does not exist

* Remove debugging print line

* Show relative filenames... It does not work yet for ls ../

* Try something else to fix relative paths... it works, but the ../ code part is not very pretty

* Add canonicalize check and remove code clones

* Fix the canonicalize_with issue pointed out by kubouch. Not sure the prefix_str is what kubouch suggested

* Fix the canonicalize_with issue pointed out by kubouch. Not sure the prefix_str is what kubouch suggested

* Add single-dot expansion to nu-path

* Move value path expansion from parser to eval

Fixes #745

* Remove single dot expansion from parser

It is not necessary since it will get expanded anyway in the eval.

* Fix ls to display globs with relative paths

* Use pathdiff crate to get relative paths for ls

Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2022-01-17 00:55:56 +11:00
..
nu-cli context menu with nucompleter (#722) 2022-01-11 21:53:42 +00:00
nu-color-config menu options (#748) 2022-01-15 17:01:44 +00:00
nu-command Fix ls relative path & command argument path expansion (#757) 2022-01-17 00:55:56 +11:00
nu-engine Fix ls relative path & command argument path expansion (#757) 2022-01-17 00:55:56 +11:00
nu-json fix issue #559: to json -r serializes datetime without spaces (#596) 2021-12-27 21:51:38 +11:00
nu-parser Fix ls relative path & command argument path expansion (#757) 2022-01-17 00:55:56 +11:00
nu-path Some cleanups for cd/PWD (#667) 2022-01-05 11:26:01 +11:00
nu-plugin Add support for 'open' (#573) 2021-12-25 06:24:55 +11:00
nu-pretty-hex Fix build breakage - bump ansi term (#651) 2022-01-03 09:36:32 +11:00
nu-protocol Fix ls relative path & command argument path expansion (#757) 2022-01-17 00:55:56 +11:00
nu-system Add nu-system and rewrite ps command (#734) 2022-01-14 17:20:53 +11:00
nu-table a little better table alignment (#720) 2022-01-11 08:49:15 -06:00
nu-term-grid clean up some todo comments in grid 2021-10-14 08:03:20 -05:00
nu_plugin_example Plugin json (#474) 2021-12-12 11:50:35 +00:00
nu_plugin_gstat Add repository name and current tag to gstat (#692) 2022-01-07 05:44:05 -06:00
nu_plugin_inc Clippy fixes for Rust 1.58 (#733) 2022-01-14 06:40:25 +11:00
nu_plugin_python name change (#526) 2021-12-19 10:00:31 +00:00