Max Brunsfeld
ebc9a6bf51
Don't auto-indent current line when pasting after non-whitespace characters
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2014-11-17 08:53:14 -08:00
Max Brunsfeld
c8ad232c31
Respect the editor.autoIndent option when pasting
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2014-11-17 08:52:51 -08:00
Ben Ogle
693fd43449
Fix resetting scoped config defaults
...
It would write an empty object for the parent key when there were no
other objects in the parent key.
Closes #4175
2014-11-14 15:11:43 -08:00
Nathan Sobo
7f326421d7
Upgrade existing selectors after attaching atom-styles element
...
Style elements don’t have a .sheet property until they are actually
attached to the DOM.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-13 16:04:57 -08:00
Nathan Sobo
3546f21af7
Spy on console.warn to prevent spamming in the specs
2014-11-13 16:04:57 -08:00
Nathan Sobo
441dcfb56a
Add specs for atom-text-editor shadow DOM selector upgrades
...
And cover one more case with `.editor` plus pseudo-classes
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-13 16:04:57 -08:00
Nathan Sobo
b6b6b6d12b
Add ‘mini’ attribute to TextEditorElement if .isMini() is true on model
2014-11-13 16:04:57 -08:00
Ben Ogle
e596bf6ef9
Merge pull request #4144 from atom/bo-overlay-decoration
...
Overlay decorations
2014-11-12 15:02:40 -08:00
Ben Ogle
2e7e90a8aa
Update spec names
2014-11-12 14:43:26 -08:00
Ben Ogle
eae80ca46d
Add a check for negative bounds when translating the overlay
2014-11-12 11:50:22 -08:00
Max Brunsfeld
3521b96611
Don't select the copied line when copying with no selection
2014-11-12 10:12:26 -08:00
Kevin Sawicki
7abfd45baf
Default to using hard tabs in Makefile files
...
This is a temporary solution until scoped settings supports this
type of restriction.
Closes atom/language-make#3
2014-11-12 09:31:12 -08:00
Ben Ogle
9acea88101
Change verbiage in spec names
2014-11-11 15:52:44 -08:00
Ben Ogle
b29c0ca2f7
nof
2014-11-11 15:52:21 -08:00
Ben Ogle
a4a3577163
💄
2014-11-11 15:50:34 -08:00
Ben Ogle
9dfaa8a4e5
Add bounds checking for overlay decorations
2014-11-11 15:46:27 -08:00
Ben Ogle
661b09ab1c
Don’t need this
2014-11-11 15:45:57 -08:00
Nathan Sobo
9875b069bc
Merge pull request #4152 from atom/ns-highlight-region-classes
...
Add private API for adding classes to highlight regions for backward compatibility
2014-11-11 15:20:47 -07:00
Ben Ogle
9399e00033
Properly display when a marker is reversed
2014-11-11 13:32:13 -08:00
Ben Ogle
307108ec6c
Specs for positioning the overlay decorations
2014-11-11 13:08:05 -08:00
Ben Ogle
0bb173b646
Add spec for creation and removal of overlay
2014-11-11 11:25:36 -08:00
Max Brunsfeld
1474aa2116
Merge pull request #4148 from atom/mb-cut-line
...
Cut whole lines when no text is selected
2014-11-11 11:13:51 -08:00
Nathan Sobo
2de8046f99
Add deprecatedRegionClass option to highlight decorations
...
This adds a class to each of the contained regions so we can make
existing bundled packages backward-compatible with themes.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-11 12:11:26 -07:00
Max Brunsfeld
7a87c22c7d
Cut/copy whole lines when no text is selected
...
Closes #3643
2014-11-11 10:02:17 -08:00
Kevin Sawicki
5946590a66
Add spec for default file encoding
2014-11-11 09:47:34 -08:00
Max Brunsfeld
3c800b00f5
Always re-render scrollbars after themes load/reload
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2014-11-10 17:59:41 -08:00
Nathan Sobo
57f85e1720
Add regression coverage for “hidden pane item after dragging” bug #4112
...
Refs bad0504e1d
2014-11-10 15:55:21 -07:00
Kevin Sawicki
f4ced3b078
Autoscroll when selecting the entire line
...
Closes #4032
2014-11-10 14:51:03 -08:00
Ben Ogle
af052c79a7
nof
2014-11-10 13:32:58 -08:00
Ben Ogle
6159209d49
moveItemTo* -> moveItem*
2014-11-10 13:28:15 -08:00
Ardeshir Javaherchi
5e3b88f42d
Add another test for moveItemToLeft
2014-11-10 11:25:17 -08:00
Ardeshir Javaherchi
a0e4d8b582
✅ Add test for reordering tabs in linux
2014-11-10 11:25:17 -08:00
Nathan Sobo
832e7113f7
Include all inline commands on the bubble path in ::findCommands
2014-11-10 10:10:52 -07:00
Max Brunsfeld
0c40a1ef92
Include inline commands in command palette
2014-11-10 10:09:24 -07:00
Nathan Sobo
efd3329c50
Prompt to save modified items when closing a pane via pane:close
...
Fixes #4094
2014-11-10 07:55:37 -07:00
Nathan Sobo
481e444ffe
Reassign context to undefined because CoffeeScript needs a var keyword
...
Fixes #4100
2014-11-07 18:00:38 -07:00
Nathan Sobo
6934b83acc
Fall back to first pane if activePaneId is invalid
...
When deserializing PaneContainer.
Fixes #4069
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-07 15:44:59 -07:00
Max Brunsfeld
003c101f14
W/o shadow-dom, don't add global atom-styles element for text editor
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2014-11-07 13:05:46 -08:00
Max Brunsfeld
98d602628a
Render all stylesheets in atom-styles elements without contexts
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2014-11-07 12:56:32 -08:00
Max Brunsfeld
d97c81bf6a
Make undo grouping interval configurable
2014-11-06 09:25:10 -08:00
Max Brunsfeld
d85c07e7e2
Don't wrap undo/redo calls in transactions
2014-11-05 16:59:06 -08:00
Max Brunsfeld
e7eef89fa5
Remove TextEditor::withGroupingInterval
...
Just use ::transact
2014-11-05 15:58:13 -08:00
Max Brunsfeld
5437236304
Use undo grouping in editor command listeners
2014-11-05 15:58:13 -08:00
Max Brunsfeld
b7aa421e4e
Add TextEditor::withGroupingInterval
...
This method temporarily instructs the editor to apply undo grouping with
a given interval. This way, undo grouping can be made optional without
adding optional arguments to every buffer manipulation method.
2014-11-05 15:58:12 -08:00
Ben Ogle
9458db0c1f
Fix issue removing panels
2014-11-05 15:37:47 -08:00
Nathan Sobo
e1d6d55311
Enable editor.useShadowDOM in all specs
2014-11-04 16:37:28 -07:00
Nathan Sobo
670a710753
Test editor focus/blur handling with shadow DOM enabled/disabled
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-04 16:37:28 -07:00
Nathan Sobo
dd1e5338c6
Focus the root TextEditorElement in spec instead of component node
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-04 16:37:28 -07:00
Ben Ogle
4537e9bd1a
Fix specs
2014-11-04 16:37:27 -07:00
Nathan Sobo
dd4e7d6921
Wait for promise resolution on all calls to activatePackage
...
This avoids a race condition where stylesheets would be added after all
packages were deactivated and leak into the next spec.
2014-11-04 16:37:26 -07:00