Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorgebucaran/autopair.fish
Auto-complete matching pairs in the Fish command line
https://github.com/jorgebucaran/autopair.fish
commandline fish fish-plugin
Last synced: about 1 month ago
JSON representation
Auto-complete matching pairs in the Fish command line
- Host: GitHub
- URL: https://github.com/jorgebucaran/autopair.fish
- Owner: jorgebucaran
- License: mit
- Created: 2019-01-14T01:05:13.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-04T16:00:24.000Z (about 2 years ago)
- Last Synced: 2024-05-02T05:31:13.327Z (4 months ago)
- Topics: commandline, fish, fish-plugin
- Language: Shell
- Homepage:
- Size: 37.1 KB
- Stars: 343
- Watchers: 6
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awsm.fish - Autopair - Auto-complete matching pairs in the Fish command-line. ([Alternative](https://github.com/laughedelic/pisces)) (Plugins)
- awesometools - autopair.fish - Auto-complete matching pairs in the Fish command line. (For Developers / Utilities)
README
# autopair.fish
> Auto-complete matching pairs in the [Fish](https://fishshell.com) command line.
Automatically insert, erase, and skip matching pairs as you type in the command-line: `()`, `[]`, `{}`, `""`, and `''`. E.g., pressing `(` inserts `()` and positions the cursor in between the parentheses. Hopefully.
- Insert matching pairs.
```console
$ echo β’ # Let's say βͺ is the cursor!
```" π₯
```console
$ echo "βͺ"
```- Erase pairs on backspace:
```console
$ echo "Heyβͺ"
```Backspace π₯π₯π₯
```console
$ echo "βͺ"
```Backspace π₯
```console
$ echo βͺ
```- Skip over matched pairs:
```console
$ echo "Heyβͺ"
```" π₯
```console
$ echo "Hey"βͺ
```- Gracefully handle Tab completions for variables while inside double quotes.
```console
$ echo "$fish_color_βͺ"
```Tab π₯
```console
$ echo "$fish_color_βͺ
"$fish_color_autosuggestion (Variable: '555' 'brblack')
"$fish_color_cancel (Variable: -r)
"$fish_color_command (Variable: blue)
"$fish_color_comment (Variable: red)
...
```## Installation
Install with [Fisher](https://github.com/jorgebucaran/fisher):
```console
fisher install jorgebucaran/autopair.fish
```## License
[MIT](LICENSE.md)