Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal
by mschrage on Tuesday May 25, 2021 @05:32PM
(#27282973)
The current implementation of Fig is a native macOS app (Swift/ObjC) that exposes an API to access terminal specific information - edit buffer, working directory, current process, etc. On every platform we support, we'll implement this natively.
As Fig grows, we want to enable an ecosystem of UI extensions for the terminal that are built to go cross platform. Using web technology here made sense since we can leverage built-in webviews for rendering or bundle a lightweight implementation like Tauri[0].
[1]
Re:Launch HN: Fig (YC S20) – Autocomplete for the Terminal
by Cyberdog on Wednesday May 26, 2021 @01:02PM
(#27293090)
I don't understand this response, so let me rephrase my question.
This page https://fig.io/docs/getting-started says that Node.js and NPM is required to use Fig. I presumed this meant that Fig was written in JavaScript, but you're saying it's native. Then why is Node required? If you're using web views for UI, wouldn't those web views on each respective platform already have their own JS engines?
Then why on earth did you go out of the way to implement this in JavaScript instead?