nu_scripts/custom-completions
Auca Coyan bc6273d971
🐛 fix a couple of parser errors (#782)
This is some legwork to the CI
- [x] fix one `get-row.nu` before 0.60, just because it was easy
- [x] `modules/formats/to-ini.nu`
- [x] `modules/git/git-v2.nu`
- [x] `modules/git/git.nu`
- [x] `modules/log/log.nu`
- [x] `modules/weather/weatherdark.nu`
- [x] `sourced/api_wrappers/worlframalpha.nu`
- [x] `sourced/cool-oneliners/pwd-short.nu`
- [x] `sourced/github/branch-protections/branch-protections.nu`
- [x] `sourced/gitlab/gitlab.nu`
- [x] `sourced/misc/nu_defs.nu`
- [x] `sourced/update-path.nu`
- [x] `sourced/webscraping/shell_starts.nu`
I moved some auto-generated commands:
- [x] `ack` 
- [x] `as`
- [x] `curl`
- [x] `fsarprc`
- [x] `fsarpri`
- [x] `godoc`
- [x] `mysql` 
- [x] and `xgettext` 
to custom, so we keep the modifications.
I had to comment some of the flags because the parser is not able to
parse some flags. Those are explained in comments
2024-03-10 14:05:01 -05:00
..
ack 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
ani-cli fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
as 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
auto-generate 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
bat add bat completions (#766) 2024-02-28 09:45:46 -06:00
bitwarden-cli fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
btm fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
cargo fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
cargo-make add cargo-make completions (#769) 2024-02-29 14:23:17 -06:00
curl 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
fsharpc 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
fsharpi 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
gh 🐛 fix optional args when doing gh repo create and gh repo fork (#763) 2024-02-22 13:19:55 -06:00
git 🐛 fix optional arg in git stash show (#765) 2024-02-26 15:42:28 -06:00
glow fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
godoc 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
just fix: update deprecated spread operator in just (#758) 2024-02-10 16:23:30 -06:00
make Case insensitive and reformatted make completions (#515) 2023-05-26 16:00:23 -05:00
man Fix: Completions Broken '-s' flag in man-completions (#619) 2023-09-24 11:05:37 +02:00
mask mask-completions (#631) 2023-10-07 12:26:58 +02:00
mysql 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
nano the function to display bars of given percentage from given width (#478) 2023-05-12 09:11:20 -05:00
nix fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
npm fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
pass Extend pass completion (#756) 2024-02-07 10:46:41 -06:00
pdm feat(completions): add PDM custom completions (#573) 2023-08-09 09:27:17 -05:00
pixi feat: add pixi completions (#755) 2024-02-07 07:21:36 -06:00
pnpm Add pnpm completions (#692) 2023-12-09 10:55:52 -06:00
poetry fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
reflector fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
rg add rg completions (#767) 2024-02-28 14:14:19 -06:00
rustup 🐛 fix (default) and (installed) on rustup completions (#721) 2023-12-29 08:35:15 -06:00
scoop 🐛 fix scoop completinos (an extra ) (#780) 2024-03-09 13:42:11 +01:00
tealdeer fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
toipe add completion for toipe (#508) 2023-05-24 13:02:00 -05:00
typst Fixed the completion of --flamegraph (#502) 2023-05-17 17:34:01 -05:00
vscode code completions (#719) 2023-12-27 08:28:43 -06:00
winget 🐛 fix winget-completions (#749) 2024-01-25 11:50:26 -06:00
xgettext 🐛 fix a couple of parser errors (#782) 2024-03-10 14:05:01 -05:00
yarn 🐛 rename yarn for yarn-v4 and add run cmpl (#720) 2023-12-28 10:05:09 -06:00
zellij fix: output format changed in zellij ls (#770) 2024-03-02 07:42:34 -06:00
README.md 🐛 Fix rustup use completions and modify README (#696) 2023-12-13 16:43:19 -06:00

Custom completions

This current directory provides custom completions. They can be used by importing their exported commands via:

use path/to/<command>/<command>-completions.nu *
# or
source path/to/<command>/<command>-completions.nu
# without the `*` at the end

With path/to/<command> being either the relative path of the file to your current working directory or its absolute path.

Bear in mind that if you import the use <path> *, it is important that you don't name a function with the same name of the file

# file: rustup.nu 

export extern rustup [
    ...args
]

use ./rustup.nu * won't work here