• Stars
    star
    369
  • Rank 115,686 (Top 3 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 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,043
star
2

fisher

A plugin manager for Fish
Shell
7,560
star
3

awsm.fish

A curation of prompts, plugins & other Fish treasures 🐚💎
4,066
star
4

nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
Shell
2,033
star
5

cookbook.fish

From Shell to Plate: Savor the Zest of Fish 🦞
2,002
star
6

colorette

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

superfine

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

classcat

Build a class attribute string quickly
JavaScript
905
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
609
star
11

hyperawesome

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

replay.fish

Run Bash commands, replay changes in Fish 🍤
Shell
392
star
13

twist

Declarative JavaScript Testing
JavaScript
378
star
14

fishtape

100% pure-Fish test runner
Shell
345
star
15

spark.fish

▁▂▄▆▇█▇▆▄▂▁
Shell
335
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
220
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