Commit Graph

3604 Commits

Author SHA1 Message Date
Kevin Sawicki
220044c8bd Add eachBuffer helper to RootView
This allows extensions to bind a callback to all current
and future buffers.
2012-10-12 09:16:53 -07:00
Kevin Sawicki
24777da703 Remove unneeded onEditor method 2012-10-10 19:16:57 -07:00
Kevin Sawicki
50b1814308 Change => to -> 2012-10-10 18:45:36 -07:00
Kevin Sawicki
e2c7bca3cc De-f describe 2012-10-10 18:43:56 -07:00
Kevin Sawicki
d4aeb1bb95 Move EditorCommand helpers elsewhere
RootView and Editor now have helpers that support
binding events to callbacks, binding a callback to
all current and future editors, and replacing the
selected text via a transforming callback.
2012-10-10 18:41:20 -07:00
Kevin Sawicki
1fa32c48e7 Invoke onEditor on each extension sub-class 2012-10-10 18:02:49 -07:00
Kevin Sawicki
e87cb34d1d Support selecting inserted text 2012-10-10 18:02:48 -07:00
Kevin Sawicki
ceb496e202 Use closure wrapper with current event name 2012-10-10 18:02:48 -07:00
Kevin Sawicki
863f9f36fb Rename editSelectedText to replaceSelectedText 2012-10-10 18:02:48 -07:00
Kevin Sawicki
d93a142263 Rename alterSelection to editSelectedText 2012-10-10 18:02:48 -07:00
Kevin Sawicki
2d8be51e71 Add initial editor command super class
This can be extended by extensions targetted
towards acting on text inside the editor and
not contributing any UI
2012-10-10 18:02:48 -07:00
Kevin Sawicki
b3ce062be9 Add up/down event support for keybindings view 2012-10-10 17:41:14 -07:00
Kevin Sawicki
1610b45bcb Clone c bundle during rake install 2012-10-10 17:29:31 -07:00
Corey Johnson
75d7950ef5 Fix linemap translation when an atomic token is at the end of a line.
Previously, if you entered an atomic token (like a tab) on an empty line it would not position the cursor after the token. This commit fixes that.

If the last screen line token is atomic, and screenLine.translateColumn's sourceColumn parameter is greater than the start position of the atomic token, then the translated column should be the end position of the atomic token.
2012-10-10 14:45:47 -07:00
Corey Johnson
8eb9d6629c Remove unused methods from token.
The refactoring of Editor.buildLineHtml removed the need for these methods
2012-10-10 14:45:46 -07:00
Kevin Sawicki
34ded7d4e9 Update ruby bundle commit to daad8ef03d 2012-10-10 14:09:31 -07:00
Kevin Sawicki
f694d1d2c8 Update ruby bundle to commit 77dc5d13cc 2012-10-10 13:48:46 -07:00
Kevin Sawicki
670da2c9c3 Don't link bundles folder 2012-10-09 18:16:33 -07:00
Kevin Sawicki
6dc5a05f35 Expect var to have modifier class instead of type
This changed in the underlying JavaScript bundle
2012-10-09 17:55:21 -07:00
Kevin Sawicki
2aa3667586 Update expected var selector to storage.modifier.js
This changed in the underlying JavaScript bundle
2012-10-09 17:49:53 -07:00
Kevin Sawicki
1694f74bcb Expect var to be a storage.modifier.js type in spec 2012-10-09 17:46:26 -07:00
Kevin Sawicki
a1f9e061bc Remove native.list
Use native.traverseTree instead from fs.list
and fs.listTree
2012-10-09 17:41:33 -07:00
Kevin Sawicki
7fd06c8e66 Remove logging of traversal times 2012-10-09 17:41:33 -07:00
Kevin Sawicki
d8ea07468b Include FTS_PHYSICAL when calling fts_open 2012-10-09 17:41:33 -07:00
Kevin Sawicki
edc1c590aa Guard against null onDir function result 2012-10-09 17:41:33 -07:00
Kevin Sawicki
375d3551fa Check fts_info against FTS_NSOK for files 2012-10-09 17:41:33 -07:00
Kevin Sawicki
6b6cf85ba0 DRY up native traverseTree for file and folder cases 2012-10-09 17:41:32 -07:00
Kevin Sawicki
1be1d03eac Update fs spec for new traverseTree callbacks 2012-10-09 17:41:32 -07:00
Kevin Sawicki
8b61e6a9df Split out file and directory callbacks 2012-10-09 17:41:32 -07:00
Kevin Sawicki
71c161d527 Remove unneeded regex matching for built-in ignores 2012-10-09 17:41:32 -07:00
Kevin Sawicki
f71b90578e 💄 2012-10-09 17:41:32 -07:00
Kevin Sawicki
c304788fbf 💄 2012-10-09 17:41:32 -07:00
Kevin Sawicki
98c8525bdd Use single args vector and clear before insertion 2012-10-09 17:41:32 -07:00
Kevin Sawicki
6dcbdfbf55 Update fs spec for new traverseTree callback format 2012-10-09 17:41:32 -07:00
Kevin Sawicki
51a41a9a72 Add native traverseTree 2012-10-09 17:41:32 -07:00
Corey Johnson
7b4e798a4d rake test now obeys fdescribe and fit. 2012-10-09 17:23:01 -07:00
Corey Johnson
701631e7cb Update spec to use new ruby scopes 2012-10-09 17:23:01 -07:00
Corey Johnson
201a9a4adb Bundles can specify a specific SHA 2012-10-09 17:23:00 -07:00
Corey Johnson
6b5c3dc1cf Remove unused variable that causes specs to fail 2012-10-09 17:23:00 -07:00
Kevin Sawicki
8ce6810179 Support bundles with foldingStopMarker under Preferences/ 2012-10-09 16:57:43 -07:00
Corey Johnson
b8631ac83b Add newline when outputting console.log to stdout 2012-10-09 15:25:06 -07:00
Corey Johnson
1bdd985606 Ensure bundles are up-to-date when rake test is run 2012-10-09 15:18:58 -07:00
Corey Johnson
e3360de3c6 Use std::cout to output console.log messages
NSLog outputs to stderr, but we want our test error messages to output to stdout.
2012-10-09 15:10:54 -07:00
Corey Johnson
9fe079f862 Use actual exit number 2012-10-09 15:09:22 -07:00
Corey Johnson
fa2bef9e97 Replace more File.exists? because the build machine is not on Ruby >= 1.9 2012-10-09 14:38:31 -07:00
Corey Johnson
253e17f1a8 Use File.exists? because the build machine is not on Ruby >= 1.9 2012-10-09 14:37:10 -07:00
Kevin Sawicki
df1658e0e7 Correct typo in create-project task description 2012-10-09 11:10:02 -07:00
Corey Johnson
7afbac5a4e Merge branch 'transpose' 2012-10-09 11:03:26 -07:00
Corey Johnson
a2f2e388d5 Test 💄
Instead of inserting text into an existing buffer, I replaced all text in the buffer to make the test easier to understand.
2012-10-09 11:02:39 -07:00
Corey Johnson & Kevin Sawicki
bd6313372e Remove TextMate bundles from Atom source
Bundles are now cloned into ~/.atom/bundles using `rake
clone-default-bundles`
2012-10-09 10:44:07 -07:00