Michael Bolin
bb8f114dcb
Remove an unnecessary call to then().
...
I see that this file has a little use of async/await and many uses of `then()`.
Things would be much less verbose and much more linear if async/await were used throughout.
Would Atom be open to a PR that changes this?
For bonus points, we could also replace `'use babel'` with `/* @flow */` at the top of the file :)
2016-03-18 09:56:33 -07:00
Antonio Scandurra
bbcbe9e809
Implement ratioForCharacter
2016-03-18 14:58:13 +01:00
Antonio Scandurra
3c70ff92f4
💚 Add TextEditor.prototype.screenLineForScreenRow
...
This is going to supplant our internal usage of
TextEditor.prototype.tokenizedLineForScreenRow().
2016-03-18 14:26:29 +01:00
Antonio Scandurra
d1306ae944
Remove invisibles handling from TokenizedBuffer
2016-03-18 14:09:52 +01:00
Antonio Scandurra
d666e4c008
Fix lastScreenRowForBufferRow
...
…which was mistakenly translating screen positions to buffer positions,
and not vice versa.
2016-03-18 11:48:52 +01:00
Antonio Scandurra
5fc699f791
Use intersecting folds when duplicating lines
2016-03-18 11:44:23 +01:00
Antonio Scandurra
d86309e46b
Use DisplayLayer.prototype.foldBufferRange in Selection.prototype.fold
2016-03-18 11:33:29 +01:00
Antonio Scandurra
83da3ca440
Fix moveLineUp and moveLineDown
2016-03-18 11:24:22 +01:00
Antonio Scandurra
1d1bdf5872
Improve folds behavior when duplicating lines
...
Now we will select the entire screen line (which could contain some
free-form fold), and we duplicate its contents preserving the structure
of the existing folds.
2016-03-18 11:04:30 +01:00
Antonio Scandurra
43f27780fd
Fix specs related to the produced HTML line output
...
This verifies that with the new DisplayLayer the produced output is
cleaner when tags interleave.
2016-03-17 14:56:23 +01:00
Antonio Scandurra
5efb969a63
💚 Start fixing TextEditorComponent specs
2016-03-17 11:33:17 +01:00
Antonio Scandurra
f57fb3176a
Add back lineIdForScreenRow
2016-03-17 11:19:05 +01:00
Antonio Scandurra
23ddeb7f08
🔥 Put back commented out LOC
2016-03-17 10:38:23 +01:00
Antonio Scandurra
661417e362
Update lines in TextEditorPresenter.prototype.getPostMeasurementState()
...
Calling ::updateHorizontalDimensions might cause the editor vertical
coordinates (e.g. height, scroll top) to change, so we need to fetch
lines again from `DisplayLayer`.
2016-03-17 09:42:36 +01:00
Antonio Scandurra
2e41e9ead4
Reset DisplayLayer every time config changes
2016-03-16 19:19:00 +01:00
joshaber
15b13e3ddc
Note the changes to GitRepository.
2016-03-15 10:49:36 -04:00
joshaber
8f9ab771a7
Revert "Match GitRepository's responses to null paths."
...
This reverts commit 50f8f8e7e9 .
2016-03-15 10:44:00 -04:00
joshaber
34698d5768
Revert "And again."
...
This reverts commit a2a6ed05c5 .
2016-03-15 10:43:57 -04:00
Nathan Sobo
e56c2addea
Pass softWrapHangingIndent option
2016-03-14 20:13:00 -06:00
Nathan Sobo
8888203005
Drop marker-index dependency
2016-03-14 17:14:27 -06:00
joshaber
a2a6ed05c5
And again.
2016-03-14 16:40:55 -04:00
joshaber
50f8f8e7e9
Match GitRepository's responses to null paths.
...
Fixes https://github.com/atom/git-diff/issues/93 .
2016-03-14 16:28:36 -04:00
Josh Abernathy
2b5a540a91
Merge pull request #11162 from atom/pr/10930
...
BufferedProcess: search only new data for new lines rather than entire buffer, take 2
2016-03-14 15:59:23 -04:00
Antonio Scandurra
e513ed3a11
WIP: Always enable soft-wrapping
2016-03-14 18:43:27 +01:00
joshaber
d1c8fff86c
Pull line length out into its own variable.
2016-03-14 13:42:05 -04:00
joshaber
2a2e22a759
Merge branch 'master' into pr/10930
2016-03-14 13:34:03 -04:00
Lee Dohm
ed744c12a9
Move location of call to environmentHelpers.normalize
2016-03-14 08:43:16 -07:00
Jordan Tucker
4e4c85970b
add option to choose whether atom rememebers your last windows
2016-03-12 23:31:39 -08:00
Jordan Tucker
8ffcea381e
load config in atom-application and pass it to auto-update-manager
2016-03-12 23:31:30 -08:00
Lee Dohm
430a0e049a
Merge pull request #11054 from atom/ld-osx-environment
...
Patch Environment On OSX And Allow A Different Environment Per Window
2016-03-11 20:25:19 -08:00
Lee Dohm
63ec054161
Rename environment -> environmentHelpers
2016-03-11 16:51:50 -08:00
Nathan Sobo
2ad2f161fa
Merge pull request #11078 from wvanlint/opt_in_registration
...
Add TextEditors to the registry only when opting in
2016-03-11 15:37:07 -07:00
Michelle Tilley
e4ab2c9b6a
Merge branch 'ku-load-git-packages'
2016-03-11 10:25:51 -08:00
Willem Van Lint
466e554ee1
Add TextEditors to the registry on opt-in only
2016-03-10 22:51:51 -08:00
Michelle Tilley
383174d380
Load apm path from config
...
Signed-off-by: Katrina Uychaco <kuychaco@github.com >
2016-03-10 21:28:40 -08:00
Joe Fitzgerald
87c20bd095
Remove Cruft
2016-03-10 15:46:25 -07:00
Joe Fitzgerald
6b38049b8d
Remove Project API, Work With process.env Directly
...
- Convert environment.coffee and environment-spec.coffee to JavaScript
- Pass the process's environment across the wire when launching atom multiple times from the command line
2016-03-10 15:30:04 -07:00
Lee Dohm
b98388fa76
Fix broken command parameter
2016-03-10 15:27:38 -07:00
Lee Dohm
a3ba15c8a1
Update Project to use new environment module
2016-03-10 15:27:38 -07:00
Lee Dohm
c7465f5f7e
Add environment module for getting environment info
2016-03-10 15:27:38 -07:00
Lee Dohm
8c53e25f80
Patch process.env on startup
2016-03-10 15:27:38 -07:00
Lee Dohm
6bf785faa0
✅ Add test for error handling
2016-03-10 15:27:38 -07:00
Lee Dohm
96b8f0ce38
📝 Add Finder to the list of ways an app can be launched
2016-03-10 15:27:38 -07:00
Lee Dohm
9916c78ce2
Add --interactive option to get the user's full PATH with all the trimmings
2016-03-10 15:27:38 -07:00
Lee Dohm
2e64be6b00
Move new functions to private section
2016-03-10 15:27:38 -07:00
Lee Dohm
a46740522d
📝 Add documentation for atom.project.getEnv
2016-03-10 15:27:38 -07:00
Lee Dohm
3201d7f746
Add basic atom.project.getEnv API
2016-03-10 15:27:38 -07:00
Antonio Scandurra
8c3ab52b64
Pass showIndentGuides config to DisplayLayer
2016-03-10 19:17:28 +01:00
Antonio Scandurra
40beb0bd1e
Use new TextBuffer APIs
2016-03-10 16:00:56 +01:00
Antonio Scandurra
dfed7c4537
Merge branch 'master' into ns-use-display-layers
...
# Conflicts:
# package.json
# src/display-buffer.coffee
# src/text-editor.coffee
# src/tokenized-buffer.coffee
2016-03-10 13:53:14 +01:00