Commit Graph

11824 Commits

Author SHA1 Message Date
Max Brunsfeld
fde693eab9 Merge pull request #6707 from atom/mb-dont-persist-window-modes
Don't persist dev/safe/api-preview mode settings of windows
2015-05-08 12:35:33 -07:00
Max Brunsfeld
b8cd0a0628 Don't persist dev/safe/api-preview mode settings of windows 2015-05-08 11:21:36 -07:00
Nathan Sobo
0d310c767f Splice in new DisplayBuffer lines in chunks to avoid stack overflows 2015-05-08 19:23:45 +02:00
Kevin Sawicki
523171061b Stop resize if detached or if siblings are missing
Closes #6630
2015-05-07 16:26:18 -07:00
Max Brunsfeld
4f7ad3f045 Merge pull request #6690 from atom/mb-reopen-windows-from-command-line
Make 'atom' command w/ no args reopen previous windows
2015-05-07 15:24:13 -07:00
Kevin Sawicki
d595cdb8e9 Merge pull request #6656 from jgebhardt/bump-react
Remove babel compatibility option for legacy React versions
2015-05-07 13:26:36 -07:00
Kevin Sawicki
b7dddeebfe Guard against no hosted git info
Closes #6693
2015-05-07 13:24:03 -07:00
Max Brunsfeld
5b8262bd96 🐎 Avoid repeated array allocation in ::getDecorations 2015-05-07 12:56:29 -07:00
Max Brunsfeld
4300ba6bb3 Make 'atom' command w/ no args reopen previous windows 2015-05-07 11:35:16 -07:00
Kevin Sawicki
a847b4cc65 Merge pull request #6640 from atom/iz-fix-0-in-command-line-initial-row
Allow 0 to be passed as initialLine when opening files via command line
2015-05-06 10:26:43 -07:00
Kevin Sawicki
61a0927b26 Use apiPreviewMode value when running specs 2015-05-06 09:56:32 -07:00
Jonas Gebhardt
bc1f190c2f remove babel compatibility option for legacy react versions 2015-05-05 11:22:14 -07:00
Jessica Lord
1e99a21547 Merge pull request #6602 from atom/jl-remove-completions
Remove Completions from Settings
2015-05-04 20:43:04 -07:00
Jessica Lord
b12126a628 Revert "Just remove default, leave type"
This reverts commit 81075739d5.
2015-05-04 14:16:20 -07:00
Ivan Zuzak
70bd04f7df Allow 0 to be passed as initialLine 2015-05-04 13:36:18 +02:00
Antonio Scandurra
682167c439 Merge branch 'master' into as-cleaner-presenter-batch 2015-05-04 09:33:58 +02:00
Jessica Lord
81075739d5 Just remove default, leave type 2015-05-01 13:19:07 -07:00
Jessica Lord
7ec14b5be5 Remove completions from Settings 2015-05-01 11:45:38 -07:00
Jessica Lord
1d69d83410 Merge pull request #6582 from atom/jl-short-url-redo
Normalize short urls for repositories in package.json
2015-04-30 15:00:05 -07:00
Max Brunsfeld
570c424eae Merge pull request #6563 from atom/ns-fix-scroll-width-with-folds
Fix scroll width calculation when longest line is folded
2015-04-30 14:26:34 -07:00
Jessica Lord
4771435b84 Only normalize short urls 2015-04-30 11:41:57 -07:00
Jessica Lord
9dfd1ac5aa Normalize repository short urls 2015-04-30 11:22:52 -07:00
Kevin Sawicki
c347b41c55 Merge pull request #6539 from atom/mq-reset-font
Reset font size to window's starting font size
2015-04-30 10:50:43 -07:00
Lee Dohm
08a615eec3 Fix up docs with Extended tag and rewording 2015-04-29 18:40:16 -07:00
Lee Dohm
70a8b54e50 Delete bad merge artifacts and reword docs 2015-04-29 18:27:09 -07:00
CaptSaltyJack
a8283c3c9b Added delete-to-next/previous-word-boundary
This is better behavior for alt-del/backspace operations, is less
"greedy" and doesn't eat up excess characters.
Also set default key mappings to these, feel free to trash my changes
to keymaps/darwin.cson. Though I do feel this should be default
behavior, personally.
2015-04-29 16:31:07 -07:00
Ben Ogle
68a6af4873 Merge pull request #6572 from atom/bo-measure-gutter
Measure gutter width rather than calculating the width
2015-04-29 16:13:03 -07:00
Ben Ogle
41143c7801 Default gutterWidth to 0 in the presenter. 2015-04-29 15:54:55 -07:00
Ben Ogle
d3ef6c91af Measure gutterWidth, and pass to presenter 2015-04-29 15:47:44 -07:00
Kevin Sawicki
a13c49d679 Merge pull request #6570 from jssln/gutter
[Gutter] Clear custom gutter decorations from previous usages of a custo...
2015-04-29 14:26:28 -07:00
Kevin Sawicki
c95d6b2c60 Catch wmic spawn errors 2015-04-29 09:20:22 -07:00
Kevin Sawicki
63bfee1096 Use the command ivar 2015-04-29 09:20:21 -07:00
Kevin Sawicki
a9806d63eb Check for process from within handleEvents 2015-04-29 09:20:21 -07:00
Kevin Sawicki
78d2c868f7 Assign process ivar from within spawn 2015-04-29 09:20:21 -07:00
Kevin Sawicki
96f0916ddd Add missing l 2015-04-29 09:20:21 -07:00
Kevin Sawicki
920def7eb0 Add spec for thrown spawn error 2015-04-29 09:20:21 -07:00
Kevin Sawicki
fd84c5ff04 Extract handle events helper 2015-04-29 09:20:21 -07:00
Kevin Sawicki
99e40a788b Handle errors thrown by child_process.spawn 2015-04-29 09:20:21 -07:00
Kevin Sawicki
a67d9615a8 Extract error handling helper 2015-04-29 09:20:21 -07:00
Kevin Sawicki
213e6fd611 Check process before killing 2015-04-29 09:20:21 -07:00
Jess Lin
5e766b6eee [Gutter] Clear custom gutter decorations from previous usages of a custom gutter element 2015-04-29 08:53:04 -07:00
Antonio Scandurra
e1d5485516 🎨 2015-04-29 09:16:46 +02:00
Antonio Scandurra
611ede4cc9 🔥 Remove @batch from TextEditorPresenter
Please note that we will preserve the batching behavior but we will now simply
use booleans to track functions that ought to be called during `@getState`.

