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
Kevin Sawicki
8fa8d4bf08
Add tag generator class
2012-10-24 08:10:25 -07:00
Kevin Sawicki
906f816fc6
💄
2012-10-23 21:43:43 -07:00
Kevin Sawicki
b4b9a0c76b
Don't forward output on done
2012-10-23 21:30:32 -07:00
Kevin Sawicki
5808609bfd
Display results from done callback
2012-10-23 21:29:11 -07:00
Kevin Sawicki
3c74eeffbc
Use ctags to populate list
2012-10-23 21:29:11 -07:00
Kevin Sawicki
f720b14f22
Don't show when empty
2012-10-23 21:29:11 -07:00
Kevin Sawicki
8acb37338d
Add initial outline view specs
2012-10-23 21:29:11 -07:00
Kevin Sawicki
3152ab7219
Remove unneeded check
2012-10-23 21:29:11 -07:00
Kevin Sawicki
7724b2db8f
Use single quotes
2012-10-23 21:29:10 -07:00
Kevin Sawicki
4a766139dc
Use regex instead of line tokens
2012-10-23 21:29:10 -07:00
Kevin Sawicki
6867405bd7
Move outline view stylesheet to extensions dir
2012-10-23 21:29:10 -07:00
Kevin Sawicki
ad0bbbc72d
Add initial outline view
2012-10-23 21:29:10 -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
Nathan Sobo
937caf8400
Un-F
2012-10-23 17:17:28 -06:00
Nathan Sobo
4d9b777350
Fix LanguageMode.proto.suggestedIndentationForBufferRow exception for row 0
2012-10-23 16:50:00 -06:00
Nathan Sobo
b5b552737d
Enable indent normalization on paste
2012-10-23 16:30:49 -06:00
Nathan Sobo
d1999b91ff
Base first line delta on the cursor column, not the existing line's indent
2012-10-23 16:30:38 -06:00
Nathan Sobo
839d57d819
Use existing line's indentation level if inserting normalized lines within it
...
If we're pasting multiple lines starting inside an already existing line, we never want to auto indent. We should just take its existing indentation level. Also, we strip the leading whitespace off the first line we're inserting, assuming it's already being represented by the indentation of the line we're onto which we're appending it.
2012-10-23 16:17:26 -06:00
Kevin Sawicki
4eff8b657f
💄
2012-10-23 13:57:17 -07:00
Kevin Sawicki
7ea905a906
Remove unneeded requires
2012-10-23 13:57:17 -07:00
Nathan Sobo
3b18c6a42d
With autoIndent disabled, don't use suggested first line indent when normalizing
...
Also, when some lines are *less* indented than the first line, it might not be possible to outdent them as far as they originally were relative to the first line, so we do as much as possible.
2012-10-23 14:27:26 -06:00
Corey Johnson
8f4ec3c45e
Fix command panel specs
2012-10-23 13:21:35 -07:00
Corey Johnson
ae7264ad12
Fix autocomplete specs
2012-10-23 13:21:35 -07:00
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
f0e7242dca
override default 'enter' binding on autocomplete mini-editor
2012-10-23 13:21:34 -07:00
Corey Johnson
b4e3e11deb
Listen for core:cancel event directly on AutoComplete view
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
Corey Johnson
72a64b8e8b
Add core:cancel and core:confirm to atom keymap
...
Also 💄
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