A robust Sublime Text syntax package for fish
- Total 13K
- Win 1K
- Mac 8K
- Linux 4K
|Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8||Jan 7||Jan 6||Jan 5||Jan 4||Jan 3||Jan 2||Jan 1||Dec 31||Dec 30||Dec 29||Dec 28||Dec 27||Dec 26||Dec 25||Dec 24||Dec 23|
Friendly Interactive Shell (fish)
A Sublime Text package for the friendly interactive shell. It features a robust syntax highlighting scheme that mimics the native highlighting behaviour of fish.
The package currently supports up to fish version: 3.4
Note: ST3 support will cease in a future release. ST2 support is capped at fish 2.7 with a limited set of the following features.
- Snippets for common constructs.
- Extensive syntax highlighting:
- Indent and prettify: Reformat the active file with
ctrl+alt+ior your build system shortcut (eg,
- Optional setting to run automatically when file is saved.
Via Package Control
Install Package Control, then go to Command Palette (Ctrl+Shift+P) > Package Control: Install Package > fish.
Clone the repository to your Packages directory and rename it to
cd /path/to/sublime/packages/directory git clone https://github.com/Phidica/sublime-fish.git mv sublime-fish fish
.fish file and verify the selected syntax is “Fish”.
As of release 3.0.0, a fish script (for example,
fish-shell/share/functions/ls.fish) will look something like:
Figure 1: Default Monokai colour scheme
Figure 2: Example custom Monokai colour scheme formatting additional scopes
|fish construct||Scope name|
|File path (in argument)||
|File path (in redirection)||
|Home directory expansion||
Branches and releases
Support for different ST major versions is separated between several branches:
master: Plugins compatible with ST4, and syntax provides highlighting for fish versions 2.7 and up.
st3: Plugins compatible with ST3 and above (via backwards compatibility features), and syntax provides highlighting for fish versions 2.7 and up.
st2: Plugins only compatible with ST2, syntax uses the more limited
tmLanguagescheme instead of
sublime-syntax, and provides highlighting for fish 2.7 only.
The particular fish major version supported by a tagged release is indicated by the version number:
- The 2.x.x series (on
st3) only supports fish 2.7.
- The 3.x.x series (on
master) includes support for fish 3.0 and beyond.
- PackageDev, only for ST2 development and changing the
ST2 development: The source file of 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 2.
ST3+ development: The source file of the syntax is
Guide for contributing is located here.