Corey Johnson
e20832aa50
Tree View uses core:close core:confirm core:cancel and adds tool-pane:unfocus
2012-10-23 13:21:34 -07:00
Corey Johnson
8e417631e3
Markdown Preview uses core:cancel and markdown-preview:toggle
2012-10-23 13:21:34 -07:00
Corey Johnson
421731c6a0
Command Panel uses core:close, core:cancel and core:confirm
2012-10-23 13:21:34 -07:00
Corey Johnson
d0e1ee255c
Autocomplete extension uses core:confirm and core:cancel
2012-10-23 13:21:33 -07:00
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
Kevin Sawicki
ab8c22825c
Support outdenting when indent is < 1 tab length
2012-10-23 09:57:39 -07: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 & 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
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
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
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
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
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
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
4987ea3e49
If a TextMate syntax/preference fails to parse, catch error and log warning
2012-10-17 13:53:55 -07:00
Corey Johnson
6171ea33e1
Add support for TextMate grammars with newlines in their regexes
2012-10-16 15:58:11 -07:00
Corey Johnson
de03cc82ed
fs.traversePath(path) works if path is a symlink
2012-10-12 15:44:01 -07:00
Corey Johnson
5b92de76fc
💄
2012-10-12 15:44:00 -07:00
Kevin Sawicki
6551be0c85
Update the buffer being used when the editor path changes
...
Previously the status indicator would only work for the first
buffer open since only the buffer used when the extension was
initialized was subscribed to for change events.
2012-10-12 15:39:52 -07:00
Kevin Sawicki
0da869589e
Use change event instead of buffer-change event
...
This will update the modified indicator after operations
are undone
2012-10-12 15:08:01 -07:00
Kevin Sawicki
19aa192c47
Return paths instead of deferred from project.getFilePaths
...
It was already being performed synchronously
2012-10-12 14:45:18 -07:00
Kevin Sawicki
38802ba287
Use javscript.tmbundle commit 2f95d9ae92
...
The commit after this one breaks syntax highlighting
for the lines after a single line comment
2012-10-12 11:34:44 -07:00
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
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
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
f694d1d2c8
Update ruby bundle to commit 77dc5d13cc
2012-10-10 13:48:46 -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
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
6dcbdfbf55
Update fs spec for new traverseTree callback format
2012-10-09 17:41:32 -07:00