Max Brunsfeld
decab183b7
Fix screen/buffer range error in paragraph cursor motions
2015-04-03 10:34:21 -07:00
Antonio Scandurra
b3bdad084f
Always mutate selections in order
2015-04-02 16:35:26 +02:00
Antonio Scandurra
44d88e082c
🐛 Always copy selections in order
2015-04-02 16:28:22 +02:00
Max Brunsfeld
230eb12a8a
Fix double autoscroll when moving cursor
2015-03-27 10:27:24 -07:00
Nathan Sobo
ae4f7f6170
Explicitly autoscroll when needed
...
Rather than when the selection’s marker changes. This is simpler than
suppressing autoscroll via state when we don’t want it. It also captures
the intent to autoscroll when attempting to move the cursor at the
beginning or end of the document.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 16:48:24 -06:00
Nathan Sobo
99c437ccec
Allow autoscroll override option in cursor/selection methods
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 16:48:21 -06:00
Nathan Sobo
10458a5b45
Always autoscroll when the range of the last selection changes
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 15:30:53 -06:00
Max Brunsfeld
2f5d975338
Remove autoscroll-related legacy editor view support
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-03-26 11:12:37 -07:00
Nathan Sobo
010154f802
Merge pull request #5959 from atom/as-fix-select-above-below
...
Use screen ranges to select above and below
2015-03-16 11:26:54 -06:00
Antonio Scandurra
6633c90af8
Use buffer ranges when merging selections
2015-03-14 10:05:04 +01:00
Antonio Scandurra
0a23a21953
🎨 Get rid of goalBufferRange
2015-03-14 09:48:19 +01:00
Antonio Scandurra
bfe8f7c740
Fix soft-wrapping specs
2015-03-14 09:26:35 +01:00
Antonio Scandurra
8ac4848805
Skip soft-wrap indentation tokens while selecting
...
* 🎨 Restructure specs a bit
* ✅ Write specs for this new behavior
2015-03-13 12:05:18 +01:00
Antonio Scandurra
c319b80464
✅ Write specs for atomic tokens
2015-03-13 11:56:00 +01:00
Antonio Scandurra
02ad2e8ff7
✅ Write specs for soft-wrapped lines selection
2015-03-13 11:32:42 +01:00
Antonio Scandurra
2b98192276
Destroy only containing folds on selection
2015-03-11 16:16:45 +01:00
Nathan Sobo
c9ce9f41c2
Merge pull request #5567 from as-cii/indent-soft-wrap
...
Indent soft wrap
2015-02-25 19:06:35 -07:00
Max Brunsfeld
88c2cef91f
Make :checkout-head-revision command work w/ multiple repos
2015-02-24 15:30:04 -08:00
Antonio Scandurra
59cc10a1ee
Bring in @nathansobo PR changes
...
...as they were needed to pass specs
2015-02-19 21:09:06 +01:00
Antonio Scandurra
79c16a0d00
Use softWrapAtNewLines in moveDown and moveUp
...
/cc: @nathansobo
2015-02-19 20:01:37 +01:00
Antonio Scandurra
bef1e862cc
✅ Fix failing specs (and add new ones)
...
When fixing failing specs, I adapted existing expectations to match the "soft
wrap indenting" behaviour: this means that there's no need to write a new spec
for it.
2015-02-18 21:20:04 +01:00
Max Brunsfeld
528267b7d7
Preserve relative indentation of pasted lines when auto-indenting
2015-01-22 08:34:20 -08:00
Russell Lescai
c538857cfa
Removed unnecessary braces.
2015-01-15 08:57:25 +10:30
Russell Lescai
6716e544f0
Fix spec it function.
2015-01-14 15:07:42 +10:30
Russell Lescai
2f3a9c9e35
Updated js scope selector.
2015-01-14 14:08:23 +10:30
Russell Lescai
3d1baaf3f3
Added spec. Changed argument order for config get/set.
2015-01-14 13:46:21 +10:30
Lee Dohm
acb19c1fe1
Log scopes to notification instead of console
...
Fixes #4969
2015-01-09 16:33:48 -08:00
Max Brunsfeld
a1b4820c04
Revert "Revert "Merge pull request #4631 ""
...
This reverts commit dc2a453986
.
Conflicts:
spec/config-spec.coffee
src/config.coffee
2014-12-23 09:26:40 -08:00
Kevin Sawicki
b5632b6988
Verify TextEditor::onDidChangeGrammar in specs
2014-12-23 09:08:57 -08:00
aershov
8148446a86
Remove unused variable from text-editor-spec
2014-12-23 02:24:30 +03:00
aershov
5c7177746c
Remove unused variable and extra newline from text-editor-spec
2014-12-23 00:26:38 +03:00
aershov
229e7e03b2
Respect initialLine and initialColumn options when reopening a file
...
Fix #1743
2014-12-21 21:08:18 +03:00
Max Brunsfeld
dc2a453986
Revert "Merge pull request #4631 from atom/mb-new-config-api"
...
This reverts commit 5147fb6a8b
, reversing
changes made to 9bbbb58084
.
2014-12-16 15:27:39 -08:00
Nathan Sobo
c489a4662b
Make scopeSelector a trailing option to Config::set
2014-12-16 14:00:56 -08:00
Kevin Sawicki
d581c41c0e
Update spec since { lines now outdent in JS
2014-12-11 16:35:21 -08:00
Max Brunsfeld
a6f31ed791
Pass event to Cursor::onDidChangePosition callbacks
2014-12-09 17:21:03 -08:00
Kevin Sawicki
a5b7d15bcc
Remove screen line logging from spec
2014-12-01 08:39:09 -08:00
Nathan Sobo
2a00acfdaf
Remove call to begin/commitTransaction in text-editor-spec
2014-11-27 11:58:38 -07:00
Ben Ogle
aefc647155
Use normalizeLineEndings: false hash
2014-11-26 14:55:39 -08:00
Max Brunsfeld
b374c1a11a
Preserve 1st line's leading whitespace on paste
2014-11-22 09:43:23 -08:00
Nathan Sobo
d53d01d95b
Replace atom.syntax with atom.grammars
2014-11-20 11:42:49 -07:00
Max Brunsfeld
0ca9d7b97e
Remove the normalizeIndentOnPaste
setting. Always do it.
2014-11-19 09:13:30 -08:00
Max Brunsfeld
270642b2ea
Add special paste behavior when copying/cutting w/ no selection
2014-11-18 18:58:25 -08:00
Max Brunsfeld
7c43ea7a0f
Restore correct indent behavior when inserting newlines
...
When explicitly auto-indenting and when pasting, indentation is based
on the previous non-blank line. When simply inserting newlines,
the previous line is used, even if it is blank.
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-18 17:27:43 -08:00
Max Brunsfeld
e34eb151ca
Respect 'normalizeIndentOnPaste even w/ multiple selections
2014-11-17 19:24:37 -08:00
Max Brunsfeld
4ee1987af4
Don't rely on clipboard metadata format in editor specs
...
In order to fix indent-normalization with multiple selections,
I want to change the format of this metadata
2014-11-17 19:23:02 -08:00
Max Brunsfeld
c4eecbb380
💄
2014-11-17 17:47:22 -08:00
Max Brunsfeld
24432018ec
Reorganize editor auto-indent specs
2014-11-17 16:59:57 -08:00
Max Brunsfeld
5ec38f84c5
Reorganize editor normalizeIndentOnPaste specs
2014-11-17 16:59:56 -08:00
Max Brunsfeld
c6c58ebc3e
Remove extra blank line
2014-11-17 11:00:24 -08:00