Coder Social home page Coder Social logo

manual-pair-close.fish's Introduction

manual-pair-close.fish

A fish shell plugin to add matching brackets or quotes – like autopairs, but manually.

Why?

Autopair plugins are nice most of the time. And then all of them eventually insert/skip/add a bracket or quote against your intention. It tends to make me furious.

Usage

Here's an alternative.

Before: (|
Press <Tab>.
After: (|)

Supports () [] {} <> "" '' `` »« „“

Installation

Using fisher:

fisher install bagohart/manual-pair-close.fish

Manually:

Copy the files _manual_close_pair.fish and _manual_close_pair_or_complete.fish into $XDG_CONFIG_HOME/fish/functions/ (probably ~/.config/fish/functions).

Configuration

This plugin does not add any mappings, add them yourself in your config.fish.

To overload <Tab>, add

bind \t _manual_close_pair_or_complete

For any other key, e.g. <CTRL-Space>

bind -k nul _manual_close_pair

Alternatives

Autopair plugins exist:
https://github.com/jorgebucaran/autopair.fish
https://github.com/laughedelic/pisces
I don't know of any manual pair plugins like this one.

manual-pair-close.fish's People

Contributors

bagohart avatar

Stargazers

ccoVeille avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.