Skip to content

fix some nushell shenanigans (template only) - #75

Open
pheenty wants to merge 2 commits into
timothebot:mainfrom
pheenty:deprec
Open

pheenty wants to merge 2 commits into
timothebot:mainfrom
pheenty:deprec

Conversation

@pheenty

@pheenty pheenty commented Nov 12, 2026

Copy link
Copy Markdown
Contributor
  1. fixed deprecation warning
  ⚠ Positional completer input deprecated.
    ╭─[/home/pheenty/.local/share/nushell/vendor/autoload/lacy.nu:14:42]
 13 │
 14 │ ╭─▶     def lacy-dir-names [context: string] {
 15 │ │           {
 16 │ │               options: {
 17 │ │                   case_sensitive: false,
 18 │ │                   completion_algorithm: fuzzy,
 19 │ │                   sort: false,
 20 │ │               },
 21 │ │               completions: (lacy-query-to-completion $context)
 22 │ │           }
 23 │ ├─▶     }
    · ╰──── declares the legacy positional input `context`
 24 │
    ╰────
  help: A parameter completer is handed one record, whose fields bind to the parameters it names:
        token, place, buffer. `context` still receives its old positional value for compatibility,
        but this bridge will be removed in a future release. To migrate, use `[buffer, place]`;
        `$buffer` replaces the old context and `$place.cursor` replaces its position.
  1. imagine a layout like this
.
├── a
│   ├── b1 -> ../b1
│   └── b2 -> ../b2
├── b1
└── b2

and use y a b from there.
well, it should let you choose from a/b1 and a/b2 and then cd you into b1 or b2, right?
WRONG! ($selected | path type) == "symlink" and the template wants == "dir". So it just... Silently fails. Awesome.

The check for path type isn't actually needed at all, lacy shouldn't return files (and symlinks leading to files) in the first place

@pheenty
pheenty requested a review from timothebot as a code owner November 12, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant