Commit Graph

15132 Commits

Author SHA1 Message Date
Nathan Sobo
f4c45c1e39 Rename stable: true to avoidOverlay: false and fix tests
As part of the test fixes, I’m honoring the `autoscroll: false` option
in `insertText` and `insertNewline` to avoid inadvertently scrolling the
editor during tests when the editor is modified.
2016-11-28 12:45:05 -07:00
Mike J Innes
20545ad41d Update text-editor-presenter.coffee 2016-11-28 11:08:39 +00:00
Mike J Innes
e5ab835357 add stable option 2016-11-28 11:08:38 +00:00
Antonio Scandurra
c673362676 Merge pull request #13300 from atom/as-select-list-view
Include relatedTarget when dispatching blur events from editor elements
2016-11-28 09:44:28 +01:00
Damien Guard
f198a0fd71 Add support for cp850 Fixes #13342 2016-11-27 19:25:31 -08:00
Damien Guard
46b90d77e1 Rename windows866 to cp866, fixes atom/encoding-selector#36 2016-11-27 18:19:45 -08:00
Joe Fitzgerald
b2ff95caf4 Run shell as detached process
- Implement timeout
- Clean up running process if window is reloaded or Atom exits
2016-11-24 10:39:16 -07:00
Lukas Geiger
e64f50725b 👕 Fix lint error 2016-11-24 02:47:03 +01:00
Lukas Geiger
1c9336de21 Fix #12528 2016-11-24 01:45:33 +01:00
Antonio Scandurra
f160ccecd1 Include relatedTarget when dispatching blur events from TextEditorElement 2016-11-23 18:15:18 +01:00
Damien Guard
5d313cead7 Enable recent files, projects, new window task on Windows taskbar 2016-11-22 22:40:52 -08:00
Akonwi Ngoh
2a75e7d928 📝 Update documentation for ::getConfigValue
Adds the `key` argument to the function documentation
2016-11-21 11:57:35 -05:00
Christopher Chedeau
c8a398e6e9 Fix prepending multiple gutters at once
There's a bug when multiple gutters are prepended at once where their order is not correctly preserved in the dom. The issue is that we do not update indexInOldGutters even though we inserted a dom node in the old gutters dom.

Honestly, I'm unconvinced that this entire logic is correct, but this fixes the use case we have in Nuclide so it's more correct than before :)

Released under CC0
2016-11-19 12:22:59 -08:00
Nathan Sobo
5839647366 Revert "Forward compositionstart/end events to KeymapManager to avoid IME issues" 2016-11-16 08:53:53 -07:00
Nathan Sobo
3f788ebe7e Forward compositionstart/end events to KeymapManager to avoid IME issues 2016-11-15 13:14:21 -07:00
Ian Olsen
1917a33867 Merge pull request #13008 from atom/io-mru-ux-2
add new pane switch events for MRU UI
2016-11-15 11:20:42 -08:00
Joe Fitzgerald
f73aa46cef Fix lint errors 2016-11-14 17:09:01 -07:00
Joe Fitzgerald
c83e71cb9d Don’t detach child process, cleanup code 2016-11-14 17:02:12 -07:00
Joe Fitzgerald
3123a92687 🎨 Fix spec, cleanup 2016-11-14 16:29:13 -07:00
Joe Fitzgerald
d0a011e93a Fix specs, rename cp > child_process 2016-11-14 16:23:10 -07:00
Joe Fitzgerald
1b2d2f0299 Use child_process.spawn instead of execFile
- Fixes #13084
- Kill child process on process exit, if it is running
- Ensure env is set correctly when new windows are launched
2016-11-14 10:06:26 -07:00
Max Brunsfeld
cbe8300f2a Merge pull request #13202 from atom/mb-fix-resize-flicker
Fix flicker in soft-wrapped files when resizing editors
2016-11-11 13:37:12 -08:00
Max Brunsfeld
5509475173 Ensure presenter forces DisplayLayer computations when rendering
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-11-11 12:55:57 -08:00
Damien Guard
f3b5c5ad39 Merge branch 'master' into dg-windows-64bit 2016-11-11 12:49:03 -08:00
Max Brunsfeld
5ee3dbe7e0 Avoid redundant DisplayLayer resets in TextEditor.update 2016-11-11 12:03:38 -08:00
Antonio Scandurra
5f82b34a0e Merge pull request #13201 from atom/as-ns-get-model-shim-on-editor-hidden-input
Add a `getModel` method to editors' hidden input component
2016-11-11 19:44:44 +01:00
Antonio Scandurra
5a45461d60 Add a getModel method to editors' hidden input component
...to make it easy to access the editor in response to DOM events or
when using document.activeElement.

