Chris Wanstrath
f5f18abbf0
ctrl-t: transpose
2012-10-08 20:08:07 -07:00
Nathan Sobo
c09f7ebc60
Fix the command panel's handling of move-up/move-down
...
Forgot to add the core: prefix to this area
2012-10-05 10:55:55 -10:00
Nathan Sobo
9906dd41b4
Give editor-specific events the "editor:" prefix
2012-10-05 10:07:37 -10:00
Nathan Sobo
0ab50cf102
Move cut, copy, and paste into "core:"
2012-10-05 10:07:37 -10:00
Nathan Sobo
23f4e533d9
Move undo and redo in "core:"
2012-10-05 10:07:37 -10:00
Nathan Sobo
a2a15a90fd
Move backspace and delete into "core:"
2012-10-05 10:07:37 -10:00
Nathan Sobo
8cde98bf45
Move select-to-top/bottom and select-all into "core:"
2012-10-05 10:07:36 -10:00
Nathan Sobo
c221729407
Move "select-up/down/left-right" into "core:"
2012-10-05 10:07:36 -10:00
Nathan Sobo
6061c3e52a
Prefix move-to-top/bottom page-up/down with "core:"
2012-10-05 10:07:36 -10:00
Nathan Sobo
67c6ed8de7
Prefix "move-*" events with "core:"
...
I want to prefix all custom events for better categorization and to
distinguish them from built-in webkit events
2012-10-05 10:07:36 -10:00
Kevin Sawicki
282802ac6c
Scroll auto complete view with editor window
2012-10-02 12:51:06 -07:00
Kevin Sawicki
b7f32036c2
Change editor-selection-change event name to selection-change
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
f2306f444a
💄
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
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
33abaff747
Don't highlight line if selection is multiline
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
be8120e8c6
Add initial support for line highlighting
2012-10-01 15:44:56 -07: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
7c9f50209f
HTML escape line text
2012-09-28 13:46:15 -06:00
Nathan Sobo
3ebd7cfef1
Output nested spans so that scope selector specificity translates better to CSS
...
The tokenizer emits individual tokens with arrays of scopes, rather than a more tree-like structure. It's debatable whether we want to emit scope trees rather than token streams in general, though that might complicate things like line wrapping. For now, we're reconstructing the tree during rendering based on information that's implicit in the tokens.
2012-09-28 13:36:43 -06:00
Corey Johnson & Nathan Sobo
bebfaed69b
wip: creating token spans
2012-09-28 13:36:43 -06:00
Corey Johnson & Nathan Sobo
875852d1de
logCursorScope works properly
2012-09-28 13:36:43 -06:00
Corey Johnson
f95e67d8cd
Triple click selects entire line (including \n). Fixes #44
2012-09-26 13:53:51 -07:00
Corey Johnson
282da8b975
Output the syntax scope of the cursor by pressing cmd-alt-p
2012-09-26 13:53:51 -07:00
Nathan Sobo
5f253d78e9
Optimization: Use absolute positioning instead of flexbox in editor
...
Flexbox was causing layouts and repaints to cover the entire scroll view instead of just the edited line. This cuts down on DOM manipulation cost significantly.
2012-09-25 14:58:31 -06:00
Nathan Sobo
d3df0a305b
Use <pre> tag for lines instead of using white-space: pre css property
...
One less CSS rule, since the whitespace behavior of a `pre` tag is already baked into the browser's default styles.
2012-09-25 13:09:12 -06:00
Kevin Sawicki
b18627ab9b
Add delete line support bound to meta-d key
2012-09-19 15:23:10 -07:00
Kevin Sawicki
47ed19f851
Substract scroll top when paging up
2012-09-19 08:52:05 -07:00
Kevin Sawicki
9ba3b74a9d
Add support for Page Up and Page Down keys
2012-09-18 19:53:23 -07:00
Corey Johnson
3b9310ebe4
Gutter width is sized to fit the width of the largest line number
2012-08-31 13:33:59 -07:00
Corey Johnson & Nathan Sobo
44db540528
All specs pass
2012-08-30 17:12:52 -06:00
Corey Johnson & Nathan Sobo
92d728295f
Don't assume save is always passed a success callback
2012-08-30 16:12:34 -06:00
Nathan Sobo
3b2b829419
Use atom.showSaveDialog when closing a previously-unsaved buffer
2012-08-30 11:03:58 -06:00
Nathan Sobo
95b1ebdd8c
Use atom.confirm to display buffer conflict dialog
2012-08-29 20:43:29 -05:00
Nathan Sobo
e47c59c35f
Use atom.confirm when closing an unsaved buffer
2012-08-29 20:24:48 -05: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
Nathan Sobo
8c5e77d325
Move theme activation to RootView
2012-08-08 17:04:54 -06:00
Nathan Sobo
c8154e4e8c
Use Twilight theme stylesheet based on TextMateTheme
2012-08-08 16:55:34 -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
f7614c210a
Add unfold-all and bind it to ctrl-}
2012-07-30 12:11:54 -07:00
Corey Johnson & Nathan Sobo
75f0438f6a
Rename fold/unfold to foldCurrentRow/unfoldCurrentRow
2012-07-30 09:58:15 -07:00
Corey Johnson
76ffa5a2c5
change toggle-fold to fold
2012-07-27 13:45:13 -07:00
Corey Johnson
960bd1ea70
Show "buffer in conflict" alert after edit session is visible
2012-07-26 13:32:26 -07:00
Corey Johnson
0384f025dd
Add Buffer.isInConflict()
2012-07-26 11:00:16 -07:00