Commit Graph

489 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
b31bef4ea0 When updating folds, don't modify the array over which we're iterating 2012-03-16 16:31:52 -06:00
Corey Johnson & Nathan Sobo
67d017f3f4 Fix bug where destroying a fold on last screen line of wrapped line caused an artifact. 2012-03-16 16:11:44 -06:00
Corey Johnson & Nathan Sobo
7336e8313c Folds can be created on the penultimate screen line of a wrapped buffer line 2012-03-16 14:35:07 -07:00
Corey Johnson & Nathan Sobo
45c825e76c Report proper screen ranges on change events for folds created on wrapped lines 2012-03-16 13:33:11 -07:00
Corey Johnson & Nathan Sobo
fd5439f357 Simplify layout and prevent scrollbar flash when toggling file finder. 2012-03-15 17:18:26 -06:00
Nathan Sobo
0efee25ded Cleanup keybindings after app spec. 2012-03-15 16:22:02 -06:00
Nathan Sobo
6bdba313d1 Don't add to the same window to the atom.windows array twice 2012-03-15 16:10:55 -06:00
Nathan Sobo
60056e57fb Use an editor in the file finder instead of an input element. 2012-03-15 13:41:37 -06:00
Corey Johnson
a559e52352 Extract jasmine code into jasmine-helper 2012-03-15 10:46:40 -07:00
Corey Johnson
6b4f3b0386 Use --headless arg to enable console reporter and exit on finish. 2012-03-15 10:24:57 -07:00
Corey Johnson
80641636f9 rake tasks use console reporter 2012-03-15 10:15:06 -07:00
Corey Johnson
ef9673a145 jasmine-atom-reporter doesn't output any console data 2012-03-15 08:55:09 -07:00
Corey Johnson
5c2b8b8ed6 this commit fixes the previous failure 2012-03-14 16:40:44 -07:00
Corey Johnson
8bff0d91f7 this commit should fail 2012-03-14 16:39:48 -07:00
Corey Johnson
154fa2fa92 Editor.save spec removes test files in afterEach method 2012-03-14 14:38:03 -07:00
Corey Johnson
117d9287e0 Allow AtomReporter to output text to console. 2012-03-14 10:48:53 -07:00
Corey Johnson
638c0c625b Rename TrivialReporter AtomReporter 2012-03-14 09:59:31 -07:00
Nathan Sobo
5bf9925d0a Unsubscribe from Buffer when an Editor is removed from the DOM. 2012-03-13 19:20:40 -06:00
Nathan Sobo
eb92966acd Fully unsubscribe from previous buffer when setting a new buffer 2012-03-13 19:05:48 -06:00
Nathan Sobo
5e5a5bdfa5 Add EventEmitter.subscriptionCount 2012-03-13 19:05:24 -06:00
Nathan Sobo
e1283e1788 Add event namespacing to EventEmitter. 2012-03-13 18:17:43 -06:00
Nathan Sobo
da3e1d4553 Every Buffer gets its own UndoManager. 2012-03-13 16:24:12 -06:00
Nathan Sobo
7d2d0f2037 Add a drop shadow to gutter when horizontal scroller is scrolled right. 2012-03-13 16:09:11 -06:00
Nathan Sobo
5709b0d152 Now we can force line wrapping in specs without editor being on the DOM. 2012-03-13 15:56:24 -06:00
Nathan Sobo
06a3f3d376 Fix exception when auto-indenting after fold placeholder.
Propagate state when splitting and concatenating screen line fragments, because we were passing an undefined state to the auto-indenter.
2012-03-13 15:50:43 -06:00
Nathan Sobo
c102711336 💄 2012-03-13 15:33:04 -06:00
Nathan Sobo
826bf6ec61 Editor recalls cursor position and scroll state when a previously edited buffer is re-assigned. 2012-03-13 15:25:20 -06:00
Nathan Sobo
a96e09f6d1 When soft wrap is on, don't position hidden input beyond width of horizontal scroller. 2012-03-13 12:14:08 -06:00
Nathan Sobo
8d432c02c1 Fix bug where text typed into empty buffer was on the wrong line. 2012-03-13 12:12:52 -06:00
Nathan Sobo
fa971d1e75 Render multiple lines in a single fragment 2012-03-12 16:40:14 -06:00
Nathan Sobo
86cc45f4da Add Editor.spliceLineELements 2012-03-12 14:21:00 -06:00
Corey Johnson
8e97fbd5ed document.title is set as the window title 2012-03-09 11:02:08 -08:00
Nathan Sobo
5c23509f90 Use type-explicit copy methods instead of _.clone when we know the type 2012-03-08 19:32:18 -07:00
Corey Johnson & Nathan Sobo
60affb5d55 Defer cursor auto-scrolling until next tick.
Reading the DOM causes a reflow, which slows down character insertion.
2012-03-08 14:04:54 -08:00
Nathan Sobo
07b9b42360 Only append a non-breaking space if a line contains no normal characters 2012-03-08 12:59:38 -07:00
Nathan Sobo
6d303aad18 Add a horizontal-scroller to address selection issues when scrolled right
The lines element is now display: table and contained inside of the
scroller. This means the lines element always expands to contain all
lines, which allows absolute positioning inside of it to be relative to
the entire scroll contents, not just to the currently visible area.
2012-03-08 11:23:05 -07:00
Corey Johnson
423a4dc17d Ensure editor and cursor methods explain if they act on buffer or screen lines 2012-03-07 16:23:23 -08:00
Nathan Sobo
8e4a6f65f7 Translate clicks to screen positions correctly when lines are scrolled right 2012-03-07 17:22:13 -07:00
Nathan Sobo
acb6c94ebb Make cursor and selection children of editor.lines to fix positioning when scrolled 2012-03-07 17:10:24 -07:00
Corey Johnson
ac77b7af87 Outdent and indent use bufferRow and screenRow in the appropriate places 2012-03-07 15:22:41 -08:00
Nathan Sobo
65920fdc25 Rename GlobalKeymap to Keymap 2012-03-07 14:45:26 -07:00
Nathan Sobo
62319113c1 Meta-w closes specs window 2012-03-07 14:27:21 -07:00
Corey Johnson
f6414c543c Add save command and keyboard shortcuts to editor. 2012-03-07 12:43:29 -08:00
Corey Johnson
fabe8fd609 Update test to use meta-/ instead of meta-s 2012-03-07 12:43:09 -08:00
Corey Johnson
c258c2847e Fix bug introduced when I resolved a conflict resolution. 2012-03-07 11:42:39 -08:00
Corey Johnson
29c697faaa Disable auto-scroll and make overflow-x hidden when soft-wrap is enabled 2012-03-07 11:29:33 -08:00
Nathan Sobo
461dd5cd37 Gutter renders correctly with line wrapping and folds 2012-03-07 12:19:30 -07:00
Nathan Sobo
20deb80d9f Give specs window a keymap with the default bindings 2012-03-07 11:04:41 -07:00
Nathan Sobo
43653d7f03 Merge remote-tracking branch 'origin/master' into gutter
Conflicts:
	src/atom/highlighter.coffee
2012-03-07 10:42:21 -07:00
Nathan Sobo
47ee8d599d Rename input/output to buffer/screen in LineMap
Now that we don't have two translation steps, it's not a lie to refer
to the coordinate spaces being translated by the line map as buffer and
screen
2012-03-06 19:20:28 -07:00