Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat/git_add_priori…
Browse files Browse the repository at this point in the history
…ty_based_on_current_files
  • Loading branch information
cstrnt committed May 23, 2021
2 parents 3758440 + 56fc02e commit 7d31381
Show file tree
Hide file tree
Showing 553 changed files with 588,502 additions and 67,987 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Bug Report 🐞
about: Something isn't working as expected? Here is the right place to report. For questions, please use forum.withfig.com
about: Something isn't working as expected? Here is the right place to report.
labels: "Bug"
---

Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ contact_links:
name: Not an autocomplete issue?
url: "https://github.com/withfig/fig/issues/new/choose"
- about: "Fig's support knowledge base"
name: "💬 Forum"
url: "https://forum.withfig.com"
- about: "Get instant support from the Fig Community Slack"
name: "👋 Slack"
name: "💬 User Support"
url: "https://fig.io/support"
- about: "Get instant support from the Fig Community Discord"
name: "👋 Discord"
url: "https://fig.io/community"
- about: "Get support from the Fig team at [email protected]"
name: "📩 Email"
Expand Down
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ about: You want to tell us something which doesn't fit into the other categories
labels: "Other"
---

### Question

Do you have a Question? Make sure to check out our forum [here](https://forum.withfig.com/)
### Need Help

Do you need help? Check out [fig.io/support](fig.io/support)

### Community

Do you want to get updates or chat with the creators and maintainers from Fig? Check out our community Slack [here](https://figcommunity.slack.com/join/shared_invite/zt-fupa9n8g-sfHm8MyBn1DBaCj8SoIxSA#/shared-invite/email)
Do you want to get updates or chat with the creators and maintainers from Fig? Check out our [community Discord](https://fig.io/community)
2 changes: 1 addition & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
- run: yarn danger ci -d ./dangerfile-invite.ts
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
19 changes: 12 additions & 7 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@ jobs:
update_page:
runs-on: "ubuntu-latest"
env:
UPDATE_SITE_TOKEN: ${{ secrets.UPDATE_DOCS_TOKEN }}
UPDATE_SITE_TOKEN: ${{ secrets.UPDATE_PRIVATE_DOCS_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: update submodules
run: |
git clone https://withfig-bot:[email protected]/withfig/docs.git
cd docs
git clone https://withfig-bot:[email protected]/withfig/public-site-nextjs.git
cd public-site-nextjs
curl https://docs-generator.cstrnt.workers.dev/ > autocomplete/api.md
curl https://fig.io/api/docs/parseDocs -o newDocs.zip
git config user.email "[email protected]"
unzip -o newDocs.zip -d docs/autocomplete/schemas/
rm -f newDocs.zip
git config user.email "[email protected]"
git config user.name "Figbot"
git add autocomplete/api.md
git commit -m "added updates to docs"
git add docs/autocomplete/schemas/
git commit -m "added updates to docs" --allow-empty
git push origin main --force
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ dist
build
npm-debug.log
.env

.idea/
.vscode
specs
.idea/
.vscode
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ By contributing, you agree that your contributions will be licensed under its MI

## Questions and support

For product support, visit our [docs](https://fig.io/docs) and join the [Fig Community](https://figcommunity.slack.com/join/shared_invite/zt-fupa9n8g-sfHm8MyBn1DBaCj8SoIxSA#/) for instant support and discussion.
For product support, visit our [docs](https://fig.io/docs) and join the [Fig Community](https://fig.io/community) for instant support and discussion.

Any unanswered questions or inquiries? We're always open to chat at [email protected].
122 changes: 61 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,69 @@

![os](https://img.shields.io/badge/os-%20macOS-light)
[![Signup](https://img.shields.io/badge/signup-private%20beta-blueviolet)](https://fig.io?ref=github_autocomplete)
[![Documentation](https://img.shields.io/badge/documentation-black)](https://fig.io/docs/autocomplete/getting-started)
[![All-Contributors](https://img.shields.io/github/all-contributors/withfig/autocomplete)](#Contributors)
[![Slack](https://img.shields.io/badge/slack-purple)](https://fig.io/community)
[![Documentation](https://img.shields.io/badge/documentation-black)](https://fig.io/docs/)
[![All-Contributors](https://img.shields.io/github/contributors/withfig/autocomplete)](#Contributors)
![Discord](https://img.shields.io/discord/837809111248535583?color=768ad4&label=discord)
[![Twitter](https://img.shields.io/twitter/follow/fig.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=fig)

**[Fig](https://fig.io?ref=github_autocomplete) adds autocomplete to the terminal.** As you type, Fig pops up subcommands, options, and contextually relevant arguments in your existing terminal on macOS.
**[Fig](https://fig.io?ref=github_autocomplete) adds autocomplete to your terminal.**

As you type, Fig pops up subcommands, options, and contextually relevant arguments in your existing terminal on macOS.

![Fig Visual Autocomplete For Your Terminal Demo](https://fig.io/gifs/demo-with-header.gif)

## Add a completion spec for a CLI tool
<br/>

## 👋 Add a completion spec for a CLI tool

Want to add autocomplete to a CLI tool (or make changes to an existing autocomplete spec)? We welcome contributions for new specs!

Completion specs are defined in a _declarative_ schema that specifies `subcommands`, `options` and `arguments`. Suggestions are generated from information in the spec or can be generated dynamically by running shell commands or reading local files.

Looking to improve autocomplete functionality or add support for your favorite CLI tool? We welcome contributions for new specs!
**For documentation and tutorials**, visit [fig.io/docs](https://fig.io/docs/autocomplete/getting-started)

Completion specs are defined in a _declarative_ schema that specifies `subcommands`, `options` and `arguments`. Suggestions can be generated dynamically by running shell commands or reading local files, in addition to the information in the spec itself.
**To request autocomplete for a CLI tool**, open an [issue](https://github.com/withfig/autocomplete/issues/new/choose).

**For more documentation and tutorials**, visit [fig.io/docs](https://fig.io/docs/autocomplete/getting-started)
<br/>

## 😎 Get Started

Build your first spec in < 3 min: [fig.io/docs/getting-started](fig.io/docs/getting-started)

**To request completions for a CLI tool**, open an [issue](https://github.com/withfig/autocomplete/issues/new/choose).
1. Fork this repo
[![GitHub forks](https://img.shields.io/github/forks/withfig/autocomplete.svg?style=social&label=Fork&maxAge=2592000)](https://GitHub.com/withfig/autocomplete/fork/)

## Get Started
2. Clone your forked repo and create an example spec

```bash
git clone https://github.com/withfig/autocomplete.git fig-autocomplete
# Replace `YOUR_GITHUB_USERNAME` with your own github username
git clone https://github.com/YOUR_GITHUB_USERNAME/autocomplete.git fig-autocomplete
cd fig-autocomplete

# Add withfig/autocomplete as a remote
git remote add upstream https://github.com/withfig/autocomplete.git

# Install packages
npm install

# Go into testing mode
# Create an example spec (call it "abc")
npm run create-example

# Turn on "dev mode"
npm run dev
```

Edit your spec in the `dev/` folder. It will compile to the `specs/` folder on save. Start testing your spec immediately in your terminal.
3. Now go to your terminal and type `abc[space]`. Your example spec will appear 😊

**Note**: Fig usually looks for completion specs in your `~/.fig/autocomplete` folder. When in testing mode, we check your cloned repo's `specs/` folder
#### Other things to know

- Edit your spec in typescript in the `dev/` folder
- On save, specs are compiled to the `specs/` folder
- In **dev mode** specs are read from the `specs` folders. Otherwise they are read from `~/.fig/autocomplete`

<br/>

## Other available commands
## 📦 Other available package.json commands

```bash

Expand All @@ -64,15 +88,25 @@ npm run copy:all
npm run copy <spec-name>
```

## FAQ
## 😊 Need Help?

<p align="center">
Join our community
<br/>
<a href="https://fig.io/community">
<img src="http://fig.io/icons/discord-logo-square.png" width="80px" height="80px" />
</a>
</p>

## 🙋‍♀️ FAQ

#### What terminals does Fig work with?

Fig works with iTerm, the native MacOS Terminal app, Hyper and the integrated terminal in VSCode.

#### How does Fig work?

Fig uses the Accessibility API on Mac to insert text on your behalf and read the current keybuffer.
Fig uses the Accessibility API on Mac to position the window, insert text on your behalf, and read what you've typed in your terminal.

#### Does Fig work on Windows or Linux?

Expand All @@ -88,47 +122,13 @@ Yes! Check out our guide on how to [get started building autocomplete specs](htt

#### Did we miss something?

Get in touch at [email protected] or chat with us on [Slack](https://fig.io/community)

## Contributors ✨

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/falky97"><img src="https://avatars.githubusercontent.com/u/4949076?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="http://rolandshen.com/"><img src="https://avatars.githubusercontent.com/u/8952958?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="http://mschrage.com/"><img src="https://avatars.githubusercontent.com/u/3155109?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://cstrnt.dev/"><img src="https://avatars.githubusercontent.com/u/20679094?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/QuiiBz"><img src="https://avatars.githubusercontent.com/u/43268759?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://julius-kiekbusch.de/"><img src="https://avatars.githubusercontent.com/u/15707543?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/FlowyCoder"><img src="https://avatars.githubusercontent.com/u/28676154?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/samwinslow"><img src="https://avatars.githubusercontent.com/u/4645779?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://jamesj.ac/kson"><img src="https://avatars.githubusercontent.com/u/13633271?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/dipakparmar"><img src="https://avatars.githubusercontent.com/u/24366206?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/DannyAziz"><img src="https://avatars.githubusercontent.com/u/3679064?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/jdotjdot"><img src="https://avatars.githubusercontent.com/u/1328961?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/alexnaiman"><img src="https://avatars.githubusercontent.com/u/25799714?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/omichowdhury"><img src="https://avatars.githubusercontent.com/u/969419?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/winnayx"><img src="https://avatars.githubusercontent.com/u/46658657?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/Nullfuse"><img src="https://avatars.githubusercontent.com/u/61602086?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/vicentube"><img src="https://avatars.githubusercontent.com/u/73502080?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/rk-yen"><img src="https://avatars.githubusercontent.com/u/4944665?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/berbaroovez"><img src="https://avatars.githubusercontent.com/u/6900468?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/smeevil"><img src="https://avatars.githubusercontent.com/u/13874?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/Chair4ce"><img src="https://avatars.githubusercontent.com/u/33118919?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/LI0131"><img src="https://avatars.githubusercontent.com/u/4829473?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="http://sauntimo.org/"><img src="https://avatars.githubusercontent.com/u/2720466?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
<td align="center"><a href="https://github.com/ygaitonde"><img src="https://avatars.githubusercontent.com/u/54426809?v=4" width="30px;" alt="" style="border-radius:100%!important"></a></td>
</tr>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->
Get in touch at [email protected] or chat with us on [Discord](https://fig.io/community)

<br/>

## ✨ Contributors

<a href="https://github.com/withfig/autocomplete/graphs/contributors">
<img src="https://contrib.rocks/image?repo=withfig/autocomplete" />
</a>
<!-- https://contrib.rocks -->
2 changes: 1 addition & 1 deletion dangerfile-invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ schedule(async () => {
const inviteMarkdown = `
@${username} Hey! Thanks so much for your contribution!
As a token of our appreciation, we've invited you to join the Fig GitHub organization. Accepting means you can display Fig's logo on your Github profile's list of member orgs. We also have a special #contributors channel in our [community Slack](https://fig.io/community) and we'd love for you to join.
As a token of our appreciation, we've invited you to join the Fig GitHub organization. Accepting means you can display Fig's logo on your Github profile's list of member orgs. We also have a special #contributors channel in our [community Discord](https://fig.io/community) and we'd love for you to join.
Excited to have you in the community!
Expand Down
Loading

0 comments on commit 7d31381

Please sign in to comment.