reddit / emacs

IDE-style autocomplete for your terminal

[deleted] · 2022-03-24 17:31
[deleted]
brendanfalk · 2022-03-24 17:32
Hey everyone! I'm Brendan, creator of Fig ([fig.io](https://fig.io/?ref=reddit)). Fig adds IDE-style autocomplete to your existing terminal (zsh, iTerm, etc.). My co-founder Matt and I built Fig because of our own struggles in the terminal: we were tired of context switching between man pages, Stack Overflow posts, and Medium tutorials anytime we got stuck. We wanted our CLI tools to be more discoverable. The terminal is powerful, but unforgiving. It emulates the constraints of hardware (like teletype printers and video terminals) that became obsolete a generation ago. There are no built-in affordances. No hints about the 'right way' of using a tool or even finding the right tool for the job. Beginners are thrown in the deep end. And even seasoned developers can screw up their system with a few unfortunate keystrokes. To solve this, we add a UI overlay that is linked with the interactive shell. As you type, Fig pops up subcommands, options, and contextually relevant arguments in your existing terminal. For example, you can type npm run and Fig will show you the scripts available in your package.json. You could also type cd when SSH'd into a remote machine and Fig will list the folders within your current directory on the remote machine. At the moment, we support 300+ CLI tools. Fig is designed to be private. All processing happens locally on your device. None of your keystrokes are ever transmitted or stored by Fig. All our completions are [OSS](https://github.com/withfig/autocomplete). I'd love to hear any feedback on what we’ve built! Also, feel free to join our [Discord.](https://discord.com/invite/cg4UjshF2M)
oceanlessfreediver · 2022-03-24 17:42
Looks very neat, is there a connection with emacs beyond the fact that emacs can be run with a terminal ?
brendanfalk · 2022-03-24 17:58
We thought many emac users would find it helpful)))
lebensterben · 2022-03-24 18:01
looks neat. But doesn't seem to work under Linux, does it?
oceanlessfreediver · 2022-03-24 18:06
I will definitely take a look!
brendanfalk · 2022-03-24 18:06
Let us know if you have questions/feedback)))
brendanfalk · 2022-03-24 18:12
Thanks)) We finished re-writing our codebase in rust, and we're now working on Windows and Linux ports of Fig. You can follow these threads to be updated on cross-platform support: Windows: [https://github.com/withfig/fig/issues/35](https://github.com/withfig/fig/issues/35](https://github.com/withfig/fig/issues/35)) Linux: [https://github.com/withfig/fig/issues/34](https://github.com/withfig/fig/issues/34](https://github.com/withfig/fig/issues/34))
BettaGeorge · 2022-03-24 18:20
The website takes great pains to mention as often as possible that the "completion specs are all open source". Can I infer from this that the tool itself, the thing that one would install, is *not* open source?
brendanfalk · 2022-03-24 18:31
Yep, Fig is not fully open source nor we claim to be. However, Fig’s autocomplete specs are open source ([github.com/withfig/autocomplete](https://github.com/withfig/autocomplete)), and we're planning to open up our codebase more in the future. For example, the [plugins](https://github.com/withfig/plugins) we are launching soon will be OSS.
BettaGeorge · 2022-03-24 18:36
>For example, the [plugins](https://github.com/withfig/plugins) we are launching soon will be OSS. FYI, I can find no licensing information on that page. You might want to add that, or people might be very wary to contribute. Anyway, it's definitely a cool project! I won't check it out since I try to run GPL only, but it looks neat.
brendanfalk · 2022-03-24 18:49
Good catch, we'll add the LICENSE file to plugins as well 😀!
[deleted] · 2022-03-24 18:59
What are you doing with those parentheses?
jsled · 2022-03-24 19:36
This has been removed, as posts must relate to emacs.