Commit Graph

223 Commits

Author SHA1 Message Date
Corey Johnson
f07d15e5ac Fix bug with fuzzy-filter searches using keys. 2012-10-25 11:11:10 -07:00
Corey Johnson
831d23d968 Fuzzy-filter scores basename matches higher.
Idea stolen from github/github https://github.com/github/github/blob/master/app/assets/javascripts/github/tree_finder.js
2012-10-24 15:38:18 -07:00
Corey Johnson
83a72b1d4a :Revert "nobody uses this file"
This reverts commit 5e75edc9e8.
2012-10-24 14:38:56 -07:00
Corey Johnson
5e75edc9e8 nobody uses this file 2012-10-24 14:36:42 -07:00
Kevin Sawicki
906f816fc6 💄 2012-10-23 21:43:43 -07:00
Kevin Sawicki
48bdc75359 Send remaining stdout/stderr output to callbacks
Previously this data was only sent to the done
handlers and so commands such as SelectAllMatchesInProject
were not displaying all the results when the result size
was large.
2012-10-23 21:27:17 -07:00
Corey Johnson & Nathan Sobo
84b2cabeb3 Calling .abortKeyBinding on an event that wasn't triggered by the keymap is ok
Certain events call `abortKeyBinding` to opt out of handling certain keybindings. Snippets does this with tab for example. If it's not a situation where it's appropriate to go to the next tab stop, we let the next binding be triggered, which could insert a tab, for example. But when we trigger events from the event palette, there *is* no next binding. Having a no-op function helps in this situation.
2012-10-19 12:42:27 -06:00
Corey Johnson & Nathan Sobo
191164ed4c Add $.fn.command method which ensures event is documented
For now, we auto-generate the documentation string by humanizing the event name. In the future, we may provide the option to provide more documentation, such as info about any arguments to the event, extended documentation, etc.
2012-10-19 12:14:02 -06:00
Corey Johnson & Nathan Sobo
d420585b11 Display keybindings in EventPalette. Style a bit. 2012-10-19 12:02:00 -06:00
Corey Johnson & Nathan Sobo
de3bbce29f Only show events w/ descriptions in EventPalette
Also, auto-generate human readable event name in editor. This is a good example of how we could do this automatically for some kind of `onCommand`, `command`, `onInteractiveEvent` method that combines the event name, documentation string, and handler in one shot.
2012-10-19 11:24:40 -06:00
Nathan Sobo
2b8c946a65 Merge branch 'master' into event-palette
Conflicts:
	spec/extensions/fuzzy-finder-spec.coffee
	src/extensions/fuzzy-finder/fuzzy-finder.coffee
