Skip to content

Generated completions for Fish shell don't work for Spago #29

Description

@postsolar

Describe the bug
Generated completions for Fish shell don't work for Spago

To Reproduce

> spago --fish-completion-script (which spago) > ~/.config/fish/completions/spago.fish
> source ~/.config/fish/config.fish
# and just in case> source ~/.config/fish/completions/spago.fish

Expected behavior
Shell completions appear upon pressing tab etc.

Additional context
Fish 3.6.1
Spago v0.93.18

Generated script:

function _bundle.js
set-l cl (commandline--tokenize--current-process)
# Hack around fish issue #3934set-l cn (commandline--tokenize--cut-at-cursor--current-process)
set-l cn (count$cn)
set-l tmpline --bash-completion-enriched--bash-completion-index$cnfor arg in$clset tmpline $tmpline--bash-completion-word$argendfor opt in (/home/me/.asdf/shims/spago $tmpline)
iftest-d$optecho-E"$opt/"elseecho-E"$opt"endendendcomplete--no-files--command bundle.js --arguments'(_bundle.js)'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions