Kevin Sawicki
f766bbbb38
Remove Point and Range classes now provided by telepath
2013-07-05 12:53:50 -07:00
Kevin Sawicki & Nathan Sobo
05a3f35512
Normalize line endings in TextBuffer.change()
2013-07-05 12:53:50 -07:00
Kevin Sawicki & Nathan Sobo
f4300b8cab
Fix specs due to scrollTop/Left becoming methods on EditSession
2013-06-28 04:39:30 -06:00
Kevin Sawicki & Nathan Sobo
c596514d11
Accept documents in EditSession and replicate scroll position
2013-06-28 04:39:30 -06:00
Nathan Sobo
44e73200ff
Default editor.normalizeIndentOnPaste to true
2013-06-19 13:01:23 -06:00
Kevin Sawicki
1178d844d0
Look before and after empty lines for max indent level
...
Previously the indentation guide level for empty lines was
derived by only looking after the empty line which caused gaps
in certain cases.
Now the indentation for an empty line is the higher value of the
previous non-empty line indentation and the following non-empty
line indentation.
Closes #588
2013-06-18 09:56:31 -07:00
Kevin Sawicki
ed3a4a33e2
Rename .write() to writeSync()
2013-06-12 20:38:26 -07:00
Kevin Sawicki
dc46960e6c
Update scroll position after layer dimensions
...
Calling updateLayerDimensions() may change the scroll position
so restore the edit session's stored scroll positions after
updateLayerDimensions() is called but store the scroll left and
scroll top positions beforehand.
2013-06-06 16:15:51 -07:00
Kevin Sawicki
7a04b22375
💄
2013-06-06 16:00:44 -07:00
Kevin Sawicki
d5526515f1
Only save scroll position when attached
2013-06-06 15:58:44 -07:00
Kevin Sawicki
eaf5b8bc8e
Remove duplicate getLastScreenRow() method
2013-06-06 08:21:00 -07:00
Kevin Sawicki
7ccf2390a7
Constantly sync scroll left/top value from editor to edit session
...
Previously these values were only saved on the edit session when
is became inactive causing the scroll position to not always
persist between refreshes.
Closes #474
2013-06-05 19:14:30 -07:00
probablycorey
49aeef99b6
Add config option editor.normalizeIndentOnPaste
2013-05-13 14:28:16 -07:00
Nathan Sobo
b4dec8ccbb
In Editor.updateRenderedLines, cap renderFrom to the last screen row
...
If we remove a large number of screen lines when we are scrolled down,
the current @firstRenderedScreenRow may end up being larger than the
number of screen rows we now have. Setting renderFrom to the
@firstRenderedScreenRow in this case was causing the renderFrom to be
larger than the renderTo, which was causing problems downstream with
the new mapping code.
2013-05-10 13:20:43 -06:00
Nathan Sobo
d3cb001d65
Use RowMap instead of LineMap in DisplayBuffer
2013-05-10 13:20:42 -06:00
Nathan Sobo
b4206d3202
Merge branch 'master' into know-when-to-foldem
...
Conflicts:
src/app/edit-session.coffee
2013-05-06 08:35:13 -06:00
Nathan Sobo
e8e0d5dd02
Fix regression: folds can be destroyed by clicking them
2013-05-06 08:27:43 -06:00
Nathan Sobo
3e937e9811
Merge remote-tracking branch 'origin/master' into know-when-to-foldem
...
Conflicts:
src/app/buffer-marker.coffee
src/app/cursor.coffee
src/app/display-buffer-marker.coffee
src/app/display-buffer.coffee
src/app/edit-session.coffee
src/app/fold.coffee
src/app/line-map.coffee
src/app/range.coffee
src/app/selection.coffee
src/app/text-buffer.coffee
2013-05-03 18:29:52 -06:00
Garen Torikian & Nathan Sobo
839f0b642c
Merge Kevin's fix for empty line invisibles with the reshuffling of buildLineHtml methods to be on the class level
2013-05-03 16:57:42 -07:00
Garen Torikian & Nathan Sobo
f4d7586034
Refactor syntax highlighting of Markdown pre blocks
...
Extract out editor-colors class to apply background and default text color
Remove pre background coloring from Markdown preview stylesheet
2013-05-03 16:57:42 -07:00
Garen Torikian
95e14486af
Fix specs for testing highlighted lines
2013-05-03 16:57:42 -07:00
Garen Torikian
cf239ccac0
Implement highlighting of Markdown pre blocks
2013-05-03 16:57:41 -07:00
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
35cf96e15f
Render empty line invisibles at correct position
...
End of line invisibles are not rendered at the correct
position for empty lines instead of always after the
last indent guide span.
Closes #456
2013-05-01 20:54:09 -07:00
Kevin Sawicki
6eb88278ae
Only return false if focused
...
Previously the editor would not gain focus if the underlayer was clicked.
2013-05-01 17:27:33 -07:00
Garen Torikian
5a944514f3
Rewrite all hash key options
2013-05-01 17:01:55 -07:00
Garen Torikian
fb955667f5
Resolve references to Internal
2013-05-01 17:01:55 -07:00
Garen Torikian
3c5b721177
Update Editor
2013-05-01 17:01:53 -07:00
Garen Torikian
2357f46761
Fix block comments in src
2013-05-01 16:58:43 -07:00
probablycorey
0be166bb59
Remove the bottomPaddingInLines from editor
2013-05-01 13:54:37 -07:00
probablycorey
cb2d24baca
Listen for clicks outside of the render lines on the underlayer
2013-05-01 13:54:37 -07:00
probablycorey
7609b08e86
💄
2013-05-01 13:54:37 -07:00
Kevin Sawicki
a788006d7c
Default editor.preferredLineLength config to 80
2013-04-30 15:03:46 -07:00
probablycorey
af5392b8ac
Add extra padding to the bottom of an editor's vertical scrollbar
...
This gives us some space when we scroll to the bottom of a file.
Similar to how MacVim works when using the mouse.
Closes #464
2013-04-30 11:52:28 -07:00
Corey Johnson
35b0e06260
💄
2013-04-30 11:52:28 -07:00
Corey Johnson
9180060920
Revert "Listen for mouse events on scrollView instead of renderedLines"
...
You can't listen on scroll view because that makes
it impossible to scroll using the scrollbar
Opens #464
This reverts commit fdae5fd89c .
2013-04-29 15:07:38 -07:00
Corey Johnson
fdae5fd89c
Listen for mouse events on scrollView instead of renderedLines
...
It was not possible to click on the lower part of the last line
when the editor was scrollable and listening for mousedown events on renderedLines.
Closes #464
2013-04-29 14:59:23 -07:00
Kevin Sawicki
c54766a08a
Don't show indent guide in mini editor
2013-04-26 17:31:54 -07:00
Corey Johnson & Nathan Sobo
b878be27a0
Revert to default font when setFontFamily is set to null/undefined
2013-04-26 15:36:58 -07:00
probablycorey
1b4fbdb065
Allow html attributes to be applied to Editors
2013-04-26 15:36:57 -07:00
Garen Torikian
7fdfd71382
💄
2013-04-26 14:45:18 -07:00
Garen Torikian
bb40ad6177
💄 all the things
2013-04-26 13:49:12 -07:00
Nathan Sobo
ca3b0c97da
💄 getter renames
2013-04-25 14:06:52 -06: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
Corey Johnson & Nathan Sobo
24ce415283
Move event listener calls from resetDisplay to edit
...
Fixes #140
2013-04-24 11:41:56 -07:00
Kevin Sawicki
1ccf026a83
Set/get text using edit session instead of buffer
2013-04-23 08:54:43 -07:00
Kevin Sawicki
2d897ba415
Remove trailing whitespace
2013-04-23 08:54:18 -07:00
Garen Torikian
53f03d1b30
Missed a spot
2013-04-18 20:10:30 -07:00
Garen Torikian
5ee388cede
Get it to a proper 80%
2013-04-18 18:50:22 -07:00
Garen Torikian
e478d9b7a0
Add more corrections off of the #Internal syntax
2013-04-18 13:38:26 -07:00