Signed-off-by: Nathan Sobo <nathan@github.com>
2016-11-11 19:38:54 +01:00
Antonio Scandurra
9176a6429f Add core:loaded-shell-environment activation hook
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-11-11 19:08:34 +01:00
Antonio Scandurra
e34bc188d0 Make updateProcessEnv asynchronous
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-11-11 18:39:18 +01:00
Farnabaz
a0529cc4bd fix text selection and cursor position in lines with rtl text
assume a line contain both english text and persian (rtl) text, like this
```
Sample Text متن نمونه sample text
```
atom always look at first rect size of Text Element and calculate position, this cause cursor to  place in wrong position
in our example `Range.getClientRects()` return three rects, look at this pen

http://codepen.io/farnabaz/pen/rWxrGW
2016-11-11 14:21:41 +03:30
Damien Guard
0d0a2ae7b1 Windows 64-bit version of Atom 2016-11-10 16:59:12 -08:00
Joe Fitzgerald
7dfc99989f Timeout when invoking the shell, log information to the console
- Partially addresses #13084
2016-11-10 14:23:24 -07:00
Lee Dohm
03fe5c343b Consistently use 'editor' in description 2016-11-06 11:30:03 -08:00
Lee Dohm
0a40019346 Add config schema for core.restorePreviousWindowsOnStart
Additionally updates the description for core.openEmptyEditorOnStart to
match.
2016-11-06 11:25:43 -08:00
Lee Dohm
6472f069af Improve core.openEmptyEditorOnStart description 2016-11-06 10:55:07 -08:00
Christopher Chedeau
089fa92117 Fix wrong binding on atom-environment.coffee
Context: I'm trying to run atom in the browser and have strict mode enabled and it threw on this line. We need it to be a fat arrow otherwise it's adding it to the window (or undefined in strict mode).
2016-11-03 16:04:17 -07:00
Nathan Sobo
4ce0f5c509 Merge pull request #13095 from atom/fb-vj-follow-through
Introduce follow through behavior for tooltips
2016-11-02 08:31:19 -06:00
Nathan Sobo
f293b80e60 Merge pull request #13124 from atom/ns-preseve-shadow-specificity
Preserve specificity when transforming atom-text-editor::shadow
2016-11-02 08:30:21 -06:00
Michelle Tilley
0846a2cdcc Default source map compiler to .js just like Node 2016-11-01 12:21:02 -07:00
Michelle Tilley
1a3ca35df3 Fix typo 2016-11-01 12:17:24 -07:00
Christopher Chedeau
6f5e0ec48a Introduce follow through behavior for tooltips
Inside of Nuclide, we have multiple places where we have multiple icons close together that have a tooltip: the left toolbar, the bottom status bar, the debugger icons...

The current behavior is very frustrating as you've got to wait for the delay on every single one of them. But, we have a clear signal that the user wants a tooltip when s/he waits the time to see it and it's likely that moving the mouse over the next item quickly means that s/he wants to see it as well.

This pull request introduces the concept of follow through: if you have seen a tooltip, you're going to instantly see tooltip on the next element you mouse over within a short timer (300ms right now).

Test Plan:
Video before:
![](http://g.recordit.co/7PCg0hjohP.gif)

Video after:
![](http://g.recordit.co/9OnZCvy9oI.gif)

Released under CC0
2016-11-01 11:35:06 -07:00
Michelle Tilley
55a8be5a6c Don't modify original transpiler specs 2016-11-01 11:32:33 -07:00
Michelle Tilley
94f603e50a Pass package info to transpilers 2016-11-01 10:54:26 -07:00
Nathan Sobo
4ccd700871 Preserve specificity when transforming atom-text-editor::shadow
Simply replace ::shadow with .editor to preserve the specificity of the
transformed rule. This isn't beautiful, but it's the only way to
guarantee that the styling transition is smooth enough to justify not
bumping the major.
2016-11-01 11:23:29 -06:00
Michelle Tilley
de9ca2d4d5 Merge pull request #13101 from atom/mkt-package-specific-transpilation
Per-package transpilation
2016-11-01 09:58:02 -07:00
Michelle Tilley
cb959f33d6 👕 2016-11-01 09:55:37 -07:00
Michelle Tilley
f2ee0f01f5 Modernify PackageTranspilationRegistry 2016-11-01 08:55:40 -07:00
Michelle Tilley
2d3afb431c Include package name as part of cache key 2016-10-31 23:21:13 -07:00
Michelle Tilley
ef5897e72b 👕 2016-10-31 19:57:09 -07:00
Michelle Tilley
5c885e6947 We don't want no node_modules 2016-10-31 16:53:24 -07:00