All Projects → Pegase745 → sublime-flowtype

Pegase745 / sublime-flowtype

Licence: MIT license
A full featured Flow type support for Sublime Text 3

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to sublime-flowtype

Sublime-Text-Monokai-theme-for-Visual-Studio-Code
Monokai theme of Sublime Text but for Visual Studio Code instead. Perfect and identical copy. Download it from VSCode Marketplace!
Stars: ✭ 35 (+40%)
Mutual labels:  sublime-text
SublimeGremlins
Reveal odd and invisible whitespace characters in Sublime Text.
Stars: ✭ 41 (+64%)
Mutual labels:  sublime-text
Milotic
Color Full Theme for All Text Editors!
Stars: ✭ 23 (-8%)
Mutual labels:  sublime-text
WrapAsYouType
Sublime Text plugin that performs hard word wrapping within specified sections, in real time as the user types
Stars: ✭ 19 (-24%)
Mutual labels:  sublime-text
sublime-PICO-8
PICO-8 plugin for the Sublime Text 3 editor.
Stars: ✭ 42 (+68%)
Mutual labels:  sublime-text
sublime-text-2-wpseek
wpseek.com WordPress Developer Assistant for Sublime Text 2 / 3
Stars: ✭ 19 (-24%)
Mutual labels:  sublime-text
sublimetext-node-debugger
a simple plugin for sublime text2/3 to debug node file in browser
Stars: ✭ 19 (-24%)
Mutual labels:  sublime-text
opentype-feature-bundle
Syntax highlighting and snippets for OpenType feature development in TextMate/Sublime Text
Stars: ✭ 35 (+40%)
Mutual labels:  sublime-text
Julia-sublime
Julia syntax highlighting for Sublime Text
Stars: ✭ 106 (+324%)
Mutual labels:  sublime-text
SublimeLinter-contrib-markdownlint
A Sublime Text Linter for Markdown/CommonMark files.
Stars: ✭ 29 (+16%)
Mutual labels:  sublime-text
Bulma-Snippets-Sublime-Text-Plugin
Bulma Snippets Sublime Text Plugin
Stars: ✭ 13 (-48%)
Mutual labels:  sublime-text
rocketnative-sublime-snippets
[DEPRECATED] Rocketseat React Native snippets for Sublime Text Editor
Stars: ✭ 16 (-36%)
Mutual labels:  sublime-text
alfred-sublime-text
Filter and open your Sublime Text (2 and 3) project files from Alfred.
Stars: ✭ 66 (+164%)
Mutual labels:  sublime-text
SubLilyPond
LilyPond syntax highlighting in Sublime Text 2 and 3.
Stars: ✭ 26 (+4%)
Mutual labels:  sublime-text
network tech
Cisco config syntax and snippets for Sublime Text
Stars: ✭ 82 (+228%)
Mutual labels:  sublime-text
sublime-scheme-writer
A color scheme for focused long-form writing
Stars: ✭ 92 (+268%)
Mutual labels:  sublime-text
ITE
An Integrated Toolset Environment over the Sublime Text editor aiming to develop on any programming language.
Stars: ✭ 31 (+24%)
Mutual labels:  sublime-text
gray-matter
A colour scheme for Sublime Text and Visual Studio Code that takes design cues from popular minimalist Markdown text editors.
Stars: ✭ 69 (+176%)
Mutual labels:  sublime-text
sublime-better-ruby
Sublime Text Ruby package (snippets, builder, syntax highlight)
Stars: ✭ 33 (+32%)
Mutual labels:  sublime-text
github markdown snippets
GitHub flavored Markdown with plain'ol HTML knowledge! Boom!
Stars: ✭ 23 (-8%)
Mutual labels:  sublime-text

FlowType

FlowType turns your Sublime Text 3 into a full featured Flow IDE.

GitHub (pre-)release Build Status Build status Package Control black

Features

  • Add and remove flow pragma on a file
  • Check file contents for flow errors and highlight regions
  • Go to file containing the type definition
  • View a variable's type definition
  • Show a file's coverage
  • Show a text spinner every time the flow cli is working
  • Launch cli commands in a thread in order to never block the IDE

Installation

Make sure you have FlowType installed and binary flow is accesible for Sublime.

This package can be installed using Package Control. Simply install the FlowType package from the official repository.

Otherwise, you must clone this repository in your packages directory. You can find it using the Preferences -> Browse Packages menu from within Sublime Text.

$ git clone https://github.com/Pegase745/sublime-flowtype.git FlowType

Usage

Settings

The package settings can be modified in three places:

Description File Location Menu Entry
Global Packages/FlowType/FlowType.sublime-settings Preferences > Package Settings > FlowType > Settings-Default
User Packages/User/FlowType.sublime-settings Preferences > Package Settings > FlowType > Settings-User
Project (recommended) <projects_location>/<project_name>.sublime-project Project > Edit Project (options must be placed under the settings key)

The default available configuration settings

Key Description Default value
log_level Set logging level info
flow_bin_path Path to flow binary /usr/local/bin/flow
complete_with_builtintypes Allow completions of Flow built-in types true
suggest_autocomplete_on_edit (beta) Show autocomplete suggestions on edit false
check_contents_on_edit Check contents for Flow errors on edit true
check_contents_on_save Check contents for Flow errors on save false

Key Bindings

The key bindings can be modified in two places:

Description File Location Menu Entry
Default Packages/Default/Default (Linux/OSX/Windows).sublime-keymap Preferences > Key Bindings
User Packages/User/Default (Linux/OSX/Windows).sublime-keymap Preferences > Key Bindings

The default available key bindings

Description Linux/Windows OSX
View all errors ctrl+alt+c super+alt+c
Show autocomplete values ctrl+alt+space super+alt+space

Mouse Bindings

It is not advised to specify default mousemaps in order to not create conflicts with other packages.

Therefore, you can add mouse bindings for FlowType like this:

  • For Linux, create a "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User
  • For OSX, create a "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User
  • For Windows, create a "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User

For the following binding examples:

Description Linux/Windows OSX
Go to definition ctrl+left-click super+left-click
View type ctrl+right-click super+right-click

You must enter the following conf:

Linux and Windows

[
    {
        "button": "button1",
        "count": 1,
        "modifiers": ["ctrl"],
        "press_command": "drag_select",
        "command": "flowtype_goto_definition",
        "context": [
            { "key": "selector", "operator": "equal", "operand": "source.js" }
        ]
    },
    {
        "button": "button2",
        "count": 1,
        "modifiers": ["ctrl"],
        "press_command": "drag_select",
        "command": "flowtype_view_type",
        "context": [
            { "key": "selector", "operator": "equal", "operand": "source.js" }
        ]
    }
]

OSX

[
    {
        "button": "button1",
        "count": 1,
        "modifiers": ["super"],
        "press_command": "drag_select",
        "command": "flowtype_goto_definition",
        "context": [
            { "key": "selector", "operator": "equal", "operand": "source.js" }
        ]
    },
    {
        "button": "button2",
        "count": 1,
        "modifiers": ["super"],
        "press_command": "drag_select",
        "command": "flowtype_view_type",
        "context": [
            { "key": "selector", "operator": "equal", "operand": "source.js" }
        ]
    }
]

Change Log

All notable changes to this project will be documented on the Github Releases page.

This project adheres to Semantic Versioning and Keep A Changelog.

License

This package is distributed under the terms of the MIT license. See the LICENSE file for more details.

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].