Commit Graph

5061 Commits

Author SHA1 Message Date
Justin Palmer
fca5c54a03 give some visual depth to the mini editor
live in harmony with the current look and feel
2013-01-29 10:02:12 -08:00
Justin Palmer
bc0546f053 Merge branch 'dev' of https://github.com/github/atom into dev 2013-01-29 09:16:34 -08:00
Kevin Sawicki
df83edde64 Only close preview when editor gains focus
Closes #193
2013-01-28 18:56:58 -08:00
Corey Johnson & Nathan Sobo
262703618d Eat interpolated variables in TextMate snippets
Someday we'll actually shell out to fill in their values, but for now,
we just replace them with an empty string.
2013-01-28 17:55:51 -07:00
Kevin Sawicki
154d2306ce Specify resource path when running test task
Now that the release build is generated from rake
install the RESOURCE_PATH is no longer defined so
explicitly set it via an argument to the launched
application.
2013-01-28 16:49:41 -08:00
Kevin Sawicki
4fe021bb61 Memoize built packages
Packages that successfully built are now stored internally
so they can be quickly accessed on future calls instead of
returning an array of newly built packages on each call.
2013-01-28 15:47:17 -08:00
Corey Johnson & Nathan Sobo
fa8ca1193f Correctly place tab stop anchor ranges in snippets with blank lines 2013-01-28 16:36:16 -07:00
Corey Johnson & Nathan Sobo
47ca7f81c1 💄 2013-01-28 16:36:16 -07:00
Corey Johnson & Nathan Sobo
c13b45df99 Hard tabs in snippets are translated to soft-tabs if necessary 2013-01-28 16:36:15 -07:00
Kevin Sawicki
7e494caaff Remove unused require 2013-01-28 15:25:35 -08:00
Kevin Sawicki
c2319a30e6 💄 2013-01-28 15:25:08 -08:00
Kevin Sawicki
e792265076 Trigger grammars-loaded event on syntax 2013-01-28 14:34:49 -08:00
Kevin Sawicki
ad8dd767e5 Don't allow web worker grammars to be registered
Grammars are already loaded at the beginning of the
specs synchronously and should not be overridden
when testing the background load task.
2013-01-28 14:23:18 -08:00
Corey Johnson & Nathan Sobo
493ed5f006 Merge branch 'web-workers' into dev 2013-01-28 15:02:57 -07:00
Corey Johnson & Nathan Sobo
504811316e Make Type atom to start Atom! In Atom press cmd-, to edit your .atom directory compile atom in Release mode 2013-01-28 15:01:06 -07:00
Corey Johnson & Nathan Sobo
fa3df3359a Upgrade CEF to branch 1364, revision 1065 to fix a bug in v8 2013-01-28 14:58:21 -07:00
Corey Johnson & Nathan Sobo
1190644e76 Make update-cef script tolerate multiple cef binaries in chromium/src/cef 2013-01-28 14:52:45 -07:00
Kevin Sawicki
d84c600679 Don't add CR invisible if line is soft wrapped 2013-01-28 13:33:46 -08:00
Kevin Sawicki
fa5ceedfe0 Don't add EOL invisible if line is soft wrapped 2013-01-28 13:22:32 -08:00
Kevin Sawicki
6218b58fd4 Use valid configuration option syntax 2013-01-28 13:02:27 -08:00
Kevin Sawicki
a8a1d09dac Output updated paths after changing id 2013-01-28 09:39:50 -08:00
Kevin Sawicki
f29c4100e2 Use Release build of libgit2 at 11fccddcb5 2013-01-28 09:38:43 -08:00
Kevin Sawicki
fbfdd6ab65 Doc libgit2 build and verification steps in update script 2013-01-28 09:38:01 -08:00
Kevin Sawicki
bd3493987b 💄 2013-01-27 22:44:07 -08:00
Kevin Sawicki
ee5d70b65d Terminate worker when all packages have been loaded 2013-01-27 22:38:11 -08:00
Kevin Sawicki
75da205b0a Terminate worker when all snippets have been loaded 2013-01-27 22:26:45 -08:00
Kevin Sawicki
a89e1fae11 Use interpolated string when evaluating 2013-01-27 20:12:36 -08:00
Kevin Sawicki
90054d8553 Pop from split array to get last index 2013-01-27 20:09:23 -08:00
Kevin Sawicki
15a06cbdb3 DRY up how cache file path is generated 2013-01-27 18:11:07 -08:00
Nathan Sobo
96b0cde85a Merge branch 'dev' into web-workers 2013-01-27 18:53:59 -07:00
Kevin Sawicki & Nathan Sobo
aeb2ddac50 HACK: attempt 2nd CoffeeScript.compile when evaluating fails
Temporary workaround for CEF/CoffeeScript timing issue where
compiler generates invalid JavaScript.
2013-01-27 18:33:09 -07:00
Kevin Sawicki & Nathan Sobo
f6fe2bdc97 Don't normalize line endings from Buffer.setText
BufferChangeOperation now takes an options hash that
can specify whether line endings should be normalized.