2012-10-18 16:33:44 -06: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
8b61e6a9df Split out file and directory callbacks 2012-10-09 17:41:32 -07:00
Kevin Sawicki
51a41a9a72 Add native traverseTree 2012-10-09 17:41:32 -07:00
Kevin Sawicki
7ab088df8b Check recurse flag before verifying path is directory
Avoid an unnecessary native call if recursing into the current
path has already been avoided.
2012-10-08 11:47:48 -07:00
Kevin Sawicki
f6c29a1d51 Add core:page-up and core:page-down support to tree view 2012-10-05 15:50:32 -07:00
Kevin Sawicki
4b20a26974 Add core:move-to-top and core:move-to-bottom support to tree view 2012-10-05 15:30:54 -07:00
Nathan Sobo
7b1fe94e47 Add $.fn.document, which associates event-listeners with descriptions
`$.fn.events` now returns an array of event-name/description pairs.
2012-10-04 10:26:05 -10:00
Nathan Sobo
96c9f0bc36 Add $.fn.events, which returns a list of all handled events 2012-10-04 10:26:05 -10:00
Corey Johnson
5d70f416fc Remove unused regex test from require.js 2012-09-26 16:30:22 -07:00
Corey Johnson & Nathan Sobo
85c37fd652 Move atom.resourcePath to window.resourcePath
The resourcePath is now set using a url param. Because resourcePath is needed by require.js, it needs to be on `window` rather than `atom`.
2012-09-10 17:22:21 -07:00
Corey Johnson & Nathan Sobo
44db540528 All specs pass 2012-08-30 17:12:52 -06:00
Corey Johnson & Nathan Sobo
bd1982ede1 Nix fs.async.* methods. They aren't needed now. 2012-08-30 16:12:15 -06:00
Nathan Sobo
d5ffdb153a Remove $native.saveDialog. It's replaced with atom.showSaveDialog 2012-08-30 11:08:55 -06:00
Nathan Sobo
63a0746cc5 Remove $native.alert 2012-08-29 20:53:04 -05:00
Corey Johnson & Nathan Sobo
5141aba658 Move all extension C and JavaScript code into native/v8_extensions 2012-08-27 14:02:05 -07:00
Nathan Sobo
cec5265f9a Add native handler 2012-08-27 13:37:06 -05:00
Nathan Sobo
14891696a5 Update require.coffee from CEF 1 atom 2012-08-27 11:05:55 -05:00
Nathan Sobo
589b183b26 Define atom.resourcePath (replaces atom.loadPath) when context is created 2012-08-26 16:41:31 -05:00
Nathan Sobo
c3e748a17c WIP: Use rake to start compiling resources (like require.coffee) 2012-08-26 16:29:46 -05:00
Nathan Sobo
c2c8724ad0 Initial commit 2012-08-10 13:32:19 -06:00
Kevin Sawicki
aefafdda4a Add expected parameters to native function declarations 2012-08-22 15:36:53 -07:00
Kevin Sawicki
b3200a944f Move native function declarations to js file
This allows multiple native handlers to load it
as an extension without duplicating all the expected
native function calls names internally.
2012-08-22 15:10:37 -07:00
Kevin Sawicki & Nathan Sobo
c87c0da35e Don't explode when require.resolve doesn't find a file. Return null instead. 2012-08-22 13:43:46 -07:00
Corey Johnson & Nathan Sobo
ad4b3db439 Add OnigRegExp.test 2012-08-09 12:57:20 -06:00
Corey Johnson & Nathan Sobo
2a945838f5 Return absolute minimum capture data from OnigRegExp 2012-08-08 12:13:54 -07:00
Corey Johnson & Nathan Sobo
827b3e29d3 Implement OnigRegExp.getCaptureTree natively 2012-08-07 16:20:02 -07:00
Nathan Sobo
6878d19a6a OnigRegExp.getCaptureTree does not include empty child captures 2012-08-06 18:27:39 -06:00
Nathan Sobo
a85345e392 Add OnigRegExp.getCaptureCount 2012-08-06 18:27:14 -06:00
Nathan Sobo
0d6d16a438 Move TextMateGrammar.buildCaptureTree to .getCaptureTree method on OnigRegExp 2012-08-06 11:43:44 -06:00
Corey Johnson & Nathan Sobo
1a243adfcf All specs pass w/ TextMateGrammar for tokenization (auto-indent disabled) 2012-08-03 12:00:05 -06:00
Nathan Sobo
13c95aae31 Add 'themes' directory with the default TextMate themes 2012-08-01 14:07:18 -06:00
Corey Johnson & Nathan Sobo
7067c35dc0 Add CocoaOniguruma 2012-08-01 09:48:36 -07:00
Corey Johnson & Nathan Sobo
15d27dca44 Start on OnigRegexp javascript extension 2012-08-01 09:48:36 -07:00
Corey Johnson & Nathan Sobo
c6bae093c1 Starting on TextMate bundle support 2012-08-01 09:48:35 -07:00
Corey Johnson & Nathan Sobo
713b5a9620 Better $native.exec errors 2012-07-20 14:19:19 -07:00
Nathan Sobo
f5e46e57fc Use bundled ack instead of grep
Our ack is slightly modified to use `'\0'` characters instead of `':'` in the --nogroup listing. This makes it easier to handle both `':'` characters and newlines in filenames, but we aren't really doing that yet.
2012-07-19 09:17:44 -06:00
Corey Johnson & Nathan Sobo
47a9d1284a Reject exec promise with hash instead of string 2012-07-12 12:18:53 -07:00
Corey Johnson & Nathan Sobo
0d35d5613a Non-zero exit codes reject promise with a detailed message 2012-07-12 12:07:32 -07:00
Corey Johnson & Nathan Sobo
2fe56ba077 Remove logging 2012-07-12 11:11:45 -06:00