Commit Graph

3786 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
3a067bcd71 Add editor:toggle-soft-tabs event 2012-10-26 11:52:53 -06:00
Corey Johnson & Nathan Sobo
487245311e EditSession#indentLevelForLine detects tabs/spaces for each line
This allows folding, auto-indent, etc to work in a file in which *both* tabs and spaces are used to indent. Not that this is a good idea, but at least we handle it gracefully.
2012-10-26 11:52:37 -06:00
Corey Johnson & Nathan Sobo
4c24f4ea65 indentSelectedRows works with hard tabs 2012-10-26 11:15:55 -06:00
Corey Johnson & Nathan Sobo
0aa9f8de57 Indent works with hard tabs 2012-10-26 11:15:55 -06:00
Corey Johnson & Nathan Sobo
29351ee5fc Move setIndentationForBufferRow and indentationForBufferRow to EditSession 2012-10-26 11:15:55 -06:00
Corey Johnson & Nathan Sobo
973c69a043 Ignore rename events for files that have already been deleted 2012-10-26 11:15:22 -06:00
Nathan Sobo
d89979fc61 Merge pull request #86 from github/outline-view
Jump to method declaration
2012-10-25 17:54:27 -07:00
Corey Johnson & Nathan Sobo
ef6c51dd32 💄 2012-10-25 15:56:18 -07:00
Corey Johnson & Nathan Sobo
1bb2531f31 Tab can auto-indent at the beginning of a line 2012-10-25 16:27:28 -06:00
Corey Johnson & Nathan Sobo
695e8f1c1e Rename command-panel:tool-pane event to command-panel:tool-panel 2012-10-25 14:47:47 -07:00
Corey Johnson & Nathan Sobo
3213a91c79 No longer need to wait for fs events in Tree View spec 2012-10-25 14:47:23 -07:00
Corey Johnson
5887d6711d Remove keybindings-view from default config 2012-10-25 14:10:33 -07:00
Corey Johnson
a8d94f37f7 core:close events close the Tree View (but not the entire window) 2012-10-25 14:10:33 -07:00
Corey Johnson
b4431da6ab core:close events close Command Panel (but not the entire window) 2012-10-25 14:10:33 -07:00
Corey Johnson
0501eee7ab Remove rogue tree-view.coffee file 2012-10-25 14:10:33 -07:00
Nathan Sobo
edf7f6611f Avoid crash in PathWatcher when renaming to a null path
I added some logging for the time being, because this seems weird, but at least it doesn't crash anymore.
2012-10-25 14:20:49 -06:00
Nathan Sobo
d310297fe7 Radically simplify the definition of "modified" for buffers
Now, we maintain md5 signatures for the on-disk and in-memory contents of the buffer. Whenever either contents change, we recompute the signature and store it on the buffer. We can tell if the buffer is modified by comparing these signatures. When the disk contents change, we compare the memory and disk signatures *before* recomputing the disk signature to determine whether to update the buffer or mark it as a conflict.
2012-10-25 13:08:38 -06:00
Corey Johnson
0c83ee3db0 💩 Remove vim-mode from root-view 2012-10-25 11:53:07 -07:00
Corey Johnson
79476bbc8c do not reraise errors from loading extensions 2012-10-25 11:49:36 -07:00
Corey Johnson
d60bddf290 Vim-mode is dead code 2012-10-25 11:48:13 -07:00
Corey Johnson
2af29c9934 Extensions have a src and specs directory now. Move existing extension specs.
Move the extensions spec code inside of the extension's spec directory. Move source code to the extension's src directory
2012-10-25 11:48:13 -07:00
Corey Johnson
6870f21ca5 Better error reporting when an extension cannot be found. 2012-10-25 11:48:12 -07:00
Nathan Sobo
031da13316 Remove unused methods from native OnigRegExp
`OnigScanner` takes over these duties
2012-10-25 12:23:37 -06:00
Nathan Sobo
a996cd651b Merge branch 'master' of https://github.com/github/atom 2012-10-25 12:21:46 -06:00
Corey Johnson
f07d15e5ac Fix bug with fuzzy-filter searches using keys. 2012-10-25 11:11:10 -07:00
Nathan Sobo
33c6fe8009 Remove regex from TextMateGrammar's Pattern class
We build a native `OnigScanner` object at the `Rule` level which tries to match every regex for the entire rule, rather than using an individual regex for each pattern from the JS side.
2012-10-25 12:07:13 -06:00
Nathan Sobo
1a8305ee2a Fix typo/exception in TreeView's handling of core:close event 2012-10-25 12:00:31 -06:00
Kevin Sawicki
23573f611f Add specs of outline view UI 2012-10-25 10:38:06 -07:00
Nathan Sobo
b1e8e2391f Merge branch 'paste-indentation' 2012-10-25 10:50:05 -06:00
Nathan Sobo
e53410b5fd Add indentBasis metadata to pasteboard when copying text
This allows indent to be normalized properly even if the leading whitespace isn't copied from the first line.
2012-10-25 10:44:54 -06:00
Corey Johnson & Nathan Sobo
d3b7fbb37b Use window.pasteboard in cut/copy/paste 2012-10-24 18:35:55 -06:00
Corey Johnson & Nathan Sobo
6f353fda62 Add indentBasis option to insertText
We will use this to normalize indentation on paste even when we didn't copy all the leading whitespace on the first line.
2012-10-24 18:29:09 -06:00
Nathan Sobo
9fc439b30d Use ? to avoid a bug caused by falsy zeroes 2012-10-24 17:54:15 -06:00
Nathan Sobo
fd4b6c85ce Add a global pasteboard object which supports metadata
This metadata will be used to record the indentation level of the first line when copying multiple lines of text to the pasteboard. The pasteboard takes the md5 of the pasted content when writing, then when reading it associates the last written metadata only when the signature matches the previously written value.
2012-10-24 17:42:58 -06:00
Corey Johnson & Nathan Sobo
7f9992d624 Optimize bracket matching 2012-10-24 16:28:00 -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
f686988e36 Update stringscore.js to 0.1.10 and remove start_of_string_bonus 2012-10-24 15:33:13 -07:00
Corey Johnson
83a72b1d4a :Revert "nobody uses this file"
This reverts commit 5e75edc9e8.
2012-10-24 14:38:56 -07:00
Kevin Sawicki
f995cbb45c 💄 2012-10-24 14:36:46 -07:00
Corey Johnson
5e75edc9e8 nobody uses this file 2012-10-24 14:36:42 -07:00
Corey Johnson
e02b8f8eec Add support for brackets with the same begin/end character 2012-10-24 14:24:19 -07:00
Corey Johnson
ebbb39f50e Improve brackets auto closing.
When an open bracket is inserted, an anchorRange is created. When a closing bracket is inserted, and its position matches the end of one of the anchorRanges, the closing bracket is not inserted and the cursor moves right.
2012-10-24 14:24:19 -07:00
Corey Johnson
1ad6fcc2d3 :lipstick 2012-10-24 14:24:19 -07:00
Nathan Sobo
ee09c20214 Merge branch 'master' into paste-indentation 2012-10-24 12:37:50 -06:00
Nathan Sobo
ca2527f4b8 Meta-w closes spec windows again.
This adds a 'core:close' event to meta-w in the default bindings, and modifies window to listen for it.
2012-10-24 12:35:31 -06:00
Nathan Sobo
b71fa308a3 Always run window.startup when window.coffee is required
When we actually want to attach the root view in window-bootstrap.coffee, we call `window.attachRootView(path)` instead of calling `window.startup(path)`. Having `startup` called automatically means we can be sure any code we add there runs in every environment (including benchmark and specs). This is where we do things like setup the global keymap, parse text mate bundles and themes, and establish the window close handler. Any globals other than the root view that we want to be available in all environments should be established here. Right now that's just the keymap, but soon I want to add a global pasteboard.
2012-10-24 12:34:45 -06:00
Kevin Sawicki
de1543619c Remove unneeded require 2012-10-24 08:32:38 -07:00
Kevin Sawicki
f1a8a5d684 Store tag location in a Point 2012-10-24 08:24:16 -07:00
Kevin Sawicki
7d670b8597 Add initial specs of TagGenerator class 2012-10-24 08:21:16 -07:00
Kevin Sawicki
c0feef66cc Increment line row by 1 in label 2012-10-24 08:16:40 -07:00