Commit Graph

11862 Commits

Author SHA1 Message Date
Nathan Sobo
64f576624e Avoid tokens shim in suggestedIndent code 2015-05-14 17:39:23 +02:00
Nathan Sobo
64c0ef8bd8 Remove more usages of tokens shim 2015-05-14 01:46:49 +02:00
Nathan Sobo
173bc82e42 Don’t include tokens in presenter state for lines 2015-05-14 01:46:32 +02:00
Nathan Sobo
37d9a00b37 Use TokenIterator in DisplayBuffer instead of tokens shim 2015-05-14 01:15:44 +02:00
Nathan Sobo
0ca967d6b0 Switch character measurement to TokenIterator
Instead of using TokenizedLine::tokens shim
2015-05-14 01:10:29 +02:00
Nathan Sobo
c76b45206b Use TokenIterator to compute horizontal pixel positions
Instead of the TokenizedLine::tokens shim
2015-05-14 01:03:34 +02:00
Nathan Sobo
121e42deba Use TokenIterator to build line HTML 2015-05-14 00:55:06 +02:00
Nathan Sobo
0eb97e6a96 Use TokenIterator for position translation 2015-05-14 00:33:27 +02:00
Nathan Sobo
da2df2297a Add a TokenIterator and use it for tokens shim 2015-05-14 00:15:31 +02:00
Nathan Sobo
a7550666dd Remove dead code 2015-05-13 22:50:05 +02:00
Nathan Sobo
dc473698a9 🎨 2015-05-13 22:03:29 +02:00
Nathan Sobo
00b30f7db8 Remove some dead code 2015-05-13 22:03:26 +02:00
Nathan Sobo
d7f5588904 Generate line HTML based on tags instead of tokens
This avoids creating a bunch of tokens as temporary objects since they
are no longer stored.
2015-05-13 21:57:53 +02:00
Nathan Sobo
6b51b5d02a Rename parentScopes to openScopes 2015-05-13 21:17:46 +02:00
Nathan Sobo
bf6754981b decodeContent -> decodeTokens 2015-05-13 21:17:46 +02:00
Nathan Sobo
8ab9a9f9bb Account for softWrapIndent when assigning indices on soft wrap line 2015-05-13 21:17:46 +02:00
Nathan Sobo
d90d1f0ea7 Don’t build ::specialTokens unless properties are provided 2015-05-13 21:17:45 +02:00
Nathan Sobo
6befa0200f Assign ::isHardTab to shim tokens 2015-05-13 21:17:45 +02:00
Nathan Sobo
75112a017d Fix assignment of last non-whitespace column for paired characters 2015-05-13 21:17:45 +02:00
Nathan Sobo
2afe013f9e Assign ::hasInvisibleCharacters on Token shims 2015-05-13 21:17:45 +02:00
Nathan Sobo
77e8a906c2 Fix soft wrapping with tags array, including soft-wrap indent 2015-05-13 21:17:45 +02:00
Nathan Sobo
70eb7f77b0 Drop unused methods 2015-05-13 21:17:45 +02:00
Nathan Sobo
a8d01bcec1 Fix bufferRangeForScopeAtPosition with new tags array scheme 2015-05-13 21:17:45 +02:00
Nathan Sobo
24967afed1 Substitute invisibles in initial scan 2015-05-13 21:17:45 +02:00
Nathan Sobo
6274ac25fa Fix TokenizedLine::copy for new representation 2015-05-13 21:17:44 +02:00
Nathan Sobo
f3f609861e Make TokenizedLine::softWrapAt work with new token representation 2015-05-13 21:17:44 +02:00
Nathan Sobo
9d93d18a8f Mark leading/trailing whitespace in new TokenizedLine representation 2015-05-13 21:17:44 +02:00
Nathan Sobo
9554bfd393 Break out hard tabs and paired characters from numeric tag arrays 2015-05-13 21:17:44 +02:00
Nathan Sobo
43806d6416 Break out leading soft tabs after switching to numeric tag arrays 2015-05-13 21:17:44 +02:00
Nathan Sobo
06b5d27357 Adapt to first-mate returning purely numeric tag arrays 2015-05-13 21:17:44 +02:00
Nathan Sobo
9583ff04e6 WIP: Start integrating with nested words version of first-mate 2015-05-13 21:17:44 +02:00
Kevin Sawicki
d748281ca6 Merge pull request #6750 from atom/iz-fix-decoration-deprecation
Remove extra function wrapper in deprecated Decoration::update method
2015-05-12 08:38:44 -07:00
Ivan Zuzak
b2dd8835b3 Remove extra function wrapper 2015-05-12 12:54:15 +02:00
Kevin Sawicki
250670be23 Guard against missing tooltip data 2015-05-11 18:10:57 -07:00
Ivan Zuzak
71fba99540 Dont split keystrokes on trailing dashes 2015-05-10 09:46:45 +02:00
Ivan Zuzak
29a4ab1396 Electron uses 'Plus' instead of '+' in accelerators 2015-05-10 09:26:46 +02:00
Kevin Sawicki
f1f8c3d0a7 Merge pull request #6706 from atom/iz-fix-open-with-trailing-colon
Ignore trailing colons and whitespace when opening files from command line
2015-05-08 13:59:08 -07:00
Max Brunsfeld
fde693eab9 Merge pull request #6707 from atom/mb-dont-persist-window-modes
Don't persist dev/safe/api-preview mode settings of windows
2015-05-08 12:35:33 -07:00
Max Brunsfeld
b8cd0a0628 Don't persist dev/safe/api-preview mode settings of windows 2015-05-08 11:21:36 -07:00
Nathan Sobo
0d310c767f Splice in new DisplayBuffer lines in chunks to avoid stack overflows 2015-05-08 19:23:45 +02:00
Ivan Zuzak
6a7d5e6945 Ignore trailing colons and whitespace when opening files from command line 2015-05-08 18:59:17 +02:00
Kevin Sawicki
523171061b Stop resize if detached or if siblings are missing
Closes #6630
2015-05-07 16:26:18 -07:00
Max Brunsfeld
4f7ad3f045 Merge pull request #6690 from atom/mb-reopen-windows-from-command-line
Make 'atom' command w/ no args reopen previous windows
2015-05-07 15:24:13 -07:00
Kevin Sawicki
d595cdb8e9 Merge pull request #6656 from jgebhardt/bump-react
Remove babel compatibility option for legacy React versions
2015-05-07 13:26:36 -07:00
Kevin Sawicki
b7dddeebfe Guard against no hosted git info
Closes #6693
2015-05-07 13:24:03 -07:00
Max Brunsfeld
5b8262bd96 🐎 Avoid repeated array allocation in ::getDecorations 2015-05-07 12:56:29 -07:00
Max Brunsfeld
4300ba6bb3 Make 'atom' command w/ no args reopen previous windows 2015-05-07 11:35:16 -07:00
Kevin Sawicki
a847b4cc65 Merge pull request #6640 from atom/iz-fix-0-in-command-line-initial-row
Allow 0 to be passed as initialLine when opening files via command line
2015-05-06 10:26:43 -07:00
Kevin Sawicki
61a0927b26 Use apiPreviewMode value when running specs 2015-05-06 09:56:32 -07:00
Jonas Gebhardt
bc1f190c2f remove babel compatibility option for legacy react versions 2015-05-05 11:22:14 -07:00