withfig/autocomplete
Fork: 5513 Star: 24625 (更新于 2024-12-17 07:31:11)
license: MIT
Language: TypeScript .
IDE-style autocomplete for your existing terminal & shell
最后发布版本: spec-build-number-0.1312.0 ( 2024-08-21 15:14:33)
Amazon Q Developer in the command line
adds IDE-style completions for hundreds of popular CLIs like git
, npm
,
docker
, and aws
. Start typing, and Amazon Q populates contextually relevant
subcommands, options and arguments.
⚡️ Installation
-
macOS:
- DMG: Download from AWS: aws.amazon.com
-
Homebrew:
brew install amazon-q
- Linux/Windows:
- Remote machines
NOTE: Once it's downloaded, launch the app to set up Amazon Q for command line!
👋 What are "completion specs"?
A completion spec is a declarative schema that specifies the subcommands
,
options
and args
for a CLI tool. Amazon Q uses these schemas to generate
suggestions.
😎 Contribute your first spec in < 3 minutes
Use the steps below or follow our getting started guide: fig.io/docs
Prerequisites:
- Download Amazon Q for command line
- Node and Pnpm
Steps
-
Make sure you have
pnpm
installed, as that's the package manager used in this repo. -
Click here to fork this repo.
-
Clone your forked repo and create an example spec
# Replace `YOUR_GITHUB_USERNAME` with your own GitHub username git clone https://github.com/YOUR_GITHUB_USERNAME/autocomplete.git autocomplete cd autocomplete # Add withfig/autocomplete as a remote git remote add upstream https://github.com/withfig/autocomplete.git # Install packages pnpm install # Create an example spec (call it "abc") pnpm create-spec abc # Turn on "dev mode" pnpm dev
-
Now go to your terminal and type
abc[space]
. Your example spec will appear. 😊
Other things to know
- Edit your spec in TypeScript in the
src/
folder - On save, specs are compiled to the
build/
folder - In dev mode, specs are read from the
build
folder, and generators run every keystroke.
📦 Other available package.json commands
# Typecheck all specs in the src/ folder
pnpm test
# Compile typescripts specs from src/ folder to build/ folder
pnpm build
# Lint and fix issues
pnpm lint:fix
🔥 Contributions
We would love contributions for:
- New completion specs
- Errors with existing completion specs (e.g. missing subcommands, options, or arguments)
- Generators for argument suggestions
- Better descriptions, icons etc
- Themes!
If you aren't able to contribute, please feel free to open an issue.
🙋♀️ FAQ
What terminals does Amazon Q work with?
Amazon Q for command line works with the native macOS Terminal app, iTerm, Tabby, Hyper, Kitty, WezTerm, and Alacritty. It also works in the integrated terminals of VSCode, JetBrains IDEs, Android Studio, and Nova.
Want to see another terminal included? Check our issue tracker and add your support for it!
How does Amazon Q for command line work?
Amazon Q for command line uses the Accessibility API on Mac to position the window, and integrates with your shell to read what you've typed.
Does Amazon Q for command line work on Windows or Linux?
Not yet, Amazon Q for command line is only available on macOS for now. Windows and Linux support is in progress!
How can I download Amazon Q?
Run brew install amazon-q
or, downloading the app at
aws.amazon.com.
Then, launch the Amazon Q app!
How do I submit a PR?
Check out our How to Contribute guide. Many of Amazon Q's 400+ contributors made their first open source contribution to Amazon Q!
Amazon Q for command line doesn't work for me!
Run q doctor
to automatically debug issues with your installation. Otherwise
make an issue in our GitHub discussions community:
aws/q-command-line-discussions
✨ Contributors
最近版本更新:(数据更新于 2024-09-04 17:54:53)
2024-08-21 15:14:33 spec-build-number-0.1312.0
2024-08-15 01:25:05 spec-build-number-0.1311.0
2024-08-09 03:42:04 spec-build-number-0.1310.1
2024-08-09 03:28:32 spec-build-number-0.1310.0
2024-08-09 03:27:08 spec-build-number-0.1309.0
2024-08-08 01:29:36 spec-build-number-0.1308.0
2024-08-07 23:31:56 spec-build-number-0.1307.0
2024-08-02 02:18:34 spec-build-number-0.1306.1
2024-08-01 00:47:52 spec-build-number-0.1306.0
2024-07-31 01:05:19 spec-build-number-0.1305.1
主题(topics):
autocomplete, bash, cli, fig, fish, hacktoberfest, iterm2, macos, shell, terminal, typescript, zsh
withfig/autocomplete同语言 TypeScript最近更新仓库
2024-12-21 21:40:12 lobehub/lobe-chat
2024-12-21 12:01:51 siyuan-note/siyuan
2024-12-21 10:57:01 ai16z/eliza
2024-12-21 09:15:35 MetaCubeX/metacubexd
2024-12-21 04:50:26 mediar-ai/screenpipe
2024-12-20 19:36:48 vitejs/vite