Commit Graph

3507 Commits

Author SHA1 Message Date
Kevin Sawicki
b7f32036c2 Change editor-selection-change event name to selection-change 2012-10-01 15:44:58 -07:00
Kevin Sawicki
edfd61c702 Remove unneeded class addition 2012-10-01 15:44:58 -07:00
Kevin Sawicki
41cdf130fb Update highlighted line when editor selection changes 2012-10-01 15:44:58 -07:00
Kevin Sawicki
c7361d487f Update cursor line when selection screen range changes 2012-10-01 15:44:58 -07:00
Kevin Sawicki
2bea67057b Add spec for line highlight after backspace 2012-10-01 15:44:58 -07:00
Kevin Sawicki
f2306f444a 💄 2012-10-01 15:44:58 -07:00
Corey Johnson
887720e4de [fail] added failing gutter spec
When you remove a newline with backspace, the background on the gutter line number isn't highlighted. This is to help @kevinsawicki debug the problem.
2012-10-01 15:44:58 -07:00
Corey Johnson
905ab5e736 Only highlight line and gutter row if editor is active 2012-10-01 15:44:58 -07:00
Corey Johnson
9361b0717c Give gutter line highlighting its own describe 2012-10-01 15:44:58 -07:00
Kevin Sawicki
0059accaa4 Access correct editor mini variable 2012-10-01 15:44:58 -07:00
Kevin Sawicki
350e1a22da Add missing space in class name 2012-10-01 15:44:58 -07:00
Corey Johnson
d5b1146b9b Only call gutter.afterAttach once 2012-10-01 15:44:57 -07:00
Kevin Sawicki
e039dab0f6 Don't highlight line in mini editor 2012-10-01 15:44:57 -07:00
Kevin Sawicki
f87b186538 Add highlight to new line html builder 2012-10-01 15:44:57 -07:00
Kevin Sawicki
a03512fd90 Add line number padding to expected width 2012-10-01 15:44:57 -07:00
Kevin Sawicki
a4ad5829a5 Disable gutter background highlight on multiline selections 2012-10-01 15:44:57 -07:00
Kevin Sawicki
33abaff747 Don't highlight line if selection is multiline 2012-10-01 15:44:57 -07:00
Kevin Sawicki
12a30873cf 💄 2012-10-01 15:44:57 -07:00
Kevin Sawicki
d69e08a858 Use screen rows for line highlight 2012-10-01 15:44:57 -07:00
Kevin Sawicki
2de14a701f Set width to 0 on tester element 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
b1138601fc Use gutter number padding when calculating gutter width 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
6b835920bf Add padding to gutter numbers instead of entire gutter 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
e15694bb41 No longer cache cursorScreenRow in gutter highlighting 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
2863d92ce3 Use screen position for gutter highlighting 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
83ddcde88a Add kevin to .pairs file 2012-10-01 15:44:56 -07:00
Corey Johnson & Nathan Sobo
2c763a4d48 💄 2012-10-01 15:44:56 -07:00
Kevin Sawicki
be8120e8c6 Add initial support for line highlighting 2012-10-01 15:44:56 -07:00
Nathan Sobo
6d151809c3 Delete these old flexbox tests now that we don't really care about flexbox 2012-10-01 11:50:33 -10:00
Kevin Sawicki
83fc9cd7c5 Monospace extension names 2012-10-01 10:40:59 -07:00
Kevin Sawicki
4deb1f2290 Add initial markdown preview docs 2012-10-01 10:34:59 -07:00
Kevin Sawicki
14ba8f712e Update folder name of wrap-guide doc 2012-10-01 10:30:53 -07:00
Kevin Sawicki
2dea1280e2 Create sub-folder for extension docs 2012-10-01 10:28:20 -07:00
Kevin Sawicki
7763ca3d4c Be definitive 2012-09-30 15:01:27 -07:00
Kevin Sawicki
430f03f8e4 Move old wiki page to notes folder 2012-09-30 15:00:45 -07:00
Kevin Sawicki
39530535b9 Put positive case in if statement 2012-09-30 10:57:04 -07:00
Kevin Sawicki
ddf4b55ee8 Mention configuring width 2012-09-30 10:55:33 -07:00
Kevin Sawicki
4a04fabe9b Add h3 and h4 styles to markdown preview stylesheet 2012-09-30 10:50:14 -07:00
Kevin Sawicki
7ce292af61 Add docs for wrap-guide extension 2012-09-30 10:49:37 -07:00
Kevin Sawicki
c089fc2074 Use ## for intro heading 2012-09-30 10:11:12 -07:00
Kevin Sawicki
99fb8a33db Add titles 2012-09-30 10:09:47 -07:00
Kevin Sawicki
599c2293d6 Add content from wiki to docs/ 2012-09-30 10:07:23 -07:00
Kevin Sawicki
a3427fa4cc Setup docs tab 2012-09-30 09:54:35 -07:00
Kevin Sawicki
7506fe7eae Provide default column to getGuideColumn callback 2012-09-29 11:51:32 -07:00
Kevin Sawicki
6412cde7a8 Support guide column callback function
This allows a config function to be registered
in the atom.coffee file to support different wrap
guide columns depending on the type of file being
viewed.
2012-09-29 11:44:05 -07:00
Nathan Sobo
755f1fc273 Add css text mate bundle 2012-09-28 17:36:36 -06:00
Nathan Sobo
4e49fbec72 TextMate grammars can include other grammars 2012-09-28 17:28:40 -06:00
Nathan Sobo
9b8a73d4ed Add ruby-on-rails text mate bundle 2012-09-28 17:28:25 -06:00
Nathan Sobo
3a8fe2b24e Spans have a class for each dot-separated portion of their token's scope
Previously, we were rendering every prefix of the dot-separated scope as its own class. So the scope meta.delimiter.method.period.coffee would make a token w/ classes:

class="meta, meta-delimiter, meta-delimiter-method, meta-delimiter-method-period…"

Now we just give the token each piece of the scope as a class:

class="meta delimiter method period coffee"

We lose a bit of meaning, in that a scope selector method.period.coffee would match this element in CSS even though it *wouldn't* in TextMate. But we also gain the behavior where longer prefixes are more specific by naturally producing more specific css selectors. So '.meta.delimiter.method' is always more specific than '.meta.delimiter', whereas '.meta-delimiter-method' ties with '.meta-delimiter'. 

If prefix ambiguities become a problem later we may need to revisit this approach, but I think it's good enough for now.
2012-09-28 17:00:31 -06:00
Nathan Sobo
dc4d981e2a Fix selector that prohibits weird characters from making lines extra-tall
Now that selectors can nest, this needed to be more permissive
2012-09-28 16:43:41 -06:00
Nathan Sobo
5ad6c67e07 Round alpha channel in TextMate theme rgba colors to 2-decimal places 2012-09-28 16:43:02 -06:00