Kevin Sawicki
7c8c4bd233
Remove unused requires
2013-05-01 20:57:16 -07:00
Kevin Sawicki
932d552ae7
Only show scrolls when needed in tree view
2013-05-01 08:22:03 -07:00
Kevin Sawicki
aa27b3d464
Set min-height on tree to 100%
2013-04-16 15:30:33 -07:00
Nathan Sobo
45ede6bc79
💄 rename treeViewList outlet to list
2013-04-16 15:26:31 -06:00
Nathan Sobo
afa58160b3
Oops. Fix tree-view auto-scrolling and specs after breaking them.
2013-04-16 11:59:25 -06:00
Nathan Sobo
917ab3fe7b
Ensure tree view highlights extend full-width, even when scrolled
...
The .tree-view-wrapper element is renamed to `.tree-view-resizer` to
clarify its purpose, and the actual draggable div is renamed to
`.tree-view-resize-handle`. Then a new div is introduced beneath the
resized wrapper called `tree-view-scroller`. This element has 100%
width/height and overflow scroll, allowing the actual tree view list
to *not* scroll. It uses the cutting edge `min-content` property as
its min width, which ensures it's always wide enough to contain its
content even when the scroller wrapper is narrower. This allows the
absolutely-positioned highlights to always extend *at least* across
the full width of the list elements.
2013-04-16 11:20:56 -06:00
Nathan Sobo
140d5d5a85
💄 Use outlet
2013-04-15 20:45:56 -06:00
Nathan Sobo
8c648e9226
Fix tree-view specs
2013-04-15 20:45:56 -06:00
Nathan Sobo
cd9f6d4c62
Remove tree-view margin bottom
2013-04-15 20:45:56 -06:00
Nathan Sobo
c1e4d2f1f1
Make tree-view CSS bootstrap-compatible. Use less and octicon-mixins.
2013-04-15 20:45:55 -06:00
Kevin Sawicki
c8dd9f8d82
Use indexOf instead of substring to check path
2013-04-05 09:07:31 -07:00
Kevin Sawicki
b4eb7d072e
Only expand folder when needed for file asserts
...
Closes #470
2013-04-03 17:07:23 -07: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
Kevin Sawicki
9708f436c5
Remove unneeded empty string span values
2013-03-29 22:21:50 -04:00
Kevin Sawicki
2a2a391d13
Extend highlight span to be entire width of tree
...
Closes #219
2013-03-29 22:20:26 -04:00
Nathan Sobo
bb8b3782b9
Serialize package states independently of RootView
...
Previously, package specs needed to deactivate the root view to test
their package serialization. Now, specs can just deactivate and then
reactivate the package, relying on serialization infrastructure that's
independent of the lifecycle of the RootView.
2013-03-26 17:35:42 -06:00
Nathan Sobo
f5774972e9
Add atom.deactivatePackage(id)
...
It serializes the package state to the atom.packageStates hash when
the package is deactivated, which means we will be able to test
package serialization independent of the overall window lifecycle by
just deactivating and re-activating the package.
2013-03-26 17:35:42 -06:00
Nathan Sobo
58ef6c6582
Use atom.activatePackage directly in specs
2013-03-26 17:35:42 -06:00
Kevin Sawicki
5a4108f3c8
Consolidate tree-view stylesheets
2013-03-25 22:56:00 -04:00
Kevin Sawicki
513ed3b4b1
Show symlink file icon in tree view
2013-03-25 16:51:39 -04:00
Corey Johnson & Kevin Sawicki
6c357aaca7
Make paths absolute before calling $native.watchPath
...
Also return a subscription that can be unwatched instead
of returning an id that is later passed to $native.unwatchPath
along with the watched path.
This allows specs to pass when run from a symlink'ed folder.
2013-03-20 13:27:49 -07:00
Kevin Sawicki & Nathan Sobo
501dc9b76c
Merge remote-tracking branch 'origin/master' into cefode
...
Conflicts:
native/v8_extensions/native.mm
spec/app/config-spec.coffee
spec/app/window-spec.coffee
spec/spec-helper.coffee
spec/stdlib/fs-utils-spec.coffee
src/app/atom-package.coffee
src/app/config.coffee
src/app/window.coffee
src/packages/fuzzy-finder/lib/load-paths-handler.coffee
src/packages/markdown-preview/lib/markdown-preview-view.coffee
src/packages/tree-view/spec/tree-view-spec.coffee
src/stdlib/require.coffee
2013-03-20 10:46:50 -06:00
Kevin Sawicki & Nathan Sobo
051decc08c
Use fs.resolveOnLoadPath() instead of require.resolve()
2013-03-12 14:42:24 -07:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07:00
Corey Johnson
06b63c24dc
Merge remote-tracking branch 'origin/dev' into md-preview-redux
...
Conflicts:
src/packages/markdown-preview/stylesheets/markdown-preview.css
static/atom.css
static/command-panel.css
2013-03-11 17:02:36 -07:00
Nathan Sobo
bf7fc39434
Rename AtomPackage.packageMain to .mainModule
2013-03-11 16:04:38 -06:00
Kevin Sawicki
2212222c47
Use underscore node module
2013-03-11 11:22:36 -07:00
Justin Palmer
6fd0118d2c
tree-view.css -> tree-view.less
2013-03-11 10:02:18 -07:00
Kevin Sawicki
7c41907a7d
Check if path exists before moving
...
fs.move() no longer throws an exception if the target exists
so check for it explicitly when the dialog is confirmed.
2013-03-09 14:55:17 -08:00
Corey Johnson & Nathan Sobo
cf6c46ba3a
Tree view deselects entry when active item has no path
2013-03-08 11:10:13 -08:00
Corey Johnson & Nathan Sobo
3c9793d803
Fix TreeView specs
2013-03-07 09:30:26 -08:00
Kevin Sawicki
77a5f4775a
Show Git status indicators on directories
...
Closes #301
2013-03-04 21:43:33 -08:00
Kevin Sawicki
587a6552ea
Use subscribe instead of on
2013-03-04 21:43:33 -08:00
Kevin Sawicki
4fe6db240b
Consolidate Git status checking
...
Now the status bar and tree view both listen for
status change events and use the cached information
available from the git object to update their views.
2013-03-04 21:43:33 -08:00
Kevin Sawicki
2ec4d558ba
Make project's Git repository a window global
...
This allows it to operate independently of the
project and mirror the availability of the root view
and project.
2013-03-04 21:43:33 -08:00
Kevin Sawicki
14bd7741d1
Change octicon based on creating file or folder
2013-02-28 16:04:18 -08:00
Kevin Sawicki & Nathan Sobo
94a17e73ba
Don't automatically focus when attach is called
...
Only focus when toggling the tree view or revealing
an active file.
This prevents the tree view from stealing focus when it
is attached during deserialization.
2013-02-25 11:53:42 -08:00
Kevin Sawicki
69b93c5397
Bind ctrl-[] to collapse and expand directories
2013-02-20 16:48:40 -08:00
Kevin Sawicki
3532631002
Remove unused require
2013-02-19 21:12:58 -08:00
Corey Johnson & Nathan Sobo
47aa74133f
Remove unneeded calls to rootView.deactivate
2013-02-19 18:26:51 -07:00
Corey Johnson & Nathan Sobo
9e8831f710
RootView.initialize no longer assigns window.rootView or calls open
2013-02-19 18:26:50 -07:00
Corey Johnson & Nathan Sobo
0b5ea8578f
Eliminate rootView.project references.
2013-02-19 18:26:50 -07:00
Nathan Sobo
7f2747ead0
Make project a global and refactor startup process
2013-02-19 18:26:50 -07:00
Kevin Sawicki
10430842b0
Use binary icon for .woff and .DS_Store extensions
2013-02-16 09:54:20 -08:00
Corey Johnson
35ff2744ac
Attach the tree view if the project has no serialized state
2013-02-14 16:40:24 -08:00
Kevin Sawicki
aa69452552
Focus rootView directlly instead of by selector
2013-02-14 12:31:12 -08:00
Corey Johnson
958bc2bfab
Moved atom.loadPackage to a spec-only helper function
2013-02-13 16:37:59 -08:00
Corey Johnson
fc29a0d347
Remove unneeded param defaults from activate methods
2013-02-13 10:51:19 -08:00
Corey Johnson
44476d4164
Handle deserilization in TreeView's initialize method
2013-02-13 10:42:11 -08:00
Kevin Sawicki
1f4aedeb10
Rename isReadme to isReadmePath
2013-02-12 11:47:13 -08:00