Commit Graph

82 Commits

Author SHA1 Message Date
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
a91c8098a3 Style the command palette with a ":" before the editor. 2012-03-20 20:35:00 -06:00
Nathan Sobo
e5eedfb7c7 Meta-: toggles the command palette 2012-03-20 19:59:37 -06:00
Nathan Sobo
8ea4b4eb72 File finder opens selected file in the most recent pane.
Only editors inside #root-view #panes are tracked as the most recent active editor. Otherwise the file finder tries to open the selected file in its own mini editor.
2012-03-20 15:51:22 -06:00
Nathan Sobo
c0dd87665a Add a border and subtle inset shadow when panes are split. 2012-03-19 17:01:52 -06:00
Nathan Sobo
81e5a10ddd Perform vim-style editor pane splitting
Using percentage dimensions to absolutely position the panes on screen where they need to be located. Flexbox would have been nice, but unfortunately I could not work around what seem to be bugs (or at least major inconveniences) in its current implementation.
2012-03-19 16:48:13 -06:00
Nathan Sobo
9fab492f66 Fix horizontal split inside top-level vertical split. 2012-03-19 12:37:53 -06: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
0aeb826bbf Don't display a margin below file-finder list when it's empty 2012-03-16 11:29:48 -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
60056e57fb Use an editor in the file finder instead of an input element. 2012-03-15 13:41:37 -06:00
Nathan Sobo
601cf41108 Fix bug where file-finder pushed editor up.
For now, I'm removing the flexbox treatment of #app-vertical because the file finder just needs to overlay the bottom and absolute positioning is simpler. I'm also using requireStylesheet to load the file finders CSS instead of a link tag.
2012-03-14 18:28:23 -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
Corey Johnson & Nathan Sobo
ebca007ca4 Merge branch 'chrome' 2012-03-01 16:24:01 -08:00
Nathan Sobo
cf44dc7f16 Make fold placeholder exactly 3 characters wide. 2012-03-01 16:50:15 -07:00
Corey Johnson & Nathan Sobo
03bc1f38a1 💩 2012-02-29 15:26:55 -08:00
Corey Johnson & Nathan Sobo
7e6132f5b7 Redo Xcode project FROM SCRATCH 2012-02-29 15:23:17 -08:00
Corey Johnson & Nathan Sobo
b37b45b4b1 atom variable holds all global state and is shared across contexts. 2012-02-28 13:14:35 -08:00
Nathan Sobo
65c7a6126e Style the fold placeholder. 2012-02-28 12:27:35 -07:00
Corey Johnson
e0132b84ca Make the cursor a block in command mode 2012-02-03 13:58:48 -08:00
Corey Johnson
fecfc85f8f Turn off text selection in webkit 2012-02-03 13:46:03 -08:00
Corey Johnson & Nathan Sobo
c92397d55f 💄 2012-02-02 17:25:29 -07:00
Nathan Sobo
00bc17baf0 WIP: Add theme/twilight.css.
Lines aren't being updated properly quite yet, and the stylesheet needs
more tweaking, but colors are there when you load a file.
2012-02-02 12:47:35 -07: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
Nathan Sobo
18f09aad9e 💄 2012-01-24 14:21:43 -08:00
Corey Johnson & Nathan Sobo
c0e49a3e6c Css uses correct path 2012-01-23 17:30:55 -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
Nathan Sobo
07a51fb310 Displaying lines and a basic cursor 2012-01-16 17:17:36 -08:00
Corey Johnson & Nathan Sobo
e6053a2d66 FileFinder only returns up to maxResults 2011-12-30 11:37:11 -08:00
Corey Johnson & Nathan Sobo
98458806ea Add moveUp and moveDown to FileFinder 2011-12-29 16:43:22 -08:00
Corey Johnson & Nathan Sobo
d181ce1885 Add css to make FileFinder more usable. 2011-12-28 15:42:18 -08:00
Corey Johnson & Nathan Sobo
c6d90748f7 Meta-t adds file finder to bottom of layout. 2011-12-28 16:30:08 -06:00
Corey Johnson
d0ed5992ca 'meta-o' presents open dialog. 2011-12-20 10:41:31 -08:00