Commit Graph

39 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
c93c63d721 Editor.scroller WheelEvents are forwarded to Editor.scrollbar 2012-05-11 11:04:04 -07:00
Corey Johnson & Nathan Sobo
9427c82084 WIP: Getting specs passing with new stand-in vertical scrollbar 2012-05-11 11:52:03 -06:00
Corey Johnson & Nathan Sobo
1a6ef9d7e2 Revert "Temporarily disable gutter. Add transition affect to margin-top."
This reverts commit 811e5264cf.
2012-05-10 18:00:58 -06:00
Corey Johnson & Nathan Sobo
811e5264cf Temporarily disable gutter. Add transition affect to margin-top. 2012-05-10 17:52:41 -06:00
Corey Johnson & Nathan Sobo
502b463a72 WIP: Adding an artificial scrollbar so we can render content before we scroll. It's blue. 2012-05-10 16:59:46 -06:00
Corey Johnson & Nathan Sobo
d3127a2686 slowed cursor blink down 2012-05-09 12:24:27 -07:00
Nathan Sobo
8b1ac28b89 Editor font sizes can be adjusted with RootView.proto.setFontSize 2012-05-09 08:34:08 -06:00
Nathan Sobo
f41ca1843b Make editor scroller overflow be auto, not scroll 2012-05-07 12:35:25 -06:00
Nathan Sobo
37438c6da8 Status bar path and cursor position updates 2012-05-04 13:58:11 -06:00
Corey Johnson & Nathan Sobo
038b491247 Add 'mini' option to editor, which styles it with auto-height, no gutter, and overflow hidden on scroller 2012-04-19 16:45:57 -06:00
Nathan Sobo
144fb29d83 Make lines have 100% height so the area below last line is clickable 2012-04-11 14:28:26 -06:00
Nathan Sobo
8a4f6510c9 Lighten selections because they're hard to see against darker bg 2012-04-04 11:09:45 -06:00
Nathan Sobo
d521dab2cf Horizontal scrollbar is always visible, and clicking scrollbars doesn't move cursor.
The editor is divided into gutter and scroller. The gutter is scrolled to the correct vertical position whenever the lines are scrolled inside of scroller.
2012-04-03 15:01:28 -06:00
Corey Johnson & Nathan Sobo
b2cd059759 Set .hidden-input to fixed position so we don't have to move it when the cursor moves 2012-03-23 10:13:41 -07:00
Nathan Sobo
29d0e1fe3d Move all screen-splitting-related selectors to atom.css 2012-03-19 12:23:39 -06:00
Nathan Sobo
5b145f64c2 Add vertical splitting. Still some issues with some nested arrangements. 2012-03-19 12:15:37 -06:00
Nathan Sobo
509bac15b6 Cursor is colored / blinks on on focused editor pane 2012-03-19 09:31:03 -06:00
Corey Johnson & Nathan Sobo
2e42df3401 WIP: alt-meta-right splits editor pane to the right 2012-03-19 08:34:37 -06:00
Nathan Sobo
5d1bde62a6 Ensure gutter drop-shadow always extends to bottom of window, even if file is shorter.
This is fragile. Had to apply a min-height of 100% to horizontal scroller. If I apply it to gutter it causes rendering artifacts. I think we're on the edge of the flexbox code here and may even be causing crashes.
2012-03-16 05:49:03 -06:00
Nathan Sobo
174c4e18cc Fix scrolling misbehavior and display artifacts.
Switching back to the new flexbox and re-introducing a scrollable-content node that the flexbox is applied to. This has no height settings so it grows to contains the gutter and lines. The editor outside of it has a width / height of 100% of its container plus overflow-y of scroll. Trying to apply flexbox AND a 100% height + scroll all to the editor causes display artifacts.
2012-03-16 05:41:43 -06: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
f02244412f Disable scrolling on the horizontal scroller when soft wrap is on. 2012-03-13 12:13:47 -06: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
3a6b3e6650 💄 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
Corey Johnson & Nathan Sobo
696948cc9b Gutter is renders line numbers when buffer is assigned. 2012-03-02 16:13:29 -08:00
Corey Johnson & Nathan Sobo
b3c4fd5cce Add a nonfunctional gutter to editor layout. 2012-03-02 15:42:04 -08:00
Nathan Sobo
cf44dc7f16 Make fold placeholder exactly 3 characters wide. 2012-03-01 16:50:15 -07:00
Nathan Sobo
65c7a6126e Style the fold placeholder. 2012-02-28 12:27:35 -07:00
Corey Johnson
fecfc85f8f Turn off text selection in webkit 2012-02-03 13:46:03 -08:00
Nathan Sobo
9a639043ca Use default cursor in editor.
This prevents it from sporadically switching to the text insertion
cursor when hovering over lines.
2012-01-28 15:59:38 -08:00
Nathan Sobo
e0c66c5caf Fix horizontal scrolling oddness
Giving the hidden text area a fixed position was confusing webkit and
making scroll behavior really odd. Using position: absolute and setting
the z-index so it's behind the editor seems to make scrolling behave
more normally.
2012-01-27 19:12:42 -08:00
Corey Johnson & Nathan Sobo
dea99216d4 Cursor blinks 2012-01-27 17:33:02 -08:00
Nathan Sobo
3987fb78b7 Style selection regions more attractively. 2012-01-26 18:56:42 -08:00
Nathan Sobo
6bf82a27c9 Selections render themselves on screen (1 div per line)
Still a lot of details to cover, but basic selection creation is
working.
2012-01-26 18:54:18 -08:00
Corey Johnson & Nathan Sobo
6af33c3337 Editor directs focus to a hidden input element.
Now we'll be able to listen for textInput events, which give us better
information about what character is being entered in the presence of
multi-keystroke compositions like alt-u,u for ü
2012-01-24 15:27:05 -08:00
Corey Johnson & Nathan Sobo
1a52890d19 Cursor scrolls editor as it moves 2012-01-23 16:45:00 -08:00
Nathan Sobo
5198a88cce Half-baked: Have a lines reasonably looking cursor working.
A bunch of tests are failing but you can load a buffer and display its
lines.
2012-01-16 22:11:38 -08:00
Nathan Sobo
7d7b119927 WIP 2012-01-16 19:23:27 -08:00