Skip to content

Support Tab Completion#551

Merged
natefinch merged 18 commits into
masterfrom
nf/tabcomplete
Apr 22, 2026
Merged

Support Tab Completion#551
natefinch merged 18 commits into
masterfrom
nf/tabcomplete

Conversation

@natefinch
Copy link
Copy Markdown
Member

Tab completion for zsh, bash, fish, and powershell installed with mage -install <shellname>.

Add hidden -autocomplete to return just the names of targets so you can use your own autocomplete if you don't like Mage's.

Also while we're at it, made mage -l lightning fast since it no longer compiles the full code, since it already knows everything it needs to output the list of targets before compile.

@natefinch
Copy link
Copy Markdown
Member Author

@copilot fix the linter errors.

Copilot AI and others added 6 commits April 19, 2026 19:47
Agent-Logs-Url: https://github.com/magefile/mage/sessions/e946e5e6-ab3f-455c-a51f-eec28c14291c

Co-authored-by: natefinch <3185864+natefinch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/magefile/mage/sessions/e946e5e6-ab3f-455c-a51f-eec28c14291c

Co-authored-by: natefinch <3185864+natefinch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/magefile/mage/sessions/e946e5e6-ab3f-455c-a51f-eec28c14291c

Co-authored-by: natefinch <3185864+natefinch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/magefile/mage/sessions/e946e5e6-ab3f-455c-a51f-eec28c14291c

Co-authored-by: natefinch <3185864+natefinch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/magefile/mage/sessions/e946e5e6-ab3f-455c-a51f-eec28c14291c

Co-authored-by: natefinch <3185864+natefinch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/magefile/mage/sessions/e946e5e6-ab3f-455c-a51f-eec28c14291c

Co-authored-by: natefinch <3185864+natefinch@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Apr 19, 2026

@copilot fix the linter errors.

Fixed in a872d55. I resolved the lint failures (gosec/modernize/revive), ran goimports on changed Go files, and validated with golangci-lint plus go test ./... (all passing).

@natefinch natefinch marked this pull request as ready for review April 22, 2026 13:10
Comment thread mage/args_test.go Outdated
@natefinch natefinch merged commit 791a5b4 into master Apr 22, 2026
22 checks passed
@natefinch natefinch deleted the nf/tabcomplete branch April 22, 2026 16:53
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.

2 participants