Luke Pommersheim
2765b54374
fix of coffeelint errors in spec tests
2015-06-11 13:33:46 +02:00
Luke Pommersheim
c67f98febb
if there are multiple cursors and you click a cursor, it is removed, otherwise new cursor is added. Cannot remove if there is only one cursor and you click on it
2015-06-11 13:26:09 +02:00
Antonio Scandurra
cec6959e08
Extend highlights to the full editor width
2015-06-08 18:58:04 +02:00
Antonio Scandurra
515ae7acb7
Use tile node as the reference for highlights width
2015-06-06 17:19:24 +02:00
Antonio Scandurra
c4503fc137
💚
2015-06-06 16:55:00 +02:00
Antonio Scandurra
fcb9653066
Start porting TextEditorComponent specs
2015-06-06 15:41:15 +02:00
Max Brunsfeld
2337254afb
Fix text-editor-component-spec failure
...
Grouping intervals are exclusive now. It shouldn't affect anybody
since it's a one-millisecond change to the meaning of
grouping-interval, but it required changing some time intervals
in this spec.
2015-06-05 12:05:05 -07:00
Antonio Scandurra
538fcfece3
🎨 Better test naming
2015-05-22 14:01:52 +02:00
Antonio Scandurra
1a18cda000
💚 Fix remaining specs
2015-05-21 10:00:46 +02:00
Antonio Scandurra
752dbf2c6e
Manually config tileSize
...
Dealing with a manually entered `tileSize` is actually easier to reason about,
therefore we no longer calculate it based on `tileCount.`
2015-05-21 09:59:58 +02:00
Max Brunsfeld
34a3ee1be9
⬆️ text-buffer
2015-05-12 18:02:27 -07:00
Jess Lin
79b460a0ca
[Gutter] Add ::getDomNode method to all 'components'
2015-04-22 07:28:59 -07:00
Jess Lin
34856d94f5
[Gutter][DOM Persistence] Keep a gutter in the DOM if it is merely hidden (not destroyed)
2015-04-22 07:28:58 -07:00
Jess Lin
8d6745d8a9
[Gutter] Replace GutterComponent with GutterContainerComponent in TextEditorComponent
2015-04-22 07:28:57 -07:00
Jess Lin
fccc9ebee4
[Gutter] Rename current references to 'Gutter' -> 'LineNumberGutter'
2015-04-22 07:28:56 -07:00
Nathan Sobo
9823f4ce09
Fix legacy event spec for scheduler change
2015-04-21 08:09:07 -06:00
Antonio Scandurra
304b959ca8
🎨 Use tags to exclude spec on Linux
2015-04-14 19:34:04 +02:00
Antonio Scandurra
1c8cf4390c
Rename to safe-clipboard
...
...and use remote only on Linux renderer processes.
2015-04-14 10:50:09 +02:00
Antonio Scandurra
87972caf1e
🐧 Disable failing spec
2015-04-13 16:24:22 +02:00
Antonio Scandurra
c4205e36a6
💚 Use a serif font to make sure char widths change
2015-04-13 14:32:40 +02:00
Antonio Scandurra
106f9fdf2e
Use src/native-clipboard in atom-application
2015-04-13 14:08:43 +02:00
Kevin Sawicki
e02e8c91a6
Use TextEditor::onDidChangeCursorPosition in spec
2015-04-06 16:29:12 -07:00
Antonio Scandurra
21df0d0401
✅ Use component.measureDimensions()
2015-04-02 19:06:41 +02:00
Jesse Grosjean
82da0865bc
Merge branch 'master' of https://github.com/atom/atom into upstream
2015-04-02 12:23:03 -04:00
Ben Ogle
dff2453b65
Attempt to fix spec
2015-04-01 18:05:17 -07:00
Ben Ogle
44d1302402
Fix text-editor-component spec
2015-04-01 17:41:00 -07:00
Ben Ogle
48c05210fa
Remove specs from text-editor-component
2015-04-01 17:41:00 -07:00
Ben Ogle
b0794bbb68
Move the overlay calculation into the presenter.
2015-04-01 17:40:59 -07:00
Ben Ogle
01905ae55b
Add specs for margin handling
2015-04-01 17:40:59 -07:00
Ben Ogle
6b5a74e3b6
Update specs for overlay rendering
2015-04-01 17:40:59 -07:00
Jesse Grosjean
409775b53e
Improved specs for clipping pixel positions above/below display buffer
2015-04-01 12:39:22 -04:00
Nathan Sobo
ae4f7f6170
Explicitly autoscroll when needed
...
Rather than when the selection’s marker changes. This is simpler than
suppressing autoscroll via state when we don’t want it. It also captures
the intent to autoscroll when attempting to move the cursor at the
beginning or end of the document.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-03-26 16:48:24 -06:00
Nathan Sobo
99c437ccec
Allow autoscroll override option in cursor/selection methods
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-03-26 16:48:21 -06:00
Nathan Sobo
2bfd30c832
Revert "Revert "Don't soft-wrap on indentation""
2015-03-19 14:37:39 -06:00
Nathan Sobo
6345799cf3
Revert "Don't soft-wrap on indentation"
2015-03-19 12:47:58 -06:00
Antonio Scandurra
61cc9b97ea
💚 Fix failing spec
2015-03-19 11:45:54 +01:00
Antonio Scandurra
8c297ba1fc
✅ Verify corrupted state graceful handling
2015-03-09 13:43:33 +01:00
Ivan Zuzak
03a064b6e9
Add specs for mouse interactions on gutter with soft wrap
2015-03-03 13:59:46 +01:00
Ivan Zuzak
574158dc6d
Add test for foldable icons on soft wrapped lines
2015-02-27 15:30:24 +01:00
Nathan Sobo
6a9abd1f66
🐎 Don’t blink cursors when editor isn’t focused
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-02-26 15:23:11 -07:00
Nathan Sobo
986e8bf85f
Allow multiple space-delimited classes for highlight decorations
...
Fixes #5747
2015-02-25 14:35:32 -07:00
Nathan Sobo
32d393d26f
Pause polling when updates are requested, but don’t start polling over
...
The blinking cursor was ensuring that we never polled in certain cases.
We need to allow the interval to continue polling at a normal pace, but
just avoid doing any work that could delay the next animation frame.
2015-02-20 09:51:11 -07:00
Nathan Sobo
1d84d74e50
Centralize text editor DOM interaction through atom.views
...
This ensures that DOM writing, reading, and polling properly interleaves
with DOM interactions from other text editors and any other code that
coordinates via atom.views. Not sure about the location of it though.
2015-02-19 17:14:58 -07:00
Nathan Sobo
7033b27207
Make EditorComponent a plain JS object rather than a React component
2015-02-19 17:14:57 -07:00
Nathan Sobo
2fba4979f9
Use presenter to determine gutter visibility
2015-02-19 17:14:56 -07:00
Nathan Sobo
bf29a020e1
Use presenter for focused state in EditorComponent
2015-02-19 17:14:55 -07:00
Nathan Sobo
52a9a76b2a
Use presenter state in InputComponent
2015-02-19 17:14:54 -07:00
Nathan Sobo
168df987d7
Make GutterComponent a plain JS object instead of a React component
2015-02-19 17:14:53 -07:00
Nathan Sobo
c06e100fae
Make LinesComponent a normal object instead of a React component
...
Also, remove ability to disable hardware acceleration since there’s
no longer a need for it and it complicated this conversion.
2015-02-19 17:14:53 -07:00
Nathan Sobo
883af7a83e
Update cursor nodes manually
2015-02-19 17:14:52 -07:00