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
6bfffcac55
Clear the miniEditor when showing the event palette
2012-10-04 10:26:07 -10:00
Nathan Sobo
c57e448ddd
Un-F
2012-10-04 10:26:07 -10: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
b979c2f671
Make the event palette narrower for now
2012-10-04 10:26:07 -10:00
Nathan Sobo
a895aa0826
Ctrl-enter toggles event palette (hides when showing)
...
I changed the event name to event-palette:toggle because ctrl-enter
should hide the event palette when it is showing. Previously that
broke, because we would try to re-show the event palette.
2012-10-04 10:26:07 -10:00
Nathan Sobo
66c997f75d
Make EventPalette a SelectList subclass
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
4f43169586
Un-F
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
a4c25f1cb7
Fix bug where editor was not focused when selecting a path in fuzzy finder
...
This is hard to test. What was happening before is that the opening of
the file in the editor was causing the mini editor in the fuzzy finder
to be unfocused, which was then triggering the mini editor to cancel.
Some strange interaction of a focus triggered by a focus was causing
the editor to actually lose focus. By using @cancel to close the editor
instead of @detach, we avoid spurious handling of the unfocusing of the
editor because @cancel already avoids that.
2012-10-04 10:26:07 -10:00
Nathan Sobo
081a57b511
Position select lists at the top center like Sublime Text does
2012-10-04 10:26:07 -10:00
Nathan Sobo
ebad961b20
More conversion of FuzzyFinder to a SelectList subclass
2012-10-04 10:26:06 -10:00
Nathan Sobo
2991048c1e
SelectList allows list items to be clicked
2012-10-04 10:26:06 -10:00
Nathan Sobo
74c5be4632
Convert more fuzzy finder behavior to inherit from SelectList
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
389552c057
Can trigger an event by clicking it in the list
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
Nathan Sobo
3d79100877
Make the event palette an overlay.
2012-10-04 10:26:06 -10:00
Nathan Sobo
fff0e623d3
Focus the mini-editor on attach
2012-10-04 10:26:06 -10:00
Nathan Sobo
eaaf6fc9f0
Add event-palette. Ctrl-enter brings up a list of all events for focused element
...
No fuzzy finding just yet. This theme of a fuzzy-filterable list is common enough now that I think I want to extract it. We do it in the fuzzy-finder for buffers and files, as well as the autocomplete menu.
2012-10-04 10:26:05 -10:00
Nathan Sobo
7b1fe94e47
Add $.fn.document, which associates event-listeners with descriptions
...
`$.fn.events` now returns an array of event-name/description pairs.
2012-10-04 10:26:05 -10:00
Nathan Sobo
96c9f0bc36
Add $.fn.events, which returns a list of all handled events
2012-10-04 10:26:05 -10:00
Kevin Sawicki
23e7139ed1
Auto confirm when only one match exists
2012-10-03 13:55:38 -07:00
Kevin Sawicki
5d86b1e818
💄
2012-10-03 10:03:19 -07:00
Kevin Sawicki
66c13ce2c9
Create hasFocus method
2012-10-03 10:00:23 -07:00
Kevin Sawicki
2381cb650f
💄
2012-10-03 09:51:49 -07:00
Kevin Sawicki
09bf000d8f
Select created folder in tree view
2012-10-03 09:49:53 -07:00
Kevin Sawicki
58515b2097
Focus tree view after creating a directory
2012-10-03 08:20:06 -07:00
Kevin Sawicki
282802ac6c
Scroll auto complete view with editor window
2012-10-02 12:51:06 -07:00
Kevin Sawicki
cc90d69975
Remove unused variable
2012-10-02 10:46:14 -07:00
Kevin Sawicki
8cb84f71eb
Add wrap guide and markdown preview to default config
2012-10-02 10:43:49 -07:00
Kevin Sawicki
189e3be5ae
Wrap around fuzzy finder when at top or bottom
2012-10-02 10:39:35 -07:00
Kevin Sawicki
f51c5dffed
Include trailing slash when checking for dir segment
2012-10-01 22:50:56 -07:00
Kevin Sawicki
2b3991d74e
Use tree-view fixtures dir in tree-view specs
2012-10-01 19:18:13 -07:00
Kevin Sawicki
73653b5fa8
Doc how line highlighting can be tweaked
2012-10-01 15:59:41 -07:00
Kevin Sawicki
b7f32036c2
Change editor-selection-change event name to selection-change
2012-10-01 15:44:58 -07:00