Commit Graph

1896 Commits

Author SHA1 Message Date
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
eac6c08fc1 Selection.proto.insertText clears the selection *before* inserting the given text 2012-04-19 11:19:57 -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
1c8ecb073d Selection only relocates cursor on text input when it is reversed 2012-04-19 10:34:16 -06:00
Corey Johnson & Nathan Sobo
881e3b86db 💄 2012-04-19 10:33:45 -06:00
Corey Johnson & Nathan Sobo
49b5263fd7 Listen on Editor for bubbled textInput events instead of directly on hidden input 2012-04-19 10:14: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
317b8ddf05 Fix autocomplete:cancel keybinding 2012-04-18 15:58:36 -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
8471977d17 💄
Nathan's code pee
2012-04-18 15:56:29 -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 & Nathan Sobo
6037d83f2b $.fn.preempt takes namespaced event names 2012-04-18 15:53:42 -07:00
Corey Johnson & Nathan Sobo
6a260a8359 Add $.fn.preempt, which runs the given event handler before any others. 2012-04-18 12:13:05 -07:00
Corey Johnson
e58ba6376d Listen on Editor for autocomplete:cancel events 2012-04-18 11:38:55 -07:00
Corey Johnson
376b9c4217 Autocomplete uses attach/detach 2012-04-18 11:35:58 -07:00
Corey Johnson
6b63d8eb8d Listen for autocomplete:select on Editor 2012-04-18 11:35:33 -07:00
Corey Johnson
82191a80cb Listen for autocomplete:select on Editor 2012-04-18 11:34:46 -07:00
Corey Johnson
bd964d8bc0 💄 2012-04-18 11:33:45 -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
Nathan Sobo
b5e2beab96 💄 2012-04-18 10:56:54 -06:00
Corey Johnson
594496f1a6 Fix broken specs 2012-04-17 17:44:19 -07:00
Corey Johnson
9ac72d7fba non-working version of autocomplete focusing 2012-04-17 17:37:20 -07: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
5e5c835aff 💄 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
e4024e11e5 Add emacs-style bindings for selecting 2012-04-17 17:51:16 -06: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
Corey Johnson
5b67feff54 Autocomplete will match on either side of selected text when completing words 2012-04-16 16:26:09 -07:00
Corey Johnson
e40040c573 Autocomplete creates selection over auto-completed text 2012-04-16 15:36:45 -07:00
Corey Johnson
eacb21ca1a Detach buffer change event listeners from Autocomplete when editor's buffer changes 2012-04-16 15:22:39 -07:00
Corey Johnson
c82ca5d1ee Store current buffer on Autocomplete 2012-04-16 15:15:43 -07:00
Corey Johnson
b61a14150e Very basic autocomplete working 2012-04-16 14:57:29 -07:00
Corey Johnson
5e2e550217 Renderer.expandBufferRangeToLineEnds and Renderer.expandScreenRangeToLineEnds use Range.fromObject 2012-04-16 14:57:01 -07:00
Corey Johnson
54f7212ad8 💄 2012-04-16 14:55:51 -07:00
Nathan Sobo
07acf0817e When opening a file, don't also create an edit session or an empty buffer
Also: RootView.proto.activeEditor no longer constructs an editor. To open an empty buffer, call RootView.proto.open with no path argument. It will build a new editor if needed.
2012-04-13 17:47:41 -06:00
Nathan Sobo
c899b5e827 Build a Project if necessary upon saving a previously unsaved buffer 2012-04-13 15:46:22 -06:00
Nathan Sobo
08b4a86f85 Set top and left position of root pane to 0 in adjustPaneDimensions 2012-04-13 15:27:15 -06:00
Nathan Sobo
7e3abe4ff3 Set document.title to the project path when the last editor is closed 2012-04-13 15:22:15 -06:00
Nathan Sobo
9819030b7d Set document.title to the project path even if there are no editors open + 💄 2012-04-13 15:14:18 -06:00
Nathan Sobo
6c5b2a47ec Reset document.title after each spec to prevent test pollution 2012-04-13 15:11:33 -06:00
Nathan Sobo
c673c5114e Ensure that Editor.proto.serialize returns a copy of each edit session 2012-04-13 14:29:58 -06:00