Kevin Sawicki
e2fb2fdae5
Set font size and family directly on editor element
...
Previously this was set via a style tag which ate up a lot of spec
time and seemed to be functionally equivalent to just setting the
style directly on the element instead of finding and adding/removing
style tags.
2013-10-03 09:38:42 -07:00
Kevin Sawicki
3189347899
Use window height to determine number of lines to render
...
This prevents the editor from displaying empty lines when a view is hidden
and the editor suddenly has more vertical space available to fill.
2013-10-01 15:35:08 -07:00
Kevin Sawicki
e2daef477c
Return false if either character is whitespace
2013-09-27 16:00:24 -07:00
Kevin Sawicki
e5b9b1f3cf
Favor the word when double clicking between word/non-word
...
Closes #523
2013-09-27 16:00:24 -07:00
Kevin Sawicki
2a2750862a
Add failing spec
2013-09-25 16:24:51 -07:00
Kevin Sawicki
fa6e85a522
💄 Require Editor and Range from atom
2013-09-20 17:06:30 -07:00
Kevin Sawicki
5a9972b370
Update editor width is chars when soft wrap is toggled
...
Closes #858
2013-09-20 17:04:21 -07:00
Kevin Sawicki
d46891caf0
Rename atom-api require to atom
2013-09-20 10:03:02 -07:00
Kevin Sawicki
3c94ca4b9e
Use relative paths in spec requires
2013-09-20 10:02:20 -07:00
Kevin Sawicki
71b74c466e
Remove unused requires
2013-09-20 10:02:19 -07:00
Cheng Zhao
666d202eb6
Add spec for syncing cursorView and hiddenInput's position.
2013-09-16 11:03:40 +08:00
Kevin Sawicki
ca3fff8a94
💄 correct typo in method name
2013-09-04 14:01:46 -07:00
Kevin Sawicki
eaf80a0194
Rename softWrapColumn to editorWidthInChars
2013-08-23 18:09:17 -07:00
Kevin Sawicki
3f848606ee
Use setEditorWidthInChars to resize editor
...
This makes the comparisons for the soft wrap column more sane.
2013-08-23 18:09:17 -07:00
Kevin Sawicki
cbd4fab8f2
Emit event from display buffer when soft wrap changes
...
This allows the editor to be reactive to the edit session
and always respect the edit session's current value when
initially opened.
2013-08-23 18:09:16 -07:00
Kevin Sawicki
5001c6e84e
Enable soft wrap explicitly in specs
...
This is required now that the soft wrap setting and soft wrap
column are decoupled.
2013-08-23 18:09:16 -07:00
Kevin Sawicki
a4411ab2ca
Update specs for resize handler changes
2013-08-23 18:09:16 -07:00
Kevin Sawicki
5ea8c6c27b
Don't store soft wrap column on EditSession
...
This removes duplicate state between the edit session and
display buffer.
2013-08-23 18:09:16 -07:00
Kevin Sawicki
da1e5f5c10
Always update the soft wrap column when the window resizes
...
This allows the edit session and display buffer to always be
notified of soft wrap column changes regardless of their initial
soft wrap state.
2013-08-23 18:09:16 -07:00
Kevin Sawicki
a7a1244599
Flatten spec directory
2013-08-19 20:13:58 -07:00