Commit Graph

1497 Commits

Author SHA1 Message Date
Will Farrington
7dd69cfecd Merge remote-tracking branch 'origin/master' into status-bar-buffer-modified-indicator 2012-10-08 17:38:55 -10:00
Chris Wanstrath
602f4ee233 trigger buffer-change after the change, not before 2012-10-08 20:28:18 -07:00
Chris Wanstrath
fa10a8e6ac use the local selection instance 2012-10-08 20:13:16 -07:00
Chris Wanstrath
f5f18abbf0 ctrl-t: transpose 2012-10-08 20:08:07 -07:00
Kevin Sawicki
7fc362c801 Prune paths that are files
This avoids an extra call to isDirectory for each path
that has already been determined to be a file and
therefore not a directory.
2012-10-08 12:10:49 -07:00
Will Farrington
09024e0dc8 Merge remote-tracking branch 'origin/master' into status-bar-buffer-modified-indicator 2012-10-07 09:13:08 -10:00
Nathan Sobo
c09f7ebc60 Fix the command panel's handling of move-up/move-down
Forgot to add the core: prefix to this area
2012-10-05 10:55:55 -10:00
Nathan Sobo
d4b6ba4c11 Make SelectList handle prefixed move-up and move-down events 2012-10-05 10:43:24 -10:00
Nathan Sobo
a180e6d703 Merge branch 'master' into event-palette
Conflicts:
	spec/extensions/fuzzy-finder-spec.coffee
	src/app/editor.coffee
	src/extensions/fuzzy-finder/fuzzy-finder.coffee
2012-10-05 10:29:10 -10:00
Nathan Sobo
ae224ca515 Prefix events handled by root-view with "root-view:" 2012-10-05 10:07:37 -10:00
Nathan Sobo
9906dd41b4 Give editor-specific events the "editor:" prefix 2012-10-05 10:07:37 -10:00
Nathan Sobo
0ab50cf102 Move cut, copy, and paste into "core:" 2012-10-05 10:07:37 -10:00
Nathan Sobo
23f4e533d9 Move undo and redo in "core:" 2012-10-05 10:07:37 -10:00
Nathan Sobo
a2a15a90fd Move backspace and delete into "core:" 2012-10-05 10:07:37 -10:00
Nathan Sobo
8cde98bf45 Move select-to-top/bottom and select-all into "core:" 2012-10-05 10:07:36 -10:00
Nathan Sobo
c221729407 Move "select-up/down/left-right" into "core:" 2012-10-05 10:07:36 -10:00
Nathan Sobo
6df8ebb183 Bind emacs bindings for "core:" events to body 2012-10-05 10:07:36 -10:00
Nathan Sobo
6061c3e52a Prefix move-to-top/bottom page-up/down with "core:" 2012-10-05 10:07:36 -10:00
Nathan Sobo
67c6ed8de7 Prefix "move-*" events with "core:"
I want to prefix all custom events for better categorization and to
distinguish them from built-in webkit events
2012-10-05 10:07:36 -10:00
Kevin Sawicki
c30220ae80 Uncomment lines that match non-whitespace prefix of comment regex 2012-10-04 15:37:28 -07:00
Nathan Sobo
fc318ce5e9 Correctly focus fuzzy-finder/event-palette when triggered while other is showing
When canceling the fuzzy finder or event palette, we should only focus the root view / previous element if the mini editor is still focused. Otherwise, it was a change of focus elsewhere that caused us to be cancelled, and we don't want to interfere with that focus change.
2012-10-04 10:26:07 -10:00
Nathan Sobo
eced862902 Add select-list keymap that handles up/down/confirm/cancel
This means these bindings can be removed from the fuzzy finder keymap
2012-10-04 10:26:07 -10:00
Nathan Sobo
1e9b40a6ea Select the first list item after changing the list filter 2012-10-04 10:26:07 -10:00
Nathan Sobo
2991048c1e SelectList allows list items to be clicked 2012-10-04 10:26:06 -10:00
Nathan Sobo
7f3165fa7b When the select list is cancelled or its editor loses focus, it detaches itself 2012-10-04 10:26:06 -10:00
Nathan Sobo
6450b6c96f Select list wraps around when handling move-up / move-down events 2012-10-04 10:26:06 -10:00
Nathan Sobo
149889abfc Start converting fuzzy finder to a subclass of SelectList 2012-10-04 10:26:06 -10:00
Nathan Sobo
9e6fc44d39 SelectList handles 'core:confirm' and 'core:cancel' events 2012-10-04 10:26:06 -10:00
Jerry Cheung & Nathan Sobo
b5cb125b7f Select list scrolls to selected item on move-up/move-down 2012-10-04 10:26:06 -10:00
Jerry Cheung & Nathan Sobo
a3f25fbc9b Start on SelectList, a common base class for filterable lists
Like autocompleter, fuzzy-finder, and event palette
2012-10-04 10:26:06 -10:00
Nathan Sobo
0ecdabb023 Pressing enter emits an event on the previously focused element 2012-10-04 10:26:06 -10:00
Nathan Sobo
1b013cc029 Add ability to move through select list and 'event-palette:cancel' event 2012-10-04 10:26:06 -10:00
Kevin Sawicki
282802ac6c Scroll auto complete view with editor window 2012-10-02 12:51:06 -07:00
Kevin Sawicki
b7f32036c2 Change editor-selection-change event name to selection-change 2012-10-01 15:44:58 -07:00
Kevin Sawicki
edfd61c702 Remove unneeded class addition 2012-10-01 15:44:58 -07:00
Kevin Sawicki
41cdf130fb Update highlighted line when editor selection changes 2012-10-01 15:44:58 -07:00
Kevin Sawicki
c7361d487f Update cursor line when selection screen range changes 2012-10-01 15:44:58 -07:00
Kevin Sawicki
f2306f444a 💄 2012-10-01 15:44:58 -07:00
Kevin Sawicki
0059accaa4 Access correct editor mini variable 2012-10-01 15:44:58 -07:00
Kevin Sawicki
350e1a22da Add missing space in class name 2012-10-01 15:44:58 -07:00
Corey Johnson
d5b1146b9b Only call gutter.afterAttach once 2012-10-01 15:44:57 -07:00
Kevin Sawicki
e039dab0f6 Don't highlight line in mini editor 2012-10-01 15:44:57 -07:00
Kevin Sawicki
f87b186538 Add highlight to new line html builder 2012-10-01 15:44:57 -07:00
Kevin Sawicki
a4ad5829a5 Disable gutter background highlight on multiline selections 2012-10-01 15:44:57 -07:00
Kevin Sawicki
33abaff747 Don't highlight line if selection is multiline 2012-10-01 15:44:57 -07:00
Kevin Sawicki
d69e08a858 Use screen rows for line highlight 2012-10-01 15:44:57 -07:00
Kevin Sawicki
2de14a701f Set width to 0 on tester element 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
b1138601fc Use gutter number padding when calculating gutter width 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
e15694bb41 No longer cache cursorScreenRow in gutter highlighting 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
2863d92ce3 Use screen position for gutter highlighting 2012-10-01 15:44:57 -07:00