Commit Graph

15145 Commits

Author SHA1 Message Date
Damien Guard
eebc81f6ea Version is used for release channels on windows 2017-02-08 23:24:54 -08:00
Nathan Sobo
c6cae5b8fd Store represented directory paths directly on AtomWindow in main process
Fixes #13729

Previously, when adding a window, we were unable to read its current
project paths out of the hash of the URL during window initialization
because the window still considered itself to be loading. Rather than
fixing this issue, we decided to completely eliminate the sharing of
state between processes in the window.location and instead switch to
cached synchronous RPC for the loadSettings and a dedicated RPC-based
mechanism for the project paths.
2017-02-07 13:15:27 -07:00
undefined
14348855ef Show first project path as window title if no pane items are open
Fixes #13647.

This restores the behavior we had prior to #13475 when there are no pane
items while preserving its improved behavior for paths outside of the
current project.
2017-02-06 16:02:20 -07:00
Lee Dohm
00d68c0d76 📝 🔥 broken TextEditorElement link 2017-02-06 07:53:29 -08:00
Damien Guard
83266c7486 Revert "Normalize disk drive letter in path on Windows" 2017-02-06 07:10:18 -08:00
Damien Guard
f3468d2955 Merge pull request #13725 from hron/normalize-disk-drive-letter
Normalize disk drive letter in path on Windows
2017-02-04 17:51:40 -08:00
Aleksei Gusev
ae76925926 Normalize disk drive letter in path on Windows
Currently atom creates two buffers for the same file if passed
paths use difference case for disk drive letter,
e.g. d:\file.txt and D:\file.txt
2017-02-01 18:32:08 +03:00
Lee Dohm
7e7224c670 Merge pull request #13563 from shreyasminocha/master
Updated documentation about keys outside config schema
2017-01-27 18:13:23 -08:00
Ian Olsen
1cabda53fc Merge pull request #13657 from atom/io-close-deleted-tabs-option
Add option for closing deleted file tabs
2017-01-25 15:00:07 -08:00
Antonio Scandurra
e49ac783f8 Fix infinite recursion when calling getLastSelection from onDidAddCursor 2017-01-24 12:18:09 +01:00
Damien Guard
50f49cf794 Honor removing projects from the Windows jump list 2017-01-23 20:54:25 -08:00
Lee Dohm
88a190532c Merge pull request #13680 from Down10/patch-1
Add description text to the File Encoding list
2017-01-23 16:34:01 -08:00
Jesse Burgheimer
3615f500d9 Update config-schema.js
Caught a typo.
2017-01-23 11:45:44 -08:00
Jesse Burgheimer
eec0d7263d Sorted the list by description titles
I kept the Chinese entries together, however.
2017-01-23 11:43:32 -08:00
Antonio Scandurra
c5fbb79ac9 Merge pull request #13668 from atom/as-dont-throw-exception-for-malformed-css
Don't transform deprecated selectors containing malformed CSS
2017-01-23 13:36:23 +01:00
Jesse Burgheimer
379d045095 Added description text to the File Encoding list
I updated the list of text encodings that appear in the Settings configuration menu to properly reflect the code pages supported by [encoding-selector](https://github.com/atom/encoding-selector), as well as present descriptive text in the selection menu.

In the process, I removed what appeared to be a duplicate entry ('iso88597').

Note: I don't know if this change will affect the functionality of the menu, but I presume a more experience coder can figure this out.
2017-01-22 23:50:01 -08:00
Ian Olsen
22a881323c Move shouldDestroyBufferOnFileDelete callback to TextBuffer constructor
Also add setting the callback to buffers created via deserialization.
2017-01-20 13:52:49 -08:00
Nathan Sobo
82741c7cac Merge pull request #13664 from atom/fb-as-show-cursor-on-selection
Add showCursorOnSelection config
2017-01-20 14:07:21 -07:00
Antonio Scandurra
93f2e34ded Don't transform deprecated selectors containing malformed CSS 2017-01-20 15:09:57 +01:00
Andres Suarez
1ee9d7b0f9 Add showCursorOnSelection config 2017-01-20 08:53:28 -05:00
Antonio Scandurra
1af1400911 Fix increasing/decreasing font size via ctrl-mousewheel
This regression was introduced with the removal of the shadow DOM from
`<atom-text-editor>` elements. Previously we were relying on Chrome
always reporting `<atom-text-editor>` as the mousewheel `event.target`.
As a result, removing the shadow boundary caused the mousewheel event to
be potentially dispatched from anywhere inside the editor element,
making our previous logic for handling ctrl-mousewheel invalid. This
commit fixes it by recognizing mousewheel events that are dispatched
from within an editor.
2017-01-20 13:53:49 +01:00
Damien Guard
d50b56b6a1 Add title for proxy settings config 2017-01-19 18:55:04 -08:00
Damien Guard
30b53d5991 🎨@ 2017-01-19 15:59:29 -08:00
Damien Guard
9db39a6bfd Merge pull request #13662 from atom/dg-delayed-start-buffered-process
Allow a BufferedProcess to be manually started
2017-01-19 15:07:04 -08:00
Ian Olsen
dcbd839059 Tell text-buffer to ask about destroying buffers for deleted files 2017-01-19 14:11:41 -08:00
Damien Guard
6dd6f171c2 Allow a bufferdprocess to be manually started 2017-01-19 13:30:39 -08:00
Ian Olsen
d3066f0e3b Added option for closing deleted file tabs 2017-01-18 16:36:41 -08:00
Ian Olsen
d2b97e1043 Merge branch 'master' into io-state-connected-flag 2017-01-18 16:16:21 -08:00
Ian Olsen
66ae68828e Make stateStore.isConnected a method 2017-01-18 15:57:35 -08:00
Nathan Sobo
3aa773b700 Merge pull request #13654 from atom/ns-increase-max-listeners
Increase max listener limit on ipcRenderer
2017-01-18 13:28:51 -07:00
Nathan Sobo
a4dc088ceb Increase max listener limit on ipcRenderer
We deliberately assign more than 10 listeners on the method response
channel.
2017-01-18 11:34:59 -07:00
Max Brunsfeld
a57b627a58 Re-throw package activation exceptions in test mode 2017-01-18 10:19:25 -07:00
Ian Olsen
64f53ee2db Check whether state store is connected when prompting to save files 2017-01-17 16:15:12 -08:00
Damien Guard
5568bd1a06 Merge pull request #13600 from atom/dg-setting-to-apply-proxies-to-apm
Setting for settings-view to apply Chromium proxies to apm via env vars
2017-01-17 11:08:35 -08:00
Damien Guard
623caaf85d Merge pull request #13605 from atom/dg-correct-portable-path-windows
Correct the portable path location on Windows
2017-01-14 09:35:27 -08:00
Michelle Tilley
1fef2fa866 Merge pull request #13604 from atom/mkt-ku-fix-render-process-crash-handler
Ensure a dialog is not opened when webContents crash in headless mode
2017-01-13 10:58:49 -08:00
Damien Guard
9648d8b82f Correct the portable path location on Windows 2017-01-12 16:04:02 -08:00
Michelle Tilley
05f58a432b Ensure a dialog is not opened when webContents crash in headless mode 2017-01-12 14:45:38 -08:00
Nathan Sobo
76d84a7890 Handle multiple selections intersecting a line in duplicateLines 2017-01-12 13:38:19 -07:00
Damien Guard
fbb5482b91 Merge pull request #13599 from atom/dg-add-hash-to-quoted-command-escaping
Add # to chars that cause quote escaping for commands
2017-01-12 09:24:04 -08:00
Wliu
4c2e2203e0 🔥 unused getPixelRect function 2017-01-12 11:28:02 -05:00
Damien Guard
8684bca708 Add # to chars that cause quote escaping for commands 2017-01-11 22:56:53 -08:00
Damien Guard
0560015e05 Setting for settings-view to be able to apply Chromium proxies to env vars for apm automatically 2017-01-11 22:50:15 -08:00
Nathan Sobo
c3ac59a617 Merge pull request #13583 from atom/ns-skip-periodic-serialization-of-huge-buffers
Disable periodic serialization for buffers > 2MB
2017-01-11 11:27:05 -07:00
Christopher Chedeau
ef7ce7cd3a Always reserve two digits on the line number gutter
We are working on a feature that changes the content of the editor when you mouse over some things and it makes the UI jump when going from 1 line to > 10. This makes the UI feel really bad.

I've looked at Sublime and the 1-9 state is the same as 1-99, only when you reach 100 lines then it jumps. I think that it is a better behavior as you want to minimize jumps as much as possible and it is extremely likely that you are going to hit the 9-10 lines threshold.

![](http://g.recordit.co/ABIlZf5eTx.gif)

While this is being reviewed and until the new version shipped, we are going to monkeypatch Atom in order to get this feature.

```js
var presenter = atom.textEditors.editors.entries().next().value[0].presenter.__proto__;
var old_updateLineNumberGutterState = presenter.updateLineNumberGutterState;
presenter.updateLineNumberGutterState = function() {
  var res = old_updateLineNumberGutterState.apply(this, arguments);
  this.lineNumberGutter.maxLineNumberDigits = Math.max(2, this.lineNumberGutter.maxLineNumberDigits);
  return res;
};
```

Released under CC0
2017-01-10 18:14:50 -08:00
Nathan Sobo
dea7cc23e3 Disable periodic serialization for buffers > 2MB
Writing so much data to IndexedDB is blocking the main thread for
perceptible amounts of time. A patch-based representation of the
modified state could allows us to pay only for what has changed, but is
too complex to justify implementing right now to support full crash
recovery for large files.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2017-01-10 15:55:36 -07:00
Max Brunsfeld
6dd35ec9d5 Merge pull request #13564 from vovkasm/fix-12495
Save initial paths immediately on change
2017-01-09 11:29:32 -08:00
Nathan Sobo
730c7c82a8 Don't add pane items in built-in resource openers
Calling `workspace.open` in an opener doesn't work properly with options
like `split: left` because it causes the opened item to be added to the
workspace as a side-effect. Since workspace openers are intended to be
used during the process of calling `workspace.open`, we need to use
`openTextFile`, which just creates an editor but does not attach it to
the workspace.
2017-01-09 10:57:31 -07:00
Shreyas Minocha
18ad5d0286 updated documentation about keys outside config schema 2017-01-07 12:34:12 +05:30
Vladimir Timofeev
a21841e5f3 Merge commit '1320ff28c39afd563820b30b43389ea38552e74c' into fix-12495 2017-01-07 01:19:50 +03:00