This (hopefully) expresses intent better, drawing a clear line between batched
functions and "realtime" ones.
2015-04-29 09:08:11 +02:00
Antonio Scandurra
319d54782a Reset shouldUpdate... variables 2015-04-29 09:08:11 +02:00
Antonio Scandurra
110e73da87 🎨 Use booleans to track batched functions 2015-04-29 09:08:11 +02:00
Antonio Scandurra
cb712fa9d3 🎨 Start refactoring batched operations 2015-04-29 09:07:45 +02:00
Nathan Sobo
1d238dd927 Fix scroll width calculation when longest line is folded
With the presenter we started clipping screen positions prior to
translating them to pixel positions. This interacts with the current
clipping behavior on folded lines (which should change) where the cursor
is always clipped to 0. So when the longest line was also folded we
were miscalculating the width. 🙈!

The removal of clipping also causes us to calculate the width based on
the trailing whitespace of soft-wrapped lines, which I actually think
is an improvement but it is slightly different.
2015-04-28 23:30:13 -06:00
Machiste Quintana
a76205256d Only need oldValue 2015-04-28 23:09:31 -04:00
Machiste Quintana
2bd7cc9a99 Reset font size if editor.fontSize is changed from anywhere 2015-04-28 22:58:35 -04:00
Nathan Sobo
192997c8cf Clear line numbers from previous usages of the gutter element
In adding custom gutter APIs, I suggested to @jssln that we associate
the gutter model objects with DOM nodes in the view registry to make
it easy for package authors to get at the view layer for a particular
gutter. She also applied this treatment to the line numbers gutter,
which makes sense.

However, using the view registry opened up an unexpected wrinkle…

When you detach an editor, we need to tear down all the associated view
logic because at that point, we don’t know whether the element is about
to be reattached or whether it’s going to get garbage collected. In the
case where we reattach, we end up constructing a new TextEditorComponent
for the element. When this happens, the gutter component requests a DOM
node for the gutter from the view registry. Except in this case the
DOM element isn’t empty because it was already used by a different
component for the same element before it was detached. The fix is simply
to always clear out the line numbers to ensure we start in a clean
state.

@jssln: You should apply this same fix to custom gutters or we’ll see
the same issues.
2015-04-28 20:05:25 -06:00