Scalex Documentation Search
Search Scala and Scalaz documentation right from Sublime Text.
Details
Installs
- Total 1K
- Win 501
- Mac 464
- Linux 316
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SublimeScalex
Introduction
This plugin provides integration between Sublime Text and Scalex.
It allows you to search for any Scala or Scalaz function directly from ST.
Quoting Scalex main page:
Names and Types
Searches can be either textual (a list of words), or by type (a type signature) or both.
A search is considered a text search unless it contains a combination of text and symbols, or if it starts with :
.
To search for both a type and a name, place a :
between them, for example size: List[A] => Int
.
Example queries
map
Search for the textmap
list map
Search for the textlist
and the textmap
list[a] => (a => boolean) => list[a]
Search for the typeList[A] => (A => Boolean) => List[A]
: list[a] => a
Search for the typeList[A] => A
conserve: List[a] => (a => b) => List[b]
Search for the textconserve
and the typeList[A] => (A => B) => List[B]
Packages
You can reduce the search scope to one or more packages:
foldl +scala
Searchfoldl
only inscala
foldl +scalaz
Searchfoldl
only inscalaz
foldl -scalaz
Searchfoldl
everywhere except inscalaz
Installation
Right now SublimeScalex works only under ST3 (or at least was not tested under ST2 yet). If there will be enough interest I'll port it to older version as well.
The easiest way to install SublimeScalex is to use Package Control. You can also install it from here, by downloading and copying this folder to your packages directory.
Usage
Open the Command Palette and search for 'SublimeScalex' or just hit Ctrl + Alt + F
to open Function search bar:
Describe what you are looking for as explained in the Introduction section and hit Enter. You will see list filled with entries matching your query. You can filter it further using standard Sublime fuzzy search.
If you want to see more details about any entry highlight it and hit Enter again (or just click it with the mouse).
You will be moved to appropriate scaladoc, if it exists.
If you down want to open scaladoc just hit Esc.
Default number of showed results is limited to 20 to speed up querying, but you can change it in settings if you like.
Final notes
For bigger Scala projects I still prefer to use IntelliJ, but for simple scripts and snippets I found Sublime to be more pleasant. If you want to turn your Sublime into powerful Scala development environment then I recommend you to look at few more plugins:
- sublime-ensime - error checking with Scala presentation compiler, and more
- SublimeREPL - Scala REPL inside Sublime, let you play with your code in more interactive way
- LoadFileToRepl - load current file into REPL, very comfortable to use