Kevin Sawicki
867e8d5678
Add spec for dragging/dropping tab in the same editor
2013-02-11 20:03:28 -08:00
Kevin Sawicki
8b61c0d8f7
Rearrange tabs when the edit session order changes
2013-02-11 19:40:33 -08:00
Kevin Sawicki
a104e67acd
Support moving an edit session's editor index
2013-02-11 18:36:50 -08:00
Kevin Sawicki
5abf17e93b
Compare edit sessions instead of tab paths
2013-02-11 17:11:14 -08:00
Justin Palmer
0acd532428
Add transferEditSessionAtIndex to Editor
2013-02-11 17:02:34 -08:00
Justin Palmer
4502ec04d3
only check for duplicates when dragging to a different panel
2013-02-11 16:49:34 -08:00
Kevin Sawicki
b55337568a
Support matching quoted text
2013-02-11 15:23:54 -08:00
Kevin Sawicki
2dcf607e12
Use cancel instead of detach
2013-02-11 14:26:18 -08:00
Kevin Sawicki
fff049e8a6
Use Buffer.getPath()
2013-02-11 14:09:37 -08:00
Justin Palmer
96e2044e18
💄
2013-02-11 13:31:07 -08:00
Justin Palmer
d448db41d1
don't allow duplicate tabs in the same edit session
2013-02-11 13:26:23 -08:00
Justin Palmer
b9101b3310
this is how we write this on .com
2013-02-11 12:58:03 -08:00
Kevin Sawicki
6a504fc290
Remove unused index variable
2013-02-11 11:20:50 -08:00
Kevin Sawicki
94ba8c1191
Do nothing when dragged tab is dropped onto itself
2013-02-11 11:16:54 -08:00
Kevin Sawicki
07ff931082
Remove unneeded rootView parameter
2013-02-11 10:51:12 -08:00
Kevin Sawicki
b5451ce5b3
Remove unneeded rootView variable
2013-02-11 10:48:54 -08:00
Kevin Sawicki
785d91e4f4
Use relative require
2013-02-11 10:48:23 -08:00
Kevin Sawicki
a4c147ef1c
Add initial support for horizontal rules
2013-02-11 10:39:08 -08:00
Kevin Sawicki
133d417cad
Outdent line previously wrapped in try/catch
2013-02-11 10:33:25 -08:00
Corey Johnson & Kevin Sawicki
91ce3ce0b3
Remove retry of failed coffeescript compilation from require
2013-02-11 10:27:07 -08:00
Kevin Sawicki
e8c4ab619c
Remove unneeded rootView variable
2013-02-11 10:21:08 -08:00
Kevin Sawicki
934e727164
Add bold and italic markdown snippets
2013-02-11 09:33:06 -08:00
Kevin Sawicki
993409dcd5
Add code and image markdown snippets
2013-02-11 09:30:31 -08:00
Kevin Sawicki
76a6ab9f03
Support loading CSON snippets from TextMate bundles
2013-02-11 09:29:48 -08:00
Justin Palmer
52afa8983a
remove pane if it has no tabs left
2013-02-11 09:12:06 -08:00
Justin Palmer
45d6a30a80
determine if dragged tab was perviously active before reactivating in new pane
2013-02-11 08:26:18 -08:00
Justin Palmer
ae841c2bf7
pass event to shouldAllow* methods
2013-02-11 08:17:32 -08:00
Kevin Sawicki
c96874659e
Use string for emoji and variable for lists
2013-02-10 15:54:02 -08:00
Kevin Sawicki
8081b929c3
Use string instead of constant for list scope
2013-02-10 15:41:42 -08:00
Kevin Sawicki
1196312878
Require whitespace before italic and bold matches
2013-02-10 15:39:18 -08:00
Kevin Sawicki
12b185af79
Use fs.extension instead of regex
2013-02-10 15:13:00 -08:00
Kevin Sawicki
de6e930bad
Support package.cson in Atom themes
...
Migrate light and dark themes to use package.cson
instead of package.json
2013-02-10 15:11:06 -08:00
Kevin Sawicki
a908dd5c29
Don't apply whitespace in emoji matches
2013-02-10 14:58:43 -08:00
Justin Palmer
ffbc0ab45c
only activate another tab if the pane's active tab wasn't dragged away
2013-02-10 11:20:47 -08:00
Justin Palmer
4474f2bc2d
rename Tabs -> TabView
2013-02-10 11:12:14 -08:00
Justin Palmer
b7d4689cfe
fix logic error in shouldAllowDrag
2013-02-10 10:53:19 -08:00
Justin Palmer
9c99369c10
add methods to determine if we should allow dragging and dropping
2013-02-10 10:46:02 -08:00
Justin Palmer
ccb8688a43
update require paths
2013-02-10 09:50:44 -08:00
Justin Palmer
b2ce4ca6d5
merge dev, fix conflicts from package rewrite
2013-02-09 20:17:29 -08:00
Justin Palmer
a124f5aeee
update tabs to use new way to find pane index
2013-02-09 19:38:55 -08:00
Justin Palmer
a1a663cd30
implement indexOfPane in RootView to get array index
...
We need something like this because jquery's el.index() doesn't work
when multiple panes are spread out among different rows and columns.
2013-02-09 19:38:55 -08:00
Justin Palmer
83631935ff
working implementation of drag and drop across multiple panels
2013-02-09 19:38:55 -08:00
Justin Palmer
c7c9656c46
remove drop dom manipulation from sortable-list
...
Not sure how we should handle generic drag and drop. Tabs are more
complex because of multiple panels
2013-02-09 19:38:55 -08:00
Justin Palmer
be49f047e1
index -> sortable-index
2013-02-09 19:38:55 -08:00
Justin Palmer
b00df1aae0
sortableElement -> getSortableElement
2013-02-09 19:38:55 -08:00
Justin Palmer
e92d9ea998
sorting works on a single editor
...
Needs updating to support dragging between panels
2013-02-09 19:38:55 -08:00
Justin Palmer
8a50581430
rename sortable view to sortable list
2013-02-09 19:38:54 -08:00
Justin Palmer
9100367c12
very basic tab sorting
2013-02-09 19:38:54 -08:00
Justin Palmer
ff4e374d44
basics of drag and drop support
2013-02-09 19:38:54 -08:00
Nathan Sobo
d8111797ba
RootView can no longer be focused.
...
Allowing root view to be focused was stealing focus away from the
editor whenever a click event made it to the root view. This unnecessary
switching of focus was interfering with the ability to drag tabs.
But if RootView can't be focused, focus ends up being returned to the
document body when there are no focusable elements. This would be fine,
except for the fact that we frequently bind global events on root view,
and so they aren't triggered when events are triggered on the body. We
could just bind all global events on the body, but this would require
us to always attach elements to the DOM during specs, which is a serious
performance killer in specs.
The workaround is in the keymap. When the keymap handles a key event
that was triggered on the body, it triggers the corresponding semantic
event on the root view anyway, so from the event perspective, it's as
if the root view actually had focus. The only place this might fall
down is if someone wants to capture raw key events. But that's the
keymap's job anyway, and we maybe add a hook on the keymap if such a
need ever arises.
2013-02-09 19:38:54 -08:00