ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

fish

by Phidica ST2/ST3

A robust Sublime Text syntax package for fish

Details

Installs

  • Total 7K
  • Win 694
  • OS X 5K
  • Linux 2K
Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7
Windows 0 0 0 1 0 1 0 2 0 0 0 0 0 0 0 0 0 1 0 1 0 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 1 1 1
OS X 1 3 1 4 4 2 1 2 3 2 3 4 2 0 3 1 0 3 1 1 1 1 0 3 4 1 4 1 1 2 3 5 2 2 0 3 3 4 3 5 1 2 2 0 3 4
Linux 0 3 0 2 3 3 0 0 4 1 2 1 1 2 5 0 2 2 1 2 2 1 3 4 2 2 2 1 0 2 0 2 6 1 0 1 1 0 2 0 1 0 2 1 0 2

Readme

Source
raw.​githubusercontent.​com

friendly interactive shell (fish)

A Sublime Text 2/3 package for the friendly interactive shell. It features a robust syntax highlighting scheme that mimics the native highlighting behaviour of fish.

All the general syntax of fish is completely implemented, however a number of additional features are planned and suggestions or bug reports are welcome.

To do: - Optimise scope nesting - Add further useful highlighting (eg, [ ... ] form of test) - Rewrite for .sublime-syntax

Installation

Via Package Control

Install Package Control, then go to Command Palette (Ctrl+Shift+P) > Package Control: Install Package > fish.

Manual

Clone the repository to your Packages directory and rename it to fish.

cd /path/to/sublime/packages/directory
git clone https://github.com/Phidica/sublime-fish.git
mv sublime-fish fish

Open a .fish file and ensure the default syntax highlighting is “friendly interactive shell (fish)”.

Screenshots

As of version 2.1.0, a fish script (for example, fish-shell/share/functions/ls.fish) will look something like:

Screenshot of text in Monokai

Figure 1: Default Monokai colour scheme

Screenshot of text in custom Monokai

Figure 2: Example custom Monokai colour scheme formatting additional scopes

Exposed scopes

fish construct Scope name
Unquoted string meta.string.unquoted
File path (in redirection) meta.path
Variable expansion meta.variable-expansion and punctuation.definition.variable
Process expansion meta.process-expansion and punctuation.definition.process
Command substitution meta.parens.command-substitution and punctuation.section.parens.begin/end
Index expansion meta.brackets.index-expansion and punctuation.section.brackets.begin/end
Brace expansion meta.braces.brace-expansion and punctuation.section.braces.begin/separator/end
Home directory expansion meta.home-directory-expansion and keyword.operator.tilde
Wildcard expansion meta.wildcard-expansion and keyword.operator.question-mark/single-star/double-star

Contribution

This package is built with PackageDev.

The source file for the syntax is fish.YAML-tmLanguage. When editing this file, “compile” it with the PackageDev build system to automatically generate the fish.tmLanguage file which is used by Sublime Text.

History

This project was forked from original groundwork laid by toru hamaguchi.