Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

jorgebucaran/autopair.fish

Auto-complete matching pairs in the Fish command line

jorgebucaran/autopair.fish.json
{
"createdAt": "2019-01-14T01:05:13Z",
"defaultBranch": "main",
"description": "Auto-complete matching pairs in the Fish command line",
"fullName": "jorgebucaran/autopair.fish",
"homepage": "",
"language": "Shell",
"name": "autopair.fish",
"pushedAt": "2022-07-04T16:00:24Z",
"stargazersCount": 503,
"topics": [
"commandline",
"fish",
"fish-plugin"
],
"updatedAt": "2025-11-25T19:56:55Z",
"url": "https://github.com/jorgebucaran/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.

    Terminal window
    $ echo ⎢ # Let's say ⎪ is the cursor!

    🥊

    Terminal window
    $ echo ""
  • Erase pairs on backspace:

    Terminal window
    $ echo "Hey⎪"

    Backspace 🥊🥊🥊

    Terminal window
    $ echo ""

    Backspace 🥊

    Terminal window
    $ echo ⎪
  • Skip over matched pairs:

    Terminal window
    $ echo "Hey⎪"

    🥊

    Terminal window
    $ echo "Hey"
  • Gracefully handle Tab completions for variables while inside double quotes.

    Terminal window
    $ echo "$fish_color_"

    Tab 🥊

    Terminal window
    $ echo "$fish_color_
    "$fish_color_autosuggestion (Variable: '555' 'brblack')
    "$fish_color_cancel (Variable: -r)
    "$fish_color_command (Variable: blue)
    "$fish_color_comment (Variable: red)
    ...

Install with Fisher:

Terminal window
fisher install jorgebucaran/autopair.fish

[MIT]!(LICENSE.md)