Nathan Sobo
ded6281e0f
Merge branch 'master' into toggle-comments
2012-06-04 12:07:54 -06:00
Nathan Sobo
d2a1da7ba6
Window spec no longer nukes the jasmine stylesheet
2012-06-04 12:07:37 -06:00
Nathan Sobo
a033d13c1a
Merge branch 'master' of github.com:github/atom into toggle-comments
2012-06-04 11:55:15 -06:00
Nathan Sobo
b667ba4262
If selection is empty when toggling a line comment, keep it empty
2012-06-04 11:50:48 -06:00
Corey Johnson
2f6dd085ee
Editor toggle-fold event toggles the largest fold at the cursor position
2012-06-04 09:44:20 -07:00
Corey Johnson & Nathan Sobo
fd152ef2a9
When a fold is created inside an existing fold, don't trigger change events or update line map.
2012-06-02 09:21:06 -07:00
Corey Johnson & Nathan Sobo
2f435e08f3
Add regression test for "can't create multiple folds over same region".
...
Am I using the term regression test correctly?
2012-06-02 08:56:02 -07:00
Nathan Sobo
14e399fdf0
Meta-/ comments out selected lines
2012-06-01 19:38:33 -06:00
Corey Johnson
ca4371d9ce
The solution to all build problems
2012-06-01 15:35:38 -07:00
Nathan Sobo
2c35a1f12d
LineCommenter.proto.toggleLineCommentsInRange comments / uncomments lines in a selection
2012-06-01 14:28:40 -06:00
Nathan Sobo
d8b324e14f
WIP: Starting on toggling comments.
2012-06-01 14:03:48 -06:00
Nathan Sobo
58c082445b
Merge branch 'master' of github.com:github/atom
2012-06-01 14:01:44 -06:00
Nathan Sobo
74bd510e75
💄 rename ScreenLineFragment to ScreenLine
...
These objects always span an entire screen line now that we do line-wise folding
2012-06-01 14:01:33 -06:00
Corey Johnson
30d07fd1a0
Rename Buffer.numLines to Buffer.getLineCount
2012-06-01 11:25:58 -07:00
Nathan Sobo
37d423fb60
Fix broken build :-/
2012-06-01 12:22:54 -06:00
Nathan Sobo
5b20bfd994
Method name 💄 for Highlighter
2012-06-01 12:15:26 -06:00
Corey Johnson
5a0eb5814d
We are using scrollTop instead of -wekbit-transform, update specs to reflect this.
2012-06-01 11:06:14 -07:00
Corey Johnson
6952e09646
Moved font-size back to 'px' and fixed specs
2012-06-01 11:06:13 -07:00
Corey Johnson
2623724fd4
Add fold-all event to editor
2012-06-01 11:06:13 -07:00
Nathan Sobo
9cb067f162
Enable auto-indent for 1 more spec + 💄
2012-05-31 18:22:54 -06:00
Nathan Sobo
502208dcf4
Enable auto-indent for spec
2012-05-31 18:17:39 -06:00
Nathan Sobo
9f5a7ceefe
Merge branch 'master' into structural-folding
2012-05-31 18:05:13 -06:00
Nathan Sobo
645f57bb40
Merge branch 'master' of github.com:github/atom
2012-05-31 17:49:31 -06:00
Nathan Sobo
acb01bba37
Correctly render lines when destroying a fold forces an autoscroll
2012-05-31 17:48:50 -06:00
Corey Johnson
4f5a03ee4d
Merge branch 'master' into structural-folding
2012-05-31 16:24:01 -07:00
Corey Johnson
1a9566d954
Merge branch 'master' into binding-viewer
2012-05-31 15:55:23 -07:00
Corey Johnson
b03230cc6c
Move auto indent/outdent to selection spec
2012-05-31 13:57:04 -07:00
Corey Johnson
516de1ede1
Merge branch 'master' into structural-folding
2012-05-31 11:46:23 -07:00
Corey Johnson
2df7c26353
Folding works with coffeescript
2012-05-31 11:30:06 -07:00
Nathan Sobo
fdb8ba8a2b
Remove redundant gutter spec. Corey's is in a better spot.
2012-05-31 12:13:36 -06:00
Nathan Sobo
06fffe6c4b
Merge branch 'master' of github.com:github/atom
...
Conflicts:
src/app/editor.coffee
2012-05-31 12:11:07 -06:00
Nathan Sobo
c901417a19
When lines are added, remove any that get pushed down to exceed the max allowed row
...
This fixes issues where unfolding or pasting caused rendering artifacts below the last visible row.
2012-05-31 12:06:00 -06:00
Corey Johnson
17c0526bc3
Add test for gutter rendering of fold lines
2012-05-31 10:26:34 -07:00
Nathan Sobo
39fb14e5f5
Add a spec for line number updates after folding/unfolding
2012-05-31 10:57:04 -06:00
Nathan Sobo
6c64d2a13b
spec 💄
2012-05-31 10:46:00 -06:00
Corey Johnson
17b50ee8dc
Folds include their first line
2012-05-30 16:55:15 -07:00
Corey Johnson
42e743f44a
Renderer.toggleFold works for folded, foldable and non-foldable lines
...
When a line is not foldable, we search upward for a suggested fold that contains it and apply that fold instead. If called with a row that is already folded, it unfolds it.
2012-05-30 16:29:45 -07:00
Corey Johnson
76f5d35eb9
Add toggle-fold event to editor
2012-05-30 15:43:21 -07:00
Corey Johnson & Nathan Sobo
63a87fd83e
Renderer.createFoldAtBufferRow uses the fold suggester to determine which syntactic region to fold
2012-05-30 16:02:06 -06:00
Corey Johnson & Nathan Sobo
84318277ba
FoldSuggester can return a row range of a foldable syntactic region starting at a given row
2012-05-30 16:01:21 -06:00
Corey Johnson & Nathan Sobo
e10383a9e9
Add Highlighter.findClosingBracket
...
Takes a position, and finds the position of the closing bracket that matches the opening bracket at that position. Only works with curly-braces for now.
2012-05-30 15:58:59 -06:00
Corey Johnson & Nathan Sobo
51ec8b4ca2
💄
2012-05-30 15:57:03 -06:00
Corey Johnson & Nathan Sobo
8a77a740f5
Renderer indicates when a screen line starts a foldable region
2012-05-30 12:27:01 -06:00
Corey Johnson
893564945e
Add rootView.activeKeybindings().
...
This will return all active keybindings available for the focused element.
2012-05-29 15:46:38 -07:00
Corey Johnson
64bd26a392
Add Keymap.bindingsForElement method
2012-05-29 14:15:54 -07:00
Nathan Sobo
0ef4c7e172
Only re-render the gutter when we render new lines
2012-05-29 15:12:11 -06:00
Nathan Sobo
3e26386f98
Always re-render gutter from the first rendered to the last rendered screen row
2012-05-29 14:51:19 -06:00
Nathan Sobo
0700aba67f
All specs pass again with overdraw
2012-05-29 13:39:13 -06:00
Nathan Sobo
6e34124f12
Overdraw gutter line numbers in addition to editor lines
2012-05-29 13:07:24 -06:00
Nathan Sobo
a9c9a854ac
Only truncate change ranges to the last visible row if the last rendered row is smaller
...
This happens, for example, when the entire buffer is shorter than the number of rows on screen. In this case, the last rendered row is not smaller than the last possible visible row.
2012-05-29 13:03:29 -06:00
Nathan Sobo
c00c3317f0
Down to 2 failures by truncating change ranges to the range of the current rendered lines
2012-05-29 12:52:39 -06:00
Nathan Sobo
e9a67208e6
Adjust otherwise-passing spec for overflow
2012-05-29 11:50:54 -06:00
Nathan Sobo
8fba4ff935
Fix some off by one errors in the overdraw calculations
2012-05-26 13:52:48 -07:00
Nathan Sobo
328aa3ba6b
WIP: Redoing overdraw code… it's broken
2012-05-26 13:05:25 -07:00
Nathan Sobo
351c283ed6
Merge branch 'master' into overdraw
2012-05-25 13:13:06 -07:00
Nathan Sobo
e2ca3814a9
Hide the cursor when it is on a fold line
2012-05-25 12:35:32 -07:00
Corey Johnson & Nathan Sobo
35b2f0e8c7
Buffer changes updates a stable list of folds
2012-05-25 11:05:45 -07:00
Corey Johnson & Nathan Sobo
f8c3d89e60
When folds are selected they are highlighted
2012-05-24 16:39:14 -07:00
Corey Johnson & Nathan Sobo
74594ed2be
Destroy folds before inserting text on a fold line. Spec for deleting a fold line.
2012-05-24 13:53:48 -07:00
Corey Johnson & Nathan Sobo
f97912c160
💄
2012-05-24 11:43:09 -07:00
Corey Johnson & Nathan Sobo
9b83ce6545
renderer tells editor when the gutter needs to be updated
2012-05-24 11:17:37 -07:00
Corey Johnson & Nathan Sobo
c1197c1d0e
spec 💄
2012-05-23 14:56:22 -07:00
Corey Johnson & Nathan Sobo
dd7fff4522
WIP: Adding specs for various fold corner cases… think we still have some issues and gutter updates are failing.
2012-05-23 11:03:33 -07:00
Corey Johnson & Nathan Sobo
04f4a9a765
WIP: Handle buffer change events correctly with respect to folded lines
...
We're handling changes that straddle the start row and are in the middle of the fold, but we're still screwing up when the old range straddles the end row.
2012-05-22 19:02:13 -07:00
Corey Johnson
7b4ebcdd42
Changes inside a fold correctly change the start/end row
2012-05-22 12:09:37 -07:00
Corey Johnson
a7d43c2cca
meta-alt-u unfolds lines at cursor
2012-05-22 09:38:14 -07:00
Corey Johnson
50146ce3ae
Merge branch 'fold-simplification' of github.com:github/atom into fold-simplification
2012-05-22 08:52:30 -07:00
Nathan Sobo
74008ab329
Fold placeholder lines are treated as if they're empty
2012-05-21 19:20:18 -07:00
Nathan Sobo
3f4c7deb30
Nuke stray call to Editor.logLines
2012-05-21 19:00:02 -07:00
Nathan Sobo
72f1874c5b
Nuke more old fold specs
2012-05-21 18:55:05 -07:00
Nathan Sobo
031c04b888
Clean up remaining position translation spec for folds. It still has one legit failure though.
2012-05-21 18:48:28 -07:00
Nathan Sobo
f3cada9e20
Nuke some fold tests that don't matter anymore
2012-05-21 18:46:16 -07:00
Nathan Sobo
581998f94b
Oh, un-F
2012-05-21 18:35:51 -07:00
Nathan Sobo
7744d6087b
Merge branch 'fold-simplification' of github.com:github/atom into fold-simplification
2012-05-21 17:56:16 -07:00
Nathan Sobo
f39891b912
Folds are destroyed when their placeholder line is clicked
2012-05-21 17:55:58 -07:00
Corey Johnson
b4e8157172
💄
2012-05-21 15:27:36 -07:00
Corey Johnson
a5656400aa
Merge branch 'fold-simplification' of github.com:github/atom into fold-simplification
2012-05-21 15:01:23 -07:00
Corey Johnson
d2899fa58a
Folds handle change events
2012-05-21 15:01:14 -07:00
Nathan Sobo
7ad5830521
Convert failing specs to linewise code folding
2012-05-21 14:18:00 -07:00
Corey Johnson
8af289dde1
Merge branch 'fold-simplification' of github.com:github/atom into fold-simplification
2012-05-21 13:45:07 -07:00
Nathan Sobo
9beff8edbb
Un-F
2012-05-21 13:36:19 -07:00
Nathan Sobo
4f60135d81
Remove random indent that was causing editor spec not to run
2012-05-21 13:35:54 -07:00
Corey Johnson
d7e1ffcdf2
Update render spec to new version of Renderer.createFold
2012-05-21 10:29:48 -07:00
Nathan Sobo
a57ccc1b7f
Remove specs that don't matter anymore w/ linewise folding
2012-05-18 20:59:58 -06:00
Nathan Sobo
c491d92437
Nested folds can start at the same row as the fold that contains them
...
...still need to test destroying the outer fold though.
2012-05-18 20:14:05 -06:00
Nathan Sobo
9757786257
Add passing spec for nested folds (that start on different rows)
2012-05-18 19:39:23 -06:00
Nathan Sobo
03ae0bbbb6
Guts on the floor, but 2 line-wise fold specs are passing and the renderer is getting there
2012-05-18 19:22:56 -06:00
Corey Johnson & Nathan Sobo
39e02bbf9f
wip: what nathan and corey did
2012-05-18 15:15:44 -07:00
Corey Johnson & Nathan Sobo
4c92be669e
Remove non-passing unneeded spec
2012-05-18 14:12:41 -07:00
Corey Johnson & Nathan Sobo
8e9db80b58
wip: another failing fold test
2012-05-18 11:59:54 -07:00
Corey Johnson & Nathan Sobo
20c9b61b91
Fix issue where creating a second fold on a wrapped line fragment caused a duplicate line to be rendered
2012-05-18 12:22:40 -06:00
Corey Johnson & Nathan Sobo
06d1f8a718
Create a failing fold spec
2012-05-17 17:20:17 -07:00
Corey Johnson & Nathan Sobo
608ccc38e8
Update rendered lines when buffer changes occur outside/straddling rendered region
2012-05-17 16:06:39 -07:00
Corey Johnson
857486bcf1
After buffer changes, remove any lines that are beyond the current last rendered screen row.
2012-05-17 10:34:54 -07:00
Corey Johnson
52fe580cf6
Test that inserting lines re-renders the gutter
2012-05-17 10:17:05 -07:00
Corey Johnson
0e09659d79
Gutter adjusts its width to account for the width of the last line number
2012-05-17 10:16:20 -07:00
Corey Johnson
7a82bf2679
💄
2012-05-17 08:49:03 -07:00
Nathan Sobo
0d093c3014
2012-05-16 17:28:07 -06:00
Nathan Sobo
5045d68be2
2012-05-16 14:47:09 -06:00
Nathan Sobo
a7b5f0c249
Un-F
2012-05-16 14:12:11 -06:00
Nathan Sobo
92395a9cfb
Merge branch 'master' of github.com:github/atom
...
Conflicts:
src/app/editor.coffee
2012-05-16 14:07:44 -06:00
Nathan Sobo
2d8ba3b1ee
Use translate3d to scroll lines / gutter in attempt to improve repaint.
...
Also: Add custom scrollTop method to editor that manages all the custom optimizations we are doing around scrolling.
2012-05-16 13:47:59 -06:00
Corey Johnson
2c508f5a31
Fix tests
...
Certain tests resize the editor and expect the number of lines to adjust, this forces the test to meet that expectation.
2012-05-16 11:30:25 -07:00
Corey Johnson
3614ad6e76
Update lines when the font size changes
2012-05-16 10:58:19 -07:00
Corey Johnson
399fc71b3c
Make Atom SpacePen view's default to empty object (where needed)
2012-05-16 10:35:50 -07:00
Corey Johnson
484b55800a
Call updateLines when lines are removed from buffer
2012-05-15 14:27:22 -07:00
Corey Johnson
54a3823606
Buffer change events update the @lastRenderedScreenRow
2012-05-15 12:29:59 -07:00
Corey Johnson
6b3664a040
Vertical scrollbar height is updated when switching buffers
2012-05-15 10:02:56 -07:00
Corey Johnson & Nathan Sobo
9079bcb103
Meta-a selects everything
2012-05-14 16:18:37 -06:00
Corey Johnson & Nathan Sobo
513e15e369
Make editor tall so that all line numbers are rendered for this test
2012-05-14 15:42:51 -06:00
Corey Johnson
b35a2502c6
Gutter line numbers are rendered similarly to the scroll view's lines
2012-05-14 12:32:53 -07:00
Corey Johnson
5e4aef95d0
Only visible lines numbers are rendered by the gutter
2012-05-14 09:53:58 -07:00
Nathan Sobo
0c89db37a5
Editor scroll position is correctly restored on refresh.
...
When we attach the editor we need to scroll it to the correct position before rendering lines. But to scroll it to the right position, the lines container and the scrollbar need to be assigned a height that allows them to scroll. So now we call `prepareForVerticalScrolling` on attach, then set the scroll position based on the edit session and render the visible lines.
2012-05-11 17:51:47 -06:00
Nathan Sobo
96d92be230
Rename Editor.scrollbar to verticalScrollbar for clarity
2012-05-11 13:45:57 -06:00
Nathan Sobo
b64e9ae10f
Rename Editor.scroller to Editor.scrollView to distinguish it from the vertical scrollbar.
...
Also, base edit session scroll top on the scrollbar instead of the scrollView.
2012-05-11 13:42:57 -06:00
Corey Johnson & Nathan Sobo
9427c82084
WIP: Getting specs passing with new stand-in vertical scrollbar
2012-05-11 11:52:03 -06:00
Corey Johnson & Nathan Sobo
02da32d372
Update visible lines when scrolling up
2012-05-10 16:11:05 -06:00
Corey Johnson & Nathan Sobo
43ac7edf0f
Scrolling to bottom renders correct lines
...
When we scroll more than a single screen's worth of lines, the new first visible screen row ends up exceeding the previous last rendered screen row, so we need to use the maximum of the two when deciding which new rows to render.
2012-05-10 15:15:34 -06:00
Corey Johnson & Nathan Sobo
c5d2616155
WIP: Removing lines that are no longer visible
2012-05-10 12:08:58 -07:00
Corey Johnson & Nathan Sobo
22548141d7
Editor updates lines when it is resized
2012-05-10 11:14:03 -07:00
Corey Johnson & Nathan Sobo
f6e9d99865
Editor only does not pre-build lines, it only builds them when they are visible on the screen
2012-05-10 10:40:16 -07:00
Corey Johnson & Nathan Sobo
6eda0d345b
💄
2012-05-10 08:58:38 -07:00
Nathan Sobo
1e2d333a15
WIP: working on only rendering on-screen lines. still half-baked.
2012-05-10 09:27:04 -06:00
Corey Johnson & Nathan Sobo
5ae40a3cb8
Editor only renders lines when it is attached to the DOM
2012-05-09 19:19:54 -06:00
Nathan Sobo
5b7ea95a11
Meta+ and meta- change the editor font size
2012-05-09 10:57:25 -06:00
Nathan Sobo
f2f44b9ab6
Can match key patterns with the '-' character
...
Add a parser to parse keystroke patterns instead of splitting on '-' with a regex
2012-05-09 10:56:31 -06:00
Nathan Sobo
8b1ac28b89
Editor font sizes can be adjusted with RootView.proto.setFontSize
2012-05-09 08:34:08 -06:00
Nathan Sobo
6dda27e771
Go ahead and build a RootView in the editor spec
2012-05-08 20:20:56 -06:00
Corey Johnson & Nathan Sobo
4665321b37
Project.getFilePaths does not traverse into ignored directories
2012-05-08 17:59:38 -07:00
Corey Johnson
cb45675f14
Remove @path var from project
2012-05-08 13:02:14 -07:00
Nathan Sobo
9215d7f083
Remove console.log from root view spec
2012-05-08 13:16:24 -06:00
Nathan Sobo
648649d472
Merge branch 'master' of github.com:github/atom
...
Conflicts:
spec/app/root-view-spec.coffee
src/app/root-view.coffee
2012-05-07 19:38:01 -06:00
Nathan Sobo
31163f1d8c
Convert FileFinder to a proper extension and remove references from RootView code
2012-05-07 19:30:07 -06:00
Corey Johnson
e4125448ec
Make RootView.initialize unaware of deserialization.
...
When RootView is created without a pathToOpen, no editor is created.
2012-05-07 17:51:08 -07:00
Corey Johnson
dd1e617a41
remove compiled coffee file from src dir
2012-05-07 17:51:08 -07:00
Nathan Sobo
37438c6da8
Status bar path and cursor position updates
2012-05-04 13:58:11 -06:00
Corey Johnson & Nathan Sobo
28ff26e845
Merge branch 'master' into statusbar
...
Conflicts:
src/app/editor.coffee
src/app/project.coffee
src/app/root-view.coffee
2012-05-04 11:41:13 -06:00
Corey Johnson
670717ca3b
RootView deactivates extensions when it is deactivated
2012-05-03 17:31:37 -07:00
Corey Johnson & Nathan Sobo
f3c89240a3
Rename RootView.registerExtension() to RootView.activateExtension()
2012-05-03 17:13:09 -07:00
Corey Johnson & Nathan Sobo
870db53d3e
Directory spec calls .off() when testing unwatch path
2012-05-03 09:43:45 -07:00
Corey Johnson & Nathan Sobo
5864fa5145
Add RootView.registerExtension()
2012-05-02 15:25:57 -07:00
Corey Johnson
d04be05e95
Root view sets project's path using project.setPath(path)
2012-05-01 10:00:53 -07:00
Corey Johnson
28f39cbdab
When project's constructor is given a file as its path, it sets its path to the parent directory of the given file
2012-05-01 09:18:22 -07:00
Corey Johnson
acae9d63ca
fs.directory does not append a trailing '/' to directories
2012-05-01 08:41:35 -07:00
Nathan Sobo
47c013f817
After each spec runs, make sure there are no subscriptions on directories (which would leak memory)
2012-04-26 15:54:54 -06:00
Nathan Sobo
fb6a967a18
EventEmitter.off with no args removes all subscriptions
2012-04-26 15:54:12 -06:00
Nathan Sobo
d6f5a5631c
If temporary file is present in beforeEach, wait 20ms after deleting it to ensure the add event fires
2012-04-26 12:20:18 -06:00
Nathan Sobo
05bcd3e5e0
Fix EventEmitter… need to wait until after the loop to return!
2012-04-26 11:59:47 -06:00
Nathan Sobo
5156a37471
WIP: Tree view spec isn't there yet
2012-04-26 09:32:49 -06:00
Nathan Sobo
5c057e11b1
Make unwatchPath spec make a valid negative assertion and return the watchId from $native.watchPath
2012-04-25 20:14:35 -06:00
Corey Johnson & Nathan Sobo
3ac49e1cd5
add $native.unwatch(path, id)
2012-04-25 18:03:51 -07:00
Corey Johnson & Nathan Sobo
54d869c52e
Add Directory spec
2012-04-25 17:38:33 -06:00
Nathan Sobo
590352b079
RootView emits an 'active-editor-path-change' event whenever the path of the active editor changes for any reason (buffer path change, new buffer opened, focus changes)
2012-04-24 12:50:00 -06:00
Nathan Sobo
3d382955cc
When focus changes to a different editor, highlight its open file in the TreeView
...
Trigger 'active-editor-path-change' event whenever active editor changes or the path of the active editor changes. Rename 'buffer-path-change' to 'editor-path-change' to emphasize that it's the path open in an *editor* that's changing.
2012-04-24 08:51:11 -06:00
Nathan Sobo
d204c6f5a8
Don't load user configuration in window specs (who knows what's in there?!)
2012-04-23 14:19:50 -06:00
Nathan Sobo
634a15cfb1
Move extensions into src/extensions directory
2012-04-23 10:54:56 -06:00
Nathan Sobo
89ed9f39f1
Strip only trailing whitespace, not newlines. Also, strip *all* trailing whitespace, not just the first.
2012-04-23 10:33:28 -06:00
Nathan Sobo
802a4259e9
Move-to-first-character-of-line no longer explodes on empty lines
2012-04-20 18:11:01 -06:00
Corey Johnson & Nathan Sobo
a6afc319c6
Mini-editors ignore the 'close' event
2012-04-20 17:59:40 -06:00
Corey Johnson & Nathan Sobo
f652b4e357
Position autocomplete menu above cursor if there isn't room below
2012-04-20 17:18:07 -06:00
Corey Johnson & Nathan Sobo
11c465b7fd
Canceling autocomplete restores text and selection, even if selection has changed before cancel
2012-04-20 17:17:50 -06:00
Corey Johnson & Nathan Sobo
9d2b005174
When an autocomplete match is clicked, the match is selected and confirmed
2012-04-20 15:41:31 -06:00
Corey Johnson & Nathan Sobo
f0c36ada89
Don't activate autocomplete on its own mini editor
2012-04-20 15:15:55 -06:00
Corey Johnson & Nathan Sobo
41a5f217a5
Scroll to selected match when moving up/down in autocomplete menu
2012-04-20 14:55:54 -06:00
Corey Johnson & Nathan Sobo
1a398ffcb9
Use class instead of id for autocomplete
2012-04-20 14:29:00 -06:00
Corey Johnson & Nathan Sobo
df219f2ad5
Autocomplete.activate enables autocomplete for all current and future editors.
...
Also attach autocomplete view to editor instead of document.body
2012-04-20 11:23:08 -07:00
Corey Johnson
aac511deff
💄
2012-04-20 10:38:27 -07:00
Nathan Sobo
f965979fb8
Merge branch 'master' of github.com:github/atom
2012-04-20 11:03:42 -06:00
Nathan Sobo
7b984f3743
Don't throw exception when confirming autocomplete with no matches
2012-04-20 11:03:25 -06:00
Corey Johnson
82864d683a
Removing text from Autocomplete's mini-editor refilters match list
2012-04-20 09:23:19 -07:00
Corey Johnson
01865e07fd
Remove autocomplate:toggle, replace with autocomplete:attach and autocomplete:cancel
2012-04-20 08:41:56 -07:00
Corey Johnson
eaf7ee8ec1
Only emit editor-open event once (on first attachment)
2012-04-19 18:12:55 -07:00
Corey Johnson & Nathan Sobo
800f16bb29
Editor emits an editor-open event when attached
2012-04-19 17:56:08 -07:00
Nathan Sobo
0024cf89de
Auto-complete matches can be fuzzy-filtered. Typing non-word characters confirms the match automatically.
...
Extract fuzzyFilter function into a file that is shared between file finder and autocompleter. Fix jQuery.fn.preempt to pass its arguments to the event handler.
2012-04-19 18:17:08 -06:00
Corey Johnson & Nathan Sobo
6ea9901ef2
Autocomplete uses miniEditor
2012-04-19 14:59:02 -07:00
Corey Johnson & Nathan Sobo
12a150b446
Move cursor to end of completed word on confirm
2012-04-19 12:32:44 -06:00
Corey Johnson & Nathan Sobo
905f91a179
💄
2012-04-19 12:09:45 -06:00
Corey Johnson & Nathan Sobo
66f7373b3d
When insertion of text during autocomplete results in no matches, automatically select current match and insert the inserted text after it
2012-04-19 12:03:47 -06:00
Corey Johnson & Nathan Sobo
99621acdd7
Finish partially-commented autocomplete spec
2012-04-19 11:23:20 -06:00
Corey Johnson & Nathan Sobo
16837b67a9
Autocomplete menu is updated when user types additional characters
2012-04-19 11:20:18 -06:00
Corey Johnson & Nathan Sobo
7462222387
Allow calls to startBatch/endBatch to be nested
2012-04-19 11:19:24 -06:00
Corey Johnson & Nathan Sobo
881e3b86db
💄
2012-04-19 10:33:45 -06:00
Corey Johnson & Nathan Sobo
d768f1a50f
Autocomplete closes when when cursor position changes
2012-04-18 17:22:52 -07:00
Corey Johnson & Nathan Sobo
5e1d7c774c
Serialized Editor state no longer contains Buffer objects
2012-04-18 15:57:58 -07:00
Corey Johnson & Nathan Sobo
a8d9d1690e
Autocomplete preempts Editor move-up and move-down events and unsubscribes from Buffer change events when Editor is removed.
2012-04-18 15:56:09 -07:00
Corey Johnson
e58ba6376d
Listen on Editor for autocomplete:cancel events
2012-04-18 11:38:55 -07:00
Corey Johnson
82191a80cb
Listen for autocomplete:select on Editor
2012-04-18 11:34:46 -07:00
Corey Johnson
bee683245b
move-up, move-down change selection in autocomplete
2012-04-18 10:23:15 -07:00
Nathan Sobo
34d41032d4
Merge branch 'master' of github.com:github/atom
2012-04-18 11:09:42 -06:00
Nathan Sobo
e89a2255cf
Tear down editors and unsubscribe from buffers on window unload to prevent exceptions when typing after reload
2012-04-18 11:01:30 -06:00
Corey Johnson
904c05660d
Add move-down event to Autocomplete
2012-04-17 17:37:19 -07:00
Corey Johnson
f8fd7251e4
Add 'move-down' event to autocomplete
2012-04-17 17:37:19 -07:00
Corey Johnson
d41ac6626f
Autocomplete extends View
2012-04-17 17:37:19 -07:00
Corey Johnson
c96ac1638f
💄
2012-04-17 17:37:18 -07:00
Nathan Sobo
fe3420f614
Add StripTrailingWhitespace extension.
...
It's not on by default, and needs to be initialized from the init script.
2012-04-17 17:50:57 -06:00
Nathan Sobo
0a9e14a408
Buffers emit 'before-save' and 'after-save' events during save
2012-04-17 17:45:40 -06:00
Nathan Sobo
331984148f
Project.proto.open emits a 'new-buffer' event if a new buffer is created
...
RootView.proto.open always uses Project's open method now. RootView creates a project with no path when editing a new buffer, so there's always a project.
2012-04-17 17:15:19 -06:00
Nathan Sobo
77ba75a4c6
Trying to position at the bottom. We need a better flexbox impl
2012-04-17 13:41:31 -06:00
Nathan Sobo
012237678e
Status bar renders current path and buffer position on initialization
2012-04-17 12:09:06 -06:00
Nathan Sobo
a5a573d732
StatusBar.initialize appends a status bar view to every current and future editor pane
2012-04-17 11:37:01 -06:00