Skip to content

Commit

Permalink
Refactor code into smaller units
Browse files Browse the repository at this point in the history
  • Loading branch information
ostinelli committed Sep 24, 2012
1 parent 3112ac6 commit 65c1017
Show file tree
Hide file tree
Showing 9 changed files with 544 additions and 459 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ To use SublimErl, you need to have:

* The editor [Sublime Text 2](http://www.sublimetext.com/2).
* [Erlang](http://www.erlang.org/download.html) ( ..obviously ^^_ ).
* Basho's [Rebar](https://github.com/basho/rebar) built after August 11th, 2012 (which has support for the `tests=` option).
* Basho's [Rebar](https://github.com/basho/rebar) built after September 13th, 2012 (which has support for the `tests=` option).

To unleash the full power of the plugin, you will also need to comply to:

Expand Down
7 changes: 6 additions & 1 deletion SublimErl.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
/*
/*
* SublimErl tries to detect automatically the paths for rebar, erl, escript and dialyzer.
* If it doesn't succeed or you prefer to manually configure these, you can do so by inputting the paths here.
*
* "rebar_path": "/usr/local/bin/rebar",
* "escript_path": "/usr/local/bin/escript",
* "dialyzer_path": "/usr/local/bin/dialyzer"
*/

// Skip Erlang libs that match the regex
"completion_skip_erlang_libs": [
"^[cC]os[A-Z].+"
]
}
2 changes: 1 addition & 1 deletion bindings/Context.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[
{ "caption": "Run Contextual Test", "command": "sublim_erl_test" },
{ "caption": "Run Dialyzer", "command": "sublim_erl_dialyzer" },
{ "caption": "Run Last Run test", "command": "sublim_erl_test_redo" },
{ "caption": "Run Last Run test", "command": "sublim_erl_redo" },
{ "caption": "View CT results", "command": "sublim_erl_ct_results" }
]
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{ "keys": ["ctrl+shift+f8"], "command": "sublim_erl_test", "context": [{ "key": "selector", "operator": "equal", "operand": "source.erlang" }] },
{ "keys": ["ctrl+shift+f9"], "command": "sublim_erl_dialyzer", "context": [{ "key": "selector", "operator": "equal", "operand": "source.erlang" }] },
{ "keys": ["ctrl+f8"], "command": "sublim_erl_test_redo" },
{ "keys": ["ctrl+f8"], "command": "sublim_erl_redo" },
{ "keys": ["ctrl+alt+f8"], "command": "sublim_erl_ct_results" }
]
2 changes: 1 addition & 1 deletion bindings/Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{ "keys": ["super+shift+f8"], "command": "sublim_erl_test", "context": [{ "key": "selector", "operator": "equal", "operand": "source.erlang" }] },
{ "keys": ["super+shift+f9"], "command": "sublim_erl_dialyzer", "context": [{ "key": "selector", "operator": "equal", "operand": "source.erlang" }] },
{ "keys": ["super+f8"], "command": "sublim_erl_test_redo" },
{ "keys": ["super+f8"], "command": "sublim_erl_redo" },
{ "keys": ["super+alt+f8"], "command": "sublim_erl_ct_results" }
]
6 changes: 3 additions & 3 deletions completion/sublimerl_libparser.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# ==========================================================================================================
# SublimErl - A Sublime Text 2 Plugin for Erlang Integrated Testing & Code Completion
#
#
# Copyright (C) 2012, Roberto Ostinelli <[email protected]>.
# All rights reserved.
#
# BSD License
#
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided
# that the following conditions are met:
#
Expand Down Expand Up @@ -70,7 +70,7 @@ def generate_completions(self, starting_dir, dest_file_base):
# we are generating erlang disasm
bif_completions = self.bif_completions()
for k in bif_completions.keys():
disasms[k].extend(bif_completions[k])
disasms[k].extend(bif_completions[k])
# sort
disasms[k] = sorted(disasms[k], key=lambda k: k[0])

Expand Down
Loading

0 comments on commit 65c1017

Please sign in to comment.