Garen Torikian
d4474e1d4d
Merge pull request #512 from github/change-status-block-tag
...
Change status block tag
2013-05-02 13:50:06 -07:00
Kevin Sawicki
10ca03f238
Don't show indent guide in truly trailing whitespace
...
Lines that are all whitespace are considered trailing
whitespace and should display the indent guide.
But lines with leading and trailing whitespace should never
have the indent guide rendered in the trailing area.
2013-05-02 11:44:49 -07:00
Garen Torikian
662ddf9fd6
Update documentation to push threshold back past 80%
2013-05-01 17:21:05 -07:00
Kevin Sawicki
875555d933
Rename invisible class to invisible-character
...
Bootstrap defines this class with visibility: hidden
which we don't want since invisible characters should
be visible.
2013-04-25 10:02:33 -07:00
Kevin Sawicki
dae46eab87
Create class array for each whitespace type
...
Previously if the token has both leading and
trailing whitespace the classes would bleed
across the cases and cause an exception to be
thrown.
Closes #298
2013-02-21 16:12:49 -08:00
Kevin Sawicki
32abf2cda8
Only create span class once
...
Previously this was being generated on each match even though
the same classes were used for every match.
2013-02-20 15:46:51 -08:00
Kevin Sawicki
2457e7f5b2
Add indent guide to whitespace lines
...
The whitespace in lines that have no non-whitespace
text is treated as trailing whitespace so add the
indent guide to the trailing whitespace tokens when the
line is 100% whitespace.
2013-02-20 15:40:44 -08:00
Kevin Sawicki
101b1aba12
Add indent guide to editor
...
The guide displays a continuous vertical line across lines with
the same indent levels.
Closes #50
2013-02-20 12:20:15 -08:00
Kevin Sawicki
5f84ec711b
Add class to hard tabs and leading/trailing spaces
...
This allows whitespace to be still be styled when invisibles
are disabled.
2013-02-12 13:25:22 -08:00
Kevin Sawicki
9af54de0f6
Add type of invisible as second class in span
...
This allows hard tabs, leading whitespace, and
trailing whitespace to be styled independently.
2013-02-12 13:02:34 -08:00
Kevin Sawicki & Nathan Sobo
98614592af
Store line endings on a per-line basis in Buffer
...
The line ending for each line is recorded and reused
when lines are modified or inserted.
Closes #166
2013-01-27 16:01:22 -08:00
Kevin Sawicki
ecc50506c7
Render trailing carriage return as an invisible
2013-01-27 16:01:22 -08:00
Corey Johnson & Nathan Sobo
78a24e1e9c
Remove @fold from Token
2012-11-06 11:15:18 -08:00
Corey Johnson & Nathan Sobo
2c14bc7ebd
Optimize breakOutAtomicTokens
2012-11-06 10:44:03 -08:00
Corey Johnson & Nathan Sobo
be424c365f
💄
2012-11-06 10:03:02 -08:00
Corey Johnson
d65f13b218
💄
2012-11-06 09:41:35 -08:00
Corey Johnson
a63f838cdb
Simplify breakOutAtomicTokens method
2012-11-06 09:39:44 -08:00
Corey Johnson
b85a95eaa1
Make leading spaces atomic (length based on tabLength)
2012-11-06 09:03:54 -08:00
Corey Johnson & Nathan Sobo
c3e43b753c
💄
2012-11-05 15:28:55 -07:00
Kevin Sawicki
910ca47a61
Allow setting of invisibles on editor
2012-11-02 17:51:22 -07:00
Will Farrington
8dbeb9f3d2
first spike at customizable invisibles characters
2012-11-02 17:51:16 -07:00
Corey Johnson & Nathan Sobo
1db0935447
Use _.multiplyString in building a tab token
2012-10-26 12:20:37 -06:00
Corey Johnson & Nathan Sobo
b33bbbfc0d
Handle invisible character rendering when building HTML for lines.
...
Not during creation of tokens.
2012-10-18 11:43:17 -07:00
Corey Johnson
d7bc03112b
Empty lines require a special case for invisibles.
2012-10-18 11:33:19 -07:00
Corey Johnson
22e009a999
Set invisible values for spaces and tabs when initial tokenization occurs.
...
Also break whitespace into its own token just like tabs.
2012-10-18 11:33:19 -07:00
Corey Johnson
4478bbca9a
When project.showInvisibles is true; spaces, tabs and newlines are visible
2012-10-18 11:31:39 -07:00
Corey Johnson
e2a917fcf3
Change tabText to tabLength
2012-10-18 11:31:39 -07:00
Corey Johnson
8eb9d6629c
Remove unused methods from token.
...
The refactoring of Editor.buildLineHtml removed the need for these methods
2012-10-10 14:45:46 -07:00
Nathan Sobo
c3e748a17c
WIP: Use rake to start compiling resources (like require.coffee)
2012-08-26 16:29:46 -05:00
Nathan Sobo
c2c8724ad0
Initial commit
2012-08-10 13:32:19 -06:00
Corey Johnson & Nathan Sobo
1a243adfcf
All specs pass w/ TextMateGrammar for tokenization (auto-indent disabled)
2012-08-03 12:00:05 -06:00
Corey Johnson & Nathan Sobo
0a97cb0590
Tokenized buffer uses TextMate grammar
2012-08-02 10:05:09 -07:00
Corey Johnson & Nathan Sobo
b50b8eacca
wip: hooking up tokenized buffer to textmate grammars
2012-08-01 17:54:08 -07:00
Corey Johnson
80c066b03b
The test for tabs in a token was totally wrong. Now it is totally right.
2012-05-15 10:12:56 -07:00
Corey Johnson
facd7082d0
optimization: only tokens containing tabs are split into multiple tokens
2012-05-15 08:39:50 -07:00
Nathan Sobo
54396a7646
Fix bug where you can't move rightward over fold placeholders
...
Fold placeholders needed to be real token objects so their screen / buffer deltas would be defined in ScreenLineFragment.proto.translateColumn
2012-04-06 15:37:27 -06:00
Nathan Sobo
47685aab7b
Correctly translate buffer positions to screen positions when the buffer has tab chars
2012-04-06 15:06:33 -06:00
Nathan Sobo
a3686da496
Move atom.tabText to a property on Editor.prototype for more locality
2012-04-05 17:55:15 -06:00
Corey Johnson & Nathan Sobo
84ba78c55d
Tab characters render as atomic tokens containing spaces
2012-04-05 15:22:57 -06:00
Corey Johnson & Nathan Sobo
ef21823e2a
Move ScreenLineFragment.splitTokenAt to Token.splitAt
2012-04-05 14:11:12 -06:00
Corey Johnson & Nathan Sobo
41a90f6caf
Instantiate token objects in highlighter
2012-04-05 14:08:04 -06:00