• Stars
    star
    345
  • Rank 118,827 (Top 3 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Auto-complete matching pairs in the Fish command line

autopair.fish

Auto-complete matching pairs in the Fish 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.

    $ echo ⎒ # Let's say βŽͺ is the cursor!

    " πŸ₯Š

    $ echo "βŽͺ"
  • Erase pairs on backspace:

    $ echo "HeyβŽͺ"

    Backspace πŸ₯ŠπŸ₯ŠπŸ₯Š

    $ echo "βŽͺ"

    Backspace πŸ₯Š

    $ echo βŽͺ
  • Skip over matched pairs:

    $ echo "HeyβŽͺ"

    " πŸ₯Š

    $ echo "Hey"βŽͺ
  • Gracefully handle Tab completions for variables while inside double quotes.

    $ echo "$fish_color_βŽͺ"

    Tab πŸ₯Š

    $ 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:

fisher install jorgebucaran/autopair.fish

License

MIT

More Repositories

1

hyperapp

1kB-ish JavaScript framework for building hypertext applications
JavaScript
19,026
star
2

fisher

A plugin manager for Fish
Shell
7,412
star
3

awsm.fish

A curation of prompts, plugins & other Fish treasures πŸšπŸ’Ž
3,951
star
4

cookbook.fish

From Shell to Plate: Savor the Zest of Fish 🦞
1,976
star
5

nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
Shell
1,964
star
6

colorette

🌈Easily set your terminal text color & styles
JavaScript
1,584
star
7

superfine

Absolutely minimal view layer for building web interfaces
JavaScript
1,559
star
8

classcat

Build a class attribute string quickly
JavaScript
901
star
9

getopts

Node.js CLI options parser
JavaScript
633
star
10

hydro

Ultra-pure, lag-free prompt with async Git statusβ€”just for Fish
Shell
589
star
11

hyperawesome

A curated list of awesome projects built with Hyperapp + more
489
star
12

replay.fish

Run Bash commands, replay changes in Fish 🍀
Shell
383
star
13

twist

Declarative JavaScript Testing
JavaScript
378
star
14

fishtape

100% pure-Fish test runner
Shell
342
star
15

spark.fish

β–β–‚β–„β–†β–‡β–ˆβ–‡β–†β–„β–‚β–
Shell
329
star
16

hyperapp-router

Declarative routing for Hyperapp V1 using the History API.
JavaScript
257
star
17

getopts.fish

Parse CLI options in Fish
Shell
216
star
18

gitio.fish

Create a custom git.io URL
Shell
88
star
19

hyperapp-html

Html helper functions for Hyperapp V1
JavaScript
81
star
20

pyenv

Pyenv support plugin for fish-shell
Shell
62
star
21

humantime.fish

Turn milliseconds into a human-readable string in Fish
Shell
21
star
22

.github

My health files
1
star
23

jorgebucaran.github.io

HTML
1
star