All Projects → laughedelic → Pisces

laughedelic / Pisces

Licence: lgpl-3.0
♓️ Fish shell plugin that helps you to work with paired symbols in the command line

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Pisces

Sdkman For Fish
Adds support for SDKMAN! to fish
Stars: ✭ 139 (-33.81%)
Mutual labels:  fish, fish-shell, plugin
To Fish
Bookmarks for Fish Shell
Stars: ✭ 44 (-79.05%)
Mutual labels:  fish, fish-shell
Spacefish
🚀🐟 The fish shell prompt for astronauts
Stars: ✭ 856 (+307.62%)
Mutual labels:  fish, fish-shell
Fish Docker Compose
Fish shell completions for docker-compose
Stars: ✭ 58 (-72.38%)
Mutual labels:  fish, plugin
Done
A fish-shell package to automatically receive notifications when long processes finish.
Stars: ✭ 394 (+87.62%)
Mutual labels:  fish, fish-shell
Virtualfish
Fish shell tool for managing Python virtual environments
Stars: ✭ 819 (+290%)
Mutual labels:  fish, fish-shell
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+2005.71%)
Mutual labels:  fish, fish-shell
fish-exa
🐟 exa aliases for fish
Stars: ✭ 24 (-88.57%)
Mutual labels:  fish, fish-shell
Fish Bd
Quickly go back to a parent directory up in your current working directory tree. Don't write 'cd ../../..' redundantly, use bd instead.
Stars: ✭ 113 (-46.19%)
Mutual labels:  fish, fish-shell
Packages Main
Primary Oh My Fish package repository.
Stars: ✭ 138 (-34.29%)
Mutual labels:  fish, fish-shell
Dtags
Directory Tags for Lazy Programmers
Stars: ✭ 351 (+67.14%)
Mutual labels:  fish, fish-shell
Z.lua
⚡ A new cd command that helps you navigate faster by learning your habits.
Stars: ✭ 2,164 (+930.48%)
Mutual labels:  fish, plugin
Fzf.fish
Augment your fish command line with fzf key bindings.
Stars: ✭ 255 (+21.43%)
Mutual labels:  fish, fish-shell
Dotfiles
📁 📋 📎
Stars: ✭ 6 (-97.14%)
Mutual labels:  fish, fish-shell
fish logo
🐠 Fish shell colorful ASCII-art logo
Stars: ✭ 82 (-60.95%)
Mutual labels:  fish, fish-shell
Breeze
git tool for fish-shell
Stars: ✭ 52 (-75.24%)
Mutual labels:  fish, fish-shell
dotfiles
❤ ~/.🛠🐈 the daily jam 🍞🥜🍇🍞
Stars: ✭ 55 (-73.81%)
Mutual labels:  fish, fish-shell
dotpr0n
Dotfiles for macOS, FreeBSD, fish, tmux, custom functions and lots more. Peekaboo!
Stars: ✭ 44 (-79.05%)
Mutual labels:  fish, fish-shell
Fish Utils
🔧 My utility belt of fish functions, writing these has saved me many hours in the long run... I hope...
Stars: ✭ 94 (-55.24%)
Mutual labels:  fish, fish-shell
Dotfiles
My personal dotfiles.
Stars: ✭ 162 (-22.86%)
Mutual labels:  fish, fish-shell

pisces ☯ 双鱼

pisces ['paɪsiz] is a plugin for fish that helps you to work with paired symbols like () and '' in the command line. Similar to your favorite text editor!

Features

Here | denotes the current cursor position. No manual cursor motion involved ✨

  • autocloses pair symbol: ... | + (... (|)
  • skips the closing symbol: ...|) + )... )|
  • removes empty pairs: ...([|]) + backspace...(|) + backspace...|
  • the set of pairs is configurable (see below)

Installation

Notes on fish 2.x compatibility

The minimum recommended version of fish is v2.6, because

  • it has a feature called bracketed (a.k.a safe) paste which solves the problem with pasting strings containing paired symbols (they get autoclosed), see #6 for details.

The minimum required version of fish is v2.3, because

  • there was a bug #2210 in v2.2 which would brake quotes handling
  • it uses string builtin which was introduced in v2.3
  • Using Fisher:

    fisher install laughedelic/pisces
    
  • Using oh-my-fish:

    omf install pisces
    

    Notice that you will need to restart fish to get this new installation working. This is specific to the way oh-my-fish handles installation.

Configuration

Only completing at the end of the line

To disable completing pairs unless the cursor is at the end of the line, set the $pisces_only_insert_at_eol variable:

set -U pisces_only_insert_at_eol 1

Changing the set of pairs

You can set the $pisces_pairs universal variable and launch a new fish session to reload key bindings:

set -U pisces_pairs $pisces_pairs '<,>' '`,`' '«,»'

Note that at the moment pisces works correctly only with single-symbol delimiters.

The default set of pairs:

  • (,) parenthesis
  • [,] brackets
  • {,} braces
  • "," double quotes
  • ',' single quotes
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].