Commit Graph

3705 Commits

Author SHA1 Message Date
Nathan Sobo
7bd4e8801f If inserting on a line that is longer than the suggested indent, preserve indent 2012-10-23 14:13:51 -06:00
Nathan Sobo
0e5c76b474 Start adding the normalizeIndent option to EditSession.proto.insertText
This will be used by the paste command to ensure that indentation is normalized.
2012-10-23 14:07:00 -06:00
Nathan Sobo
7be3c55765 Only auto-indent when typing, not when pasting or programmatically inserting
This paves the way for using a different strategy to normalize indentation when pasting, without it getting tangled in auto-indent.
2012-10-23 11:59:54 -06:00
Nathan Sobo
518d88a4ab Fix spec breakage caused by a styling change 2012-10-23 10:46:38 -06:00
Corey Johnson & Nathan Sobo
fcbbe0a29b Do not use cached results for regexes that contain \G. 2012-10-22 11:04:20 -07:00
Corey Johnson
2635631d81 Always retain _resoucePath 2012-10-19 14:24:00 -07:00
Nathan Sobo
41679e40af Load event-palette extension in defaultConfig 2012-10-19 14:12:43 -06:00
Nathan Sobo
61e769390a Better styling 2012-10-19 14:07:47 -06:00
Nathan Sobo
57ab2d3013 Merge branch 'master' into event-palette 2012-10-19 13:37:39 -06:00
Nathan Sobo
e60bd609d4 Fix 'rake nof' 2012-10-19 12:59:22 -06:00
Corey Johnson & Nathan Sobo
9bf16063fc Un-F 2012-10-19 12:58:42 -06:00
Corey Johnson & Nathan Sobo
9303aaa8fd Rename root-view: event prefix to window: 2012-10-19 12:51:36 -06:00
Corey Johnson & Nathan Sobo
e6d541438d Editor uses @command to register command handlers 2012-10-19 12:48:19 -06:00
Corey Johnson & Nathan Sobo
eff289de37 Use @command in TreeView 2012-10-19 12:45:05 -06:00
Corey Johnson & Nathan Sobo
7248e2dfb5 Use @command in Snippets extension 2012-10-19 12:42:38 -06: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
503d25dff0 Use @command in MarkdownPreview extension 2012-10-19 12:27:45 -06:00
Corey Johnson & Nathan Sobo
70616aa78f Use @command in FuzzyFinder extension 2012-10-19 12:26:31 -06:00
Corey Johnson & Nathan Sobo
67d6d86855 Use @command to register EventPalette commands
This is at the moment a bit redundant, since you're already in the EventPalette when you see this. But we intend `@command` to communicate intent in the codebase, and its may also end up being used in other ways later.
2012-10-19 12:24:40 -06:00
Corey Johnson & Nathan Sobo
909d1594bc Use @command to handle CommandPanel commands 2012-10-19 12:21:22 -06:00
Corey Johnson & Nathan Sobo
38548df61a Use @command to register autocomplete extension commands 2012-10-19 12:16:57 -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
Kevin Sawicki
d58954145b Remove brew check
This was added for the gyp formula install
which has been removed
2012-10-18 16:04:43 -07:00
Will Farrington
fcc6795e83 no more custom gyp 2012-10-18 16:00:14 -07: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
Corey Johnson & Nathan Sobo
33b1b66ee4 Merge branch 'invisibles' 2012-10-18 14:44:48 -07:00
Corey Johnson & Nathan Sobo
93cbe2bb22 Create root-view:toggle-invisibles event 2012-10-18 14:44:21 -07:00
Corey Johnson & Nathan Sobo
a72d0399f7 Add Editor.setShowInvisibles and remove showInvisibles from EditSession 2012-10-18 14:10:36 -07:00
Corey Johnson & Nathan Sobo
ae0a60f4a9 Eliminate unused showInvisibles parameter. 2012-10-18 11:52:51 -07:00
Corey Johnson & Nathan Sobo
b33bbbfc0d Handle invisible character rendering when building HTML for lines.
Not during creation of tokens.
2012-10-18 11:43:17 -07:00
Corey Johnson & Nathan Sobo
dd5a10e82e 💄 2012-10-18 11:33:19 -07:00
Corey Johnson
53534e61cf Remove double comment 2012-10-18 11:33:19 -07:00
Corey Johnson
c9db576a1c Fix specs 2012-10-18 11:33:19 -07:00
Corey Johnson
d7bc03112b Empty lines require a special case for invisibles. 2012-10-18 11:33:19 -07:00
Corey Johnson
1ffbff7d99 Fix newline invisible symbol 2012-10-18 11:33:19 -07:00
Corey Johnson
d3c52ae96d Make invisible coloring less obnoxious 2012-10-18 11:33:19 -07:00
Corey Johnson
22e009a999 Set invisible values for spaces and tabs when initial tokenization occurs.
Also break whitespace into its own token just like tabs.
2012-10-18 11:33:19 -07:00
Corey Johnson
4478bbca9a When project.showInvisibles is true; spaces, tabs and newlines are visible 2012-10-18 11:31:39 -07:00
Corey Johnson
e2a917fcf3 Change tabText to tabLength 2012-10-18 11:31:39 -07:00
Corey Johnson & Nathan Sobo
640e9b6b0d Editor.scrollTop can't be assigned to a negative number.
This was possible when the verticalScrollbar's scrollHeight was smaller than its height.
2012-10-17 18:02:45 -07:00
Corey Johnson & Nathan Sobo
d6418b8b94 Set dummy vertical scrollbar width to be as wide as the scrollbar 2012-10-17 17:55:31 -07:00
Corey Johnson & Nathan Sobo
1d46b63977 Use explicit shas (not HEAD) for textmate bundles 2012-10-17 14:28:19 -07:00
Corey Johnson & Nathan Sobo
4987ea3e49 If a TextMate syntax/preference fails to parse, catch error and log warning 2012-10-17 13:53:55 -07:00
Corey Johnson & Nathan Sobo
798cec3ebe If bundle in ~/.atom exists, fetch new code and reset to specified sha. 2012-10-16 17:23:29 -07:00
Corey Johnson & Nathan Sobo
9f71b3057c Simplify ScreenLine.translateColumn 2012-10-16 17:08:10 -07:00
Corey Johnson & Nathan Sobo
7d77d95bf8 update javascript bundle sha 2012-10-16 16:09:37 -07:00
Corey Johnson & Nathan Sobo
253a07e2c4 Add comment explaining the need for appending \n when scanning lines with a TextMate grammar 2012-10-16 16:07:54 -07:00
Corey Johnson
6171ea33e1 Add support for TextMate grammars with newlines in their regexes 2012-10-16 15:58:11 -07:00