Commit Graph

5838 Commits

Author SHA1 Message Date
Nathan Sobo
f1276f59de Autoscroll when mouse gets close to the edge of the editor scroll view
Previously, we required the cursor to exceed the bounds of the editor,
but that makes it impossible to scroll when the window is maximized.
2015-09-01 10:43:45 -06:00
Antonio Scandurra
0d248e0c5b Merge pull request #8500 from natthu/master
Fix a bug with refreshing the gutter UI.
2015-08-31 14:24:12 +02:00
Nathan Sobo
c0b4181b47 Merge pull request #8558 from atom/ns-simplify-page-up-down
Simplify page-up/page-down
2015-08-28 14:55:24 -06:00
Nathan Sobo
c7cc404c42 Simplify page-up/page-down
We simply move the cursor up or down by the number of whole lines that
fit on screen, allowing autoscroll to adjust the scroll position. This
causes there to be a margin under the location to which we move the
cursor, but I think it’s better to provide context and keep the
autoscroll experience consistent when using the keyboard.
2015-08-28 13:39:14 -06:00
Nathan Sobo
012f8e40fc Add specs for mouse-based autoscroll; fix a couple existing specs 2015-08-28 12:56:59 -06:00
simurai
ff93fdf617 Merge pull request #8537 from atom/as-gutter-z-index
Gutter z-index
2015-08-28 17:31:58 +09:00
Antonio Scandurra
340fe7e534 📝 Fix wording on specs
Thanks, @maxbrunsfeld! 🎆
2015-08-28 09:45:55 +02:00
Nathan Sobo
314e082f1d Clean up max scroll margin code
Previously we were attempting the same computation twice, once
incorrectly when returning the scroll margins as integers and then doing
the same thing in terms of pixels. This just cleans up the original
calculation. It’s *slightly* different because it takes the floor to
continue returning integers, but the behavior is extremely close.
2015-08-27 17:40:01 -06:00
Natthu Bharambe
20aa3a6a87 Fix nits with the spec.
Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
2015-08-27 08:38:05 -07:00
Antonio Scandurra
fa28aef2b5 Put a decreasing z-index on line numbers 2015-08-27 12:47:43 +02:00
Antonio Scandurra
9ea62673d2 Put a decreasing z-index on line-numbers tiles 2015-08-27 12:15:55 +02:00
Antonio Scandurra
ca285d3fe3 💚 Correct typo in container's height specs 2015-08-27 12:12:45 +02:00
Nathan Sobo
4bbc1d806e Create a selection automatically as needed if the last one was destroyed
Fixes atom/bracket-matcher#102
2015-08-26 17:59:33 -06:00
Nathan Sobo
6bfa228060 Merge pull request #8520 from atom/as-lines-height
Change lines container height based on `TextEditorElement` dimensions
2015-08-26 17:21:52 -06:00
Max Brunsfeld
014243637b Merge pull request #8527 from atom/mb-add-child-root-folder
Allow adding a root folder that's within another root folder
2015-08-26 15:44:30 -07:00
Max Brunsfeld
6df058c7f3 Allow adding a root folder that's within another root folder 2015-08-26 15:26:02 -07:00
Natthu Bharambe
aba76015b0 Add a spec to verify gutter decorations are updated even if a higher priority gutter is hidden. 2015-08-26 15:17:03 -07:00
Jacek Kopecky
3a81414155 🔥 redundant old tests 2015-08-26 21:52:01 +01:00
Jacek Kopecky
e4b189c6c0 add tests 2015-08-26 21:04:09 +01:00
Antonio Scandurra
b5c0f5ac0b Change lines container height based on boundingClientRect 2015-08-26 16:21:51 +02:00
Max Brunsfeld
b9ca563c3c Don't use fixture file in openEmptyEditorOnStart spec 2015-08-25 14:24:11 -07:00
Max Brunsfeld
6c73f5eda7 Merge branch 'master' of https://github.com/jonathandelgado/atom into jonathandelgado-master 2015-08-25 12:36:58 -07:00
Max Brunsfeld
f57da0c6f8 Suppress merging selections during undo/redo
Now, during undo/redo overlapping selections will be temporarily
created as markers are created via snapshots. Old selections will
immediately be destroyed though, since undo/redo now completely
replace all historied markers w/ those in the snapshot, so there
is no need to merge selections.
2015-08-25 10:51:45 -07:00
Max Brunsfeld
b8aec9db7c Fix display buffer spec for new historied marker behavior 2015-08-25 10:50:05 -07:00
Max Brunsfeld
5f7a0a32aa Merge pull request #8480 from jeremyramin/fix-config-get
Fix config.get for schemas with objects
2015-08-25 09:15:43 -07:00
Jeremy Ramin
1de707f2d7 Add tests to config spec
Add tests to check if the get command properly merges the stored values
with the defined defaults in the schema.