This option is set to false when Buffer.setText is called.
This replaces the previous assignment of lineEndings to []
with a more explicit mechanism.
2013-01-27 16:01:22 -08:00
Kevin Sawicki & Nathan Sobo
98614592af Store line endings on a per-line basis in Buffer
The line ending for each line is recorded and reused
when lines are modified or inserted.

Closes #166
2013-01-27 16:01:22 -08:00
Kevin Sawicki
ecc50506c7 Render trailing carriage return as an invisible 2013-01-27 16:01:22 -08:00
Nathan Sobo
c27de89327 Eliminate warning messages from snippets-spec
Mock loading of TextMate snippets or Atom snippets and only enable
loading for the type of snippet being currently tested. This limits
logging of warning to the single warning we expect for each type, which
allows us to not call through on the mocking of `console.warn` and
explicitly check for the single expected call.
2013-01-27 13:25:59 -07:00
Nathan Sobo
c16acc6b2c Disable 'package-that-throws-an-exception' except in spec that uses it
Loading this package logs a warning, so to minimize noise in the spec
console, it should only be loaded when `console.warn` is mocked.
2013-01-27 13:11:42 -07:00
Nathan Sobo
162e3494b2 Tolerate undefined rootView global when loading a package
This eliminates warnings when we activate packages in specs without
setting up the `rootView`.
2013-01-27 13:09:27 -07:00
Nathan Sobo
0be4ad547a Disable 'package-that-throws-an-exception' except in spec that uses it
Loading this package logs a warning, so to minimize noise in the spec
console, it should only be loaded when `console.warn` is mocked.
2013-01-27 12:12:39 -07:00
Nathan Sobo
a83b8583f0 Perform body parsing in the worker thread (without failing specs)
Since `snippets.add` can still be called from the window thread, we need
to retain the ability to parse the body without relying on the loading
task. But this commit only loads the parser in the window if it's actually
needed, instead of always loading it when the snippets extension is
loaded. This avoids the loading performance hit while still allowing
specs to pass and letting us call `snippets.add` manually in the window
if we want to.
2013-01-27 12:07:36 -07:00
Kevin Sawicki
8fb1105051 Detach markdown preview when focus is lost 2013-01-27 11:00:34 -08:00
Kevin Sawicki
cb4f392fa6 Set tab index on root-view to 0
Previously if the tree-view was open and was focused and no
editors were open and tab was pressed the document body would
become focused which would not allow events bound to root view
to be triggerable.

This ensures that the root-view always gets focus back when
another view is tabbed away from.
2013-01-27 10:49:17 -08:00
Nathan Sobo
5bfb9feeda Revert "Move snippet body parsing to web worker"
This reverts commit 5b541ccc2b.
It caused the snippets spec to break. I'll try to achieve the same
thing without that happening.
2013-01-27 11:40:01 -07:00
Nathan Sobo
f3ab64edbc Merge pull request #178 from github/ctrl-tab
Add ctrl-tab shortcut to switch panes
2013-01-27 10:23:23 -08:00
Chris Wanstrath
186f461dd7 Add ctrl-tab shortcut to switch tabs 2013-01-26 11:42:22 -08:00
Jon Rohan
1e45dee73e Merge pull request #177 from github/box-flex-tabs
The currently highlighted tab shows more tab
2013-01-25 18:53:52 -08:00
Kevin Sawicki
1b76b05e4d Bind ctrl-C to copy path to clipboard
Refs #173
2013-01-25 17:52:05 -08:00
Kevin Sawicki
985dd284dc 💄 2013-01-25 17:37:24 -08:00
Kevin Sawicki
22aeda6f1c Add move-to-top/bottom support to select list 2013-01-25 17:31:45 -08:00
Jon Rohan
9d6853d29e By the power of box-flex, tabs 2013-01-25 16:25:33 -08:00
Kevin Sawicki
6ef32b5a9a Merge pull request #151 from github/dev
Merge dev into master
2013-01-25 16:24:09 -08:00