Skip to content

Commit 6297c32

Browse files
authored
Remove all code (#165)
* Remove all code * Remove NimLime.sublime-settings * Update the list of features
1 parent 5b49586 commit 6297c32

23 files changed

+15
-1805
lines changed

DEVELOPMENT.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,6 @@ considerations that should be made when adding or extending functionality.
66

77
Directory Structure
88
-------------------
9-
- **/**
10-
Root directory.
11-
Contains various sublime text plugin files that can't be moved elsewhere,
12-
meta files (such as this one), and the base plugin script loaded by
13-
Sublime Text, 'NimLime.py'.
14-
15-
- **/nimlime_core**
16-
Main module.
17-
Contains the module initialization code, as well as common code used
18-
by both command and support modules.
19-
20-
- **/nimlime_core/utils**
21-
Support and utility module.
22-
Contains support code used across multiple command files.
23-
24-
- **/nimlime_core/commands**
25-
'Plugin' module.
26-
Contains the commands and event listeners that implementing NimLime's
27-
features.
28-
*Note*: The python files in this directory are specially loaded by the
29-
module's ``__init__.py`` so that all commands and event listeners are
30-
exported automatically. This allows ``NimLime.py`` to import and export
31-
*just* the commands to be exposed to Sublime Text's plugin system, without
32-
causing namespace pollution.
33-
349
- **/Syntaxes**
3510
Sublime text syntax directory.
3611
Contains the Sublime Text syntax files used by NimLime.
@@ -39,12 +14,3 @@ Directory Structure
3914
Main Sublime Text data directory.
4015
Contains menu, preferences, and other data files used by Sublime Text's
4116
plugin system.
42-
43-
44-
NimLime Commands
45-
----------------
46-
NimLime commands follow a certain augmented architecture which helps them act
47-
in a consistant manner and makes developing them less painful.
48-
First, most commands use a mixin from ``/nimlime_core/utils/mixins.py``. The
49-
mixins implement two important functionalities: setting loading and textual
50-
output. Refer to the documentation in that module for more information.

Default.sublime-keymap

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
[
2-
{"keys": ["f12"], "command": "gotodef", "context":
3-
[
4-
{ "key": "selector", "operator": "equal", "operand": "source.nim" },
5-
]
6-
},
7-
{"keys": ["shift+alt+i"], "command": "lookup", "context":
8-
[
9-
{ "key": "selector", "operator": "equal", "operand": "source.nim" },
10-
]
11-
},
12-
{ "keys": ["ctrl+space"], "command": "nim_update_completions", "context":
13-
[
14-
{ "key": "auto_complete_visible" },
15-
{ "key": "selector", "operator": "equal", "operand": "source.nim" },
16-
]
17-
},
18-
192
// Doc-comment completion
203
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n## $0"}, "context":
214
[

NimLime.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

NimLime.sublime-settings

Lines changed: 0 additions & 139 deletions
This file was deleted.

Preferences.sublime-settings

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
// Continue doc-comment on the next line
3+
"doccontinue.enabled": true,
4+
// Stop doc-comment continuation after placing empty doc-comments
5+
"doccontinue.autostop": true,
6+
}

README.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ Nim Programming Language plugin for Sublime Text
66
Features
77
--------
88

9-
* Syntax highlighting
10-
* Jump to definition
11-
* Auto-Completion
12-
* Error checking and highlighting
13-
* Nimble package manager integration
9+
* Syntax highlighting.
10+
* Snippets.
11+
* Automatic continuation of doc comments.
1412

1513
Installation
1614
------------
@@ -32,20 +30,7 @@ Thus, it is only recommended for those who wish to either help develop NimLime,
3230
Settings
3331
--------
3432

35-
See Preferences -> PackageSettings -> NimLime
36-
37-
Autocompletion works per default in an on-demand mode.
38-
This means <kbd>Ctrl</kbd>+<kbd>Space</kbd> has to be pressed again to fetch Nim compiler completions.
39-
It can also be set into an immediate mode.
40-
41-
If auto-completions don't work copy the `nim_update_completions` block from the NimLime
42-
default key bindings file to the user key bindings file.
43-
44-
Checking the current file automatically on-save can be enabled through the setting `check.on_save.enabled`.
45-
46-
The path to the compiler can be configured through the setting `nim.executable`.
47-
Per default it is set to `nim`, which means that the compiler must be in your `PATH` for the plugin to work.
48-
33+
See Preferences -> Package Settings -> NimLime
4934

5035
Contributing
5136
------------

Support/Default.sublime-commands

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,3 @@
11
[
2-
{
3-
"caption": "Nim: Update Nimble Package List",
4-
"command": "nimble_update"
5-
},
6-
{
7-
"caption": "Nim: List Nimble Package",
8-
"command": "nimble_list"
9-
},
10-
{
11-
"caption": "Nim: Search for Nimble Package",
12-
"command": "nimble_search"
13-
},
14-
{
15-
"caption": "Nim: Install Nimble Package",
16-
"command": "nimble_install"
17-
},
18-
{
19-
"caption": "Nim: Uninstall Nimble Package",
20-
"command": "nimble_uninstall"
21-
},
22-
{
23-
"caption": "Nim: Go To Definition",
24-
"command": "lookup"
25-
},
262

27-
{
28-
"caption": "Nim: Modules",
29-
"command": "list_modules"
30-
},
31-
{
32-
"caption": "Nim: Index",
33-
"command": "list_all"
34-
},
35-
{
36-
"caption": "Nim: Set Project File",
37-
"command": "set_project"
38-
},
39-
{
40-
"caption": "Nim: Check External File",
41-
"command": "nim_check_file"
42-
},
43-
{
44-
"caption": "Nim: Check Current File",
45-
"command": "nim_check_current_view"
46-
},
47-
{
48-
"caption": "Nim: Clear Errors & Warnings",
49-
"command": "nim_clear_errors"
50-
},
51-
{
52-
"caption": "Nim: Goto Definition",
53-
"command": "nim_goto_definition"
54-
},
55-
{
56-
"caption": "Nim: Show Definition",
57-
"command": "nim_show_definition"
58-
},
59-
{
60-
"caption": "Nim: Show Definition In Status",
61-
"command": "nim_show_definition_in_status"
62-
},
63-
{
64-
"caption": "Nim: Find Usages",
65-
"command": "nim_find_usages"
66-
},
67-
{
68-
"caption": "Nim: Find Usages In Current File",
69-
"command": "nim_find_usages_in_current_file"
70-
},
71-
{
72-
"caption": "Nim: Get Suggestion",
73-
"command": "nim_get_suggestions"
74-
},
75-
{
76-
"caption": "Nim: Setup Nimsuggest.",
77-
"command": "nim_compile_internal_nimsuggest"
78-
}
793
]

Support/Main.sublime-menu

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"children":
1313
[
1414
{
15-
"command": "nim_lime_open_support",
15+
"command": "open_url",
16+
"args": {
17+
"url": "https://github.com/nim-lang/NimLime/issues"
18+
},
1619
"caption": "Support/Issue Tracker"
1720
},
1821

@@ -21,7 +24,7 @@
2124
{
2225
"command": "edit_settings", "args":
2326
{
24-
"base_file": "${packages}/NimLime/NimLime.sublime-settings",
27+
"base_file": "${packages}/NimLime/Preferences.sublime-settings",
2528
"default": "{\n\t$0\n}\n"
2629
},
2730
"caption": "Settings"

core/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)