Skip to content

Commit cebc566

Browse files
committed
Improved autocomplete in HTML
1 parent 314f1b8 commit cebc566

File tree

2 files changed

+60
-3
lines changed

2 files changed

+60
-3
lines changed

SublimeCodeIntel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
"""
7070

71-
VERSION = "2.0.1"
71+
VERSION = "2.0.2"
7272

7373
import os
7474
import re
@@ -968,14 +968,14 @@ def on_modified(self, view):
968968
text = view.substr(sublime.Region(pos - 1, pos))
969969
is_fill_char = (text and text[-1] in cpln_fillup_chars.get(lang, ''))
970970

971-
# print 'on_modified', view.command_history(1), view.command_history(0), view.command_history(-1)
972971
if (not hasattr(view, 'command_history') or view.command_history(1)[0] is None and (
973-
view.command_history(0)[0] in ('insert', 'paste') or
972+
view.command_history(0)[0] == 'insert' and not any(c == view.command_history(0)[1]['characters'][-1] for c in ('\n', '\t', ' ')) or
974973
view.command_history(-1)[0] in ('insert', 'paste') and (
975974
view.command_history(0)[0] == 'commit_completion' or
976975
view.command_history(0)[0] == 'insert_snippet' and view.command_history(0)[1]['contents'] == '($0)'
977976
)
978977
)):
978+
# print 'on_modified', view.command_history(1), view.command_history(0), view.command_history(-1)
979979
if view.command_history(0)[0] == 'commit_completion':
980980
forms = ('calltips',)
981981
else:

messages/2.0.2.txt

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
SublimeCodeIntel v2.0.1 Release Notes
2+
=====================================
3+
[Please restart Sublime Text 2 after reading this. In case of trouble, please read the Troubleshooting section in the README]
4+
5+
Code intelligence plugin ported from Open Komodo Editor to Sublime Text 2.
6+
7+
Supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2):
8+
9+
JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, Sass, XSLT, Django, HTML5, Perl, CSS, Twig, Less, Smarty, Node.js, Tcl, TemplateToolkit, PHP.
10+
11+
Provides the following features:
12+
13+
Jump to Symbol Definition - Jump to the file and line of the definition of a symbol.
14+
Imports autocomplete - Shows autocomplete with the available modules/symbols in real time.
15+
Function Call tooltips - Displays information in the status bar about the working function.
16+
Plugin should work in all three platforms (MacOS X, Windows and Linux).
17+
18+
+ Shortcuts for jump to definition have changed:
19+
20+
For Mac OS X:
21+
* Jump to definition = ``Control+Click``
22+
* Jump to definition = ``Control+Command+Alt+Up``
23+
* Go back = ``Control+Command+Alt+Left``
24+
* Manual CodeIntel = ``Control+Shift+space``
25+
26+
For Linux:
27+
* Jump to definition = ``Super+Click``
28+
* Jump to definition = ``Control+Super+Alt+Up``
29+
* Go back = ``Control+Super+Alt+Left``
30+
* Manual CodeIntel = ``Control+Shift+space``
31+
32+
For Windows:
33+
* Jump to definition = ``Alt+Click``
34+
* Jump to definition = ``Control+Windows+Alt+Up``
35+
* Go back = ``Control+Windows+Alt+Left``
36+
* Manual CodeIntel = ``Control+Shift+space``
37+
38+
39+
For more information:
40+
---------------------
41+
Please take the time to read the documentation:
42+
43+
* Online - https://github.com/SublimeCodeIntel/SublimeCodeIntel
44+
45+
46+
IMPORTANT
47+
48+
Do NOT edit the default SublimeCodeIntel settings. Your changes will be lost
49+
when SublimeCodeIntel is updated. ALWAYS edit the user SublimeCodeIntel settings
50+
by selecting "Preferences->Package Settings->SublimeCodeIntel->Settings - User".
51+
Note that individual settings you include in your user settings will **completely**
52+
replace the corresponding default setting, so you must provide that setting in its entirety.
53+
54+
55+
CHANGES/FIXES
56+
57+
- Improved autocomplete in HTML.

0 commit comments

Comments
 (0)