Two cases:
- Obj has no property changes.
- Obj has one or more changes to a property.
2015-08-24 17:00:09 -07:00
Max Brunsfeld
5c73e5a001 Add CommandRegistry::onDidDispatch 2015-08-24 14:10:02 -07:00
Jonathan Delgado
82a80cd732 Fixed openEmptyEditorOnStart fixture tabs 2015-08-24 10:32:56 -07:00
Jonathan Delgado
effd96f4bb Fix openEmptyEditorOnStart fixture 2015-08-24 10:31:37 -07:00
Jonathan Delgado
e5d7886097 Fix openEmptyEditorOnStart spec styling 2015-08-23 08:09:09 -07:00
Jonathan Delgado
86dfb50bec Added spec for openEmptyEditorOnStart 2015-08-23 08:07:19 -07:00
Max Brunsfeld
fb2a45d71d Merge pull request #8433 from atom/mb-bundle-line-ending-selector
Support bundling babel packages and bundle the line-ending-selector package
2015-08-21 17:45:10 -07:00
Max Brunsfeld
0dd19f3133 Remove 6to5 fixtures 2015-08-21 16:59:53 -07:00
Max Brunsfeld
a6fa098a8c Add CompileCache spec 2015-08-21 14:47:32 -07:00
Jess Lin
b5b8591a51 Destroy a TextEditor's Gutters when it is destroyed 2015-08-21 12:55:22 -07:00
Max Brunsfeld
1f64676189 🔥 Unnecessary joining and splitting 2015-08-21 12:14:10 -07:00
Nathan Sobo
dba53f3358 Merge branch 'master' into mb-bundle-line-ending-selector 2015-08-20 14:05:28 -06:00
Max Brunsfeld
070f4000f0 Replace 'use babel' -> '@babel' in comment directive 2015-08-20 11:58:46 -07:00
Max Brunsfeld
1bfbf7f9d3 Map line numbers in onerror handler w/ source-map-support 2015-08-20 11:58:45 -07:00
Max Brunsfeld
49e37f5410 Use source-map-support to handle stack trace conversion
Previously, our Error.convertStackTrace function was provided by coffeestack,
which only works for coffee-script. This adds a dependency on 'source-map-support',
which works for any source file with inline source maps.

This also refactors the code for registering our compilers (coffee-script,
typescript, and babel) so that caching logic is shared.
2015-08-19 17:55:29 -07:00
Nathan Sobo
55a0be9c81 Merge pull request #8377 from atom/ns-select-screen-lines-from-gutter
Select screen rows when click-dragging in gutter
2015-08-19 14:15:34 -06:00
Nathan Sobo
8ae3761cd7 Terminate selection drag on text input
On recent versions of OS X Yosemite, there is a delay before we receive
the `mouseup` event when dragging selections with the trackpad. This
means that we’re frequently accidentally inserting text before the
selection process terminates, leading to unexpected selections after the
text insertion. This fixes that behavior and makes the behavior more
straightforward even in the case where the mouse button is remains held
down during text insertion.
2015-08-19 13:44:17 -06:00
Max Brunsfeld
733c120ef7 Merge remote-tracking branch 'origin/master' into mb-bundle-line-ending-selector 2015-08-19 12:00:41 -07:00
Nathan Sobo
31bdd563ed Select by buffer row on gutter click, but by screen row on gutter drag 2015-08-19 12:46:20 -06:00
Nathan Sobo
3cf9238d79 Select screen rows when click-dragging in gutter
…Instead of entire buffer rows
2015-08-19 12:46:20 -06:00
Max Brunsfeld
e4b1d512cd Honor /** use babel */ in addition to 'use babel' 2015-08-18 17:32:11 -07:00
Thomas Johansen
22ca33a3b1 Extend ViewRegistry with support for objects with an element property
By adding this extension to ViewRegistry::getView we're paving the way for
Etch-like view frameworks which promotes the usage of plain objects and
classes with an element property which is an instance of HTMLElement.
2015-08-18 21:38:00 +02:00
Max Brunsfeld
7e197060bc Merge pull request #8025 from lpommers/copy-selection-to-clipboard
Copy selection command to only write to clipboard if text selected
2015-08-18 09:25:59 -07:00
Luke Pommersheim
e96d6f50ad 🎨 newlines fix 2015-08-18 18:22:18 +02:00
Luke Pommersheim
1a965edd00 🌷 spec more specific 2015-08-18 17:09:23 +02:00