mirror of
https://github.com/nushell/nushell.git
synced 2025-07-17 14:55:09 +02:00
# Description This PR enables basic goto def/hover features on module name in commands: 1. hide 2. overlay use 3. overlay hide ## Some pending issues 1. Somewhat related to #14816 ```nushell overlay use foo as bar # |_______ cursor here ``` fails to work, since the position of the cursor is outside of the whole span of this call expression. I'll try to fix #14816 later instead of implementing new weird workarounds. 2. references/renaming however is still buggy on overlays with `as`/`--prefix` features enabled. # User-Facing Changes # Tests + Formatting 3 more tests # After Submitting
5 lines
120 B
Plaintext
5 lines
120 B
Plaintext
use module.nu "module name"
|
|
overlay use module.nu as new_name
|
|
overlay hide --keep-env [PWD] new_name
|
|
hide "module name"
|