Nathan Sobo
e0c8c5ccb7
Clean up tabs styling using LESS features
2013-04-15 20:45:55 -06:00
Kevin Sawicki
27c5506d83
Set a -1 tabindex on on the tab bar
...
This prevents it from gaining focus when a close icon is clicked.
2013-04-09 13:56:28 -07:00
Cheng Zhao
a5b8478060
Allow dragging of tab when there is only one tab.
...
The tabs should be able to be draggale out of the application at any
time, and if there is only one tab it should not be able to be dropped
in the same window.
2013-04-09 15:37:30 +08:00
Cheng Zhao
fdcbf611aa
The drop marker should disappear when drag is done.
...
Previously we make drop marker disappear when drop is done, it would
case the marker to live forever if the drop is not done in Atom.
2013-04-09 15:37:30 +08:00
Cheng Zhao
a630f05ae4
The dragged tab should carry information of file.
2013-04-09 15:37:30 +08:00
Cheng Zhao
33de90a0b6
dataTransfer.setData only accepts string.
2013-04-05 10:30:18 +08:00
Cheng Zhao
f37265978e
Only respond to drag-drop of tabs in tab bar.
2013-04-04 16:23:46 +08:00
Nathan Sobo
f03b6207de
Make all requires of 'fs-utils' assign to fsUtils var instead of fs
2013-04-03 12:01:37 -06:00
probablycorey
bd3eb02b1b
Remove sortable list class
...
Because sortable list was only being used by tab bar view, I got rid
of the class hierarchy.
2013-04-01 17:10:48 -07:00
probablycorey
7e2ea8aff1
Allow tabs to be moved to the beginning and end of the tab bar
...
Closes #409 (409, puts grease on the run! http://www.dailymotion.com/video/xxsbbb_formula-409-1990-puts-grease-on-the-run-commercial-2_tv#.UVocOZbF30Y )
2013-04-01 16:46:57 -07:00
Kevin Sawicki
9604d81ec8
Update titles after adding/removing tabs
...
The duplicate title detection requires the tab be on the DOM
so update the title after it is inserted and also update titles
of remaining tabs after one is removed so long titles being used
can go back to short titles if no other tab title duplicates exist.
Closes #446
2013-03-25 11:32:37 -04:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07:00
Kevin Sawicki
2212222c47
Use underscore node module
2013-03-11 11:22:36 -07:00
Nathan Sobo
a1dc2cfc2d
Tabs indicate when their items are modified
2013-03-07 09:30:27 -08:00
Corey Johnson & Nathan Sobo
5bba4cd9f7
Kill dead tab view code
2013-03-07 09:30:27 -08:00
Nathan Sobo
d69335f08d
Kill dead code
2013-03-07 09:30:25 -08:00
Nathan Sobo
0238061fa2
Make tab drag & drop work with new panes system
2013-03-07 09:30:25 -08:00
Nathan Sobo
9655fa8898
Implement shouldAllowDrag in positive logic for tabs
2013-03-07 09:30:25 -08:00
Nathan Sobo
47621bd3b2
Call Pane.destroyItem when close icon is clicked on a tab
2013-03-07 09:30:24 -08:00
Nathan Sobo
465bb14659
Reflect pane item order in tab bar
2013-03-07 09:30:24 -08:00
Nathan Sobo
3456b2db3c
Tabs try to use an item's longTitle if two tab titles are the same
...
This will replace edit-session-specific functionality that displayed
the file's parent directory when two files with the same name were
open.
2013-03-07 09:30:24 -08:00
Nathan Sobo
0c24843e52
Start converting tabs package to work with new panes / pane-items
2013-03-07 09:30:23 -08:00
Nathan Sobo
dd120663b7
Pane emits 'pane:item-added' events
2013-03-07 09:30:23 -08:00
Kevin Sawicki
3852b7212b
Remove git-status-changed event from Buffer
...
This is now fired as a status-changed event from
the Git class when the checkout completes normally
and the status of the path changes.
2013-03-04 21:43:33 -08:00
Kevin Sawicki
ad4398c4c5
Always return focus to the editor after a tab drop
2013-02-12 12:36:22 -08:00
Kevin Sawicki
85f404daf4
Find destination editor in single query
2013-02-12 12:25:53 -08:00
Kevin Sawicki
728681a34e
💄
2013-02-12 08:24:32 -08:00
Kevin Sawicki
21e5f550c8
Assert editor receives focus after tab is dropped
2013-02-11 21:11:15 -08:00
Kevin Sawicki
c9fae85375
Rename moveEditSessionAtIndex to moveEditSessionToIndex
2013-02-11 20:29:48 -08:00
Kevin Sawicki
472b436b24
Add spec for dragging/dropping tabs across editors
2013-02-11 20:24:01 -08:00
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
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
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
785d91e4f4
Use relative require
2013-02-11 10:48:23 -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
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