Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/withfig/autocomplete
IDE-style autocomplete for your existing terminal & shell
https://github.com/withfig/autocomplete
autocomplete bash cli fig fish hacktoberfest iterm2 macos shell terminal typescript zsh
Last synced: 6 days ago
JSON representation
IDE-style autocomplete for your existing terminal & shell
- Host: GitHub
- URL: https://github.com/withfig/autocomplete
- Owner: withfig
- License: mit
- Created: 2020-09-29T02:21:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-13T07:00:00.000Z (13 days ago)
- Last Synced: 2025-01-13T13:17:42.304Z (13 days ago)
- Topics: autocomplete, bash, cli, fig, fish, hacktoberfest, iterm2, macos, shell, terminal, typescript, zsh
- Language: TypeScript
- Homepage: https://fig.io
- Size: 36.5 MB
- Stars: 24,661
- Watchers: 89
- Forks: 5,502
- Open Issues: 165
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-softwares - link - note.oss-cn-hangzhou.aliyuncs.com/linuxQ.png) | ![yes](https://security-note.oss-cn-hangzhou.aliyuncs.com/yes.png) | terminal AI 提示补全 (跟代码补齐的插件类似) | (效率增强与辅助)
- awesome - withfig/autocomplete - IDE-style autocomplete for your existing terminal & shell (TypeScript)
- awesomeLibrary - autocomplete
- Awesome-GitHub-Repo - autocomplete
- my-awesome-starred - withfig/autocomplete - IDE-style autocomplete for your existing terminal & shell (TypeScript)
- awesome-github-star - autocomplete - style autocomplete for your existing terminal & shell | withfig | 23047 | (TypeScript)
- awesome-list - autocomplete
- awesome - withfig/autocomplete - IDE-style autocomplete for your existing terminal & shell (TypeScript)
- project-awesome - withfig/autocomplete - IDE-style autocomplete for your existing terminal & shell (TypeScript)
- StarryDivineSky - withfig/autocomplete
- awesome - withfig/autocomplete - IDE-style autocomplete for your existing terminal & shell (TypeScript)
- awesome-ops - withfig/autocomplete - 09-29|2024-10-03 | 非常强大的终端命令参数自动补全工具 | (终端命令行工具)
- awesome-javascript - @withfig/autocomplete - style autocomplete for your existing terminal & shell (Packages)
- awesome-javascript - @withfig/autocomplete - style autocomplete for your existing terminal & shell (Packages)
README
[![Badge: macOS](https://img.shields.io/badge/os-%20macOS-light)](#)
[![Badge: Documentation](https://img.shields.io/badge/documentation-black)](https://fig.io/docs/)
[![Badge: contributors](https://img.shields.io/github/contributors/withfig/autocomplete)](#Contributors)**[Amazon Q Developer in the command line](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-getting-started-installing.html)
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](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-getting-started-installing.html)
- **Homebrew**: `brew install amazon-q`
- **Linux/Windows**:
- Follow the discussions for
[Linux](https://github.com/aws/q-command-line-discussions/discussions/14) or
[Windows](https://github.com/aws/q-command-line-discussions/discussions/15)
- **Remote machines**
- [Autocomplete in SSH](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-autocomplete-ssh.html)> NOTE: Once it's downloaded, launch the app to set up Amazon Q for command
> line!
![Demo of Amazon Q's CLI Completions in a terminal](https://docs.aws.amazon.com/images/amazonq/latest/qdeveloper-ug/images/command-line-completions.gif)
## 👋 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](https://fig.io/docs)**Prerequisites:**
- Download Amazon Q for command line
- Node and Pnpm
**Steps**
1. Make sure you have `pnpm` [installed](https://pnpm.io/installation), as
that's the package manager used in this repo.2. Click [here](https://GitHub.com/withfig/autocomplete/fork/) to fork this
repo.3. Clone your forked repo and create an example spec
```bash
# 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
```4. 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
```bash
# 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](https://fig.io/docs/getting-started/generating-argument-suggestions)
for argument suggestions
- Better descriptions, icons etc
- [Themes](https://github.com/withfig/themes)!If you aren't able to contribute, please feel free to open an
[issue](https://github.com/withfig/autocomplete/issues/new/choose).## 🙋♀️ 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].[iterm]: https://iterm2.com
[tabby]: https://tabby.sh
[hyper]: https://hyper.is
[kitty]: https://sw.kovidgoyal.net/kitty
[wezterm]: https://wezfurlong.org/wezterm/
[alacritty]: https://alacritty.org/
[vscode]: https://code.visualstudio.com/
[jetbrains ides]: https://www.jetbrains.com/
[android studio]: https://developer.android.com/studio
[nova]: https://nova.app/Want to see another terminal included? Check our
[issue tracker](https://github.com/aws/q-command-line-discussions) 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](https://github.com/aws/q-command-line-discussions/discussions/15) and
[Linux](https://github.com/aws/q-command-line-discussions/discussions/14)
support is in progress!#### How can I download Amazon Q?
Run `brew install amazon-q` or, downloading the app at
[aws.amazon.com](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-getting-started-installing.html).
Then, launch the Amazon Q app!#### How do I submit a PR?
Check out our
[How to Contribute](https://fig.io/docs/getting-started/contributing) 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](https://github.com/aws/q-command-line-discussions/discussions)
## ✨ Contributors