Skip to content

Commit

Permalink
fix: autocomplete 🐇🐇 (#120), resolves #104
Browse files Browse the repository at this point in the history
* chore: add auto complete base logic

* chore: autocomplete to expand on paths and return nearest matches

* fix: better patch matching for programs and prefix local folders with ./

* fix: add commands to the auto complete results

* fix: ac (autocomplete) component

* fix: tab completion

* fix: auto complete is now just a list

* fix: final touches to auto complete

* fix: fix lint bug
  • Loading branch information
daretodave authored May 13, 2024
1 parent e968b41 commit 27435c4
Show file tree
Hide file tree
Showing 10 changed files with 659 additions and 6 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ this means commands such as `ls`, `cd` or program commands such as `node -v` or

Head over to the [release page](https://github.com/mterm-io/mterm/releases/latest) to find the binary for your system type. mterm is evergreen and updates are automatically installed on your system as hey get released. Run `:v` to see your current mterm version.

### Autocomplete

Start typing, mterm will pick up your available: programs, [system commands](#system), [custom commands](#commands) and history

Finally, hit tab to finish the completion -
![image](./docs/assets/autocomplete.gif)

### Command Mode

By default, **mterm** opens in command mode (you can change this in [settings](#settings)). A couple of notes about command mode -
Expand Down
Binary file added docs/assets/autocomplete.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 27435c4

Please sign in to comment.