Justin Palmer
b502c811cb
move less parsing to requireStylesheet
2013-03-11 10:02:18 -07:00
probablycorey
0b674978db
Require will parse .less files into css
2013-03-11 10:02:18 -07:00
Kevin Sawicki
8cf32149b7
Return absolute paths from $native.traverseTree()
...
Previously relative paths were generated even though
things like fs.list() and fs.listTree() would just
recombine them with the root path.
Closes #391
2013-03-08 13:44:28 -08:00
Corey Johnson & Nathan Sobo
06c9a3ac86
Remove empty panes when PaneContainer deserializes
2013-03-08 11:45:20 -08:00
Kevin Sawicki
e7050b2083
Remove unused $native.lastModified()
2013-03-07 18:00:35 -08:00
Kevin Sawicki
acf5f4ce5e
Remove fs/$native.getAllFilePathsAsync()
...
This was previously only used by project.getFilePath()
which should have been using fs.traverseTree() instead.
2013-03-07 17:48:36 -08:00
Kevin Sawicki
ce8867fac9
Remove unused ChildProcess class
2013-03-07 17:40:24 -08:00
Kevin Sawicki
c22d14c5b0
Use child_process.spawn from Project.scan
2013-03-07 17:36:21 -08:00
Kevin Sawicki
e36e3c0a78
Merge remote-tracking branch 'origin/dev' into cefode
2013-03-07 16:01:09 -08:00
Corey Johnson & Nathan Sobo
7e33bd17e0
Make markdown preview views fit into panes and work w/ a single buffer
2013-03-07 15:49:33 -08:00
Corey Johnson & Nathan Sobo
d84614866a
Add Pane.getNextPane
2013-03-07 14:32:10 -08:00
Corey Johnson & Nathan Sobo
ff50bc2e6f
Add toBeInstanceOf and toHaveLength jasmine matchers
2013-03-07 14:32:10 -08:00
Corey Johnson & Nathan Sobo
98c9012bdb
💩
2013-03-07 14:31:04 -08:00
Corey Johnson & Nathan Sobo
17f4d6f064
EditSession reloads its grammar on the 'grammars-loaded' event
2013-03-07 14:25:14 -08:00
Kevin Sawicki
b0ec0cda7f
Merge remote-tracking branch 'origin/dev' into cefode
2013-03-07 11:44:46 -08:00
Corey Johnson & Nathan Sobo
39fabaa344
Update RootView.deserialize specs so they break on a version mismatch
2013-03-07 11:09:39 -08:00
Kevin Sawicki
d34796a78b
Use oniguruma node module
...
This removes all internal native oniguruma
sources and starts using the node module
directly to create onig scanners and regexes.
2013-03-07 10:45:22 -08:00
Corey Johnson & Nathan Sobo
8333f14ef8
Throw away serialized state if its version doesn't match deserializer
2013-03-07 09:30:30 -08:00
Corey Johnson & Nathan Sobo
4f0bf9020b
Fix pane focus and active item serialization
...
Also: Un-x root view serialization specs
2013-03-07 09:30:29 -08:00
Corey Johnson & Nathan Sobo
d4fc718e8e
Update window title when a pane item's title changes
2013-03-07 09:30:29 -08:00
Corey Johnson & Nathan Sobo
c1d19c4c5c
Rename restoreItem to reopenItem on pane container
2013-03-07 09:30:29 -08:00
Corey Johnson & Nathan Sobo
5ad53bb32c
Add restoreItem to Pane container
2013-03-07 09:30:29 -08:00
Nathan Sobo
96fefe94f0
Fix broken specs after rebase
2013-03-07 09:30:29 -08:00
Nathan Sobo
f2e5fcc902
Move autosave from editor into panes
2013-03-07 09:30:29 -08:00
Nathan Sobo
d97e91bdcb
Make meta-# bindings work with new panes
2013-03-07 09:30:29 -08:00
Nathan Sobo
f23d9091f2
Add pane:close-other-items
2013-03-07 09:30:29 -08:00
Nathan Sobo
4b8d786d2a
💄
2013-03-07 09:30:29 -08:00
Nathan Sobo
7ebce683c6
Move saveAll and specs to PaneContainer
...
And simplify the specs… we don't *really* need to save. We can just
ensure that save is called on everything.
2013-03-07 09:30:29 -08:00
Nathan Sobo
e4bf73b41c
Give the view a chance to update before presenting next dialog
2013-03-07 09:30:28 -08:00
Nathan Sobo
f0398f2331
Ensure modal dialogs are presented in a coherent order
...
Modal dialogs can be presented while other modal dialogs are already
being displayed. Previously, dialogs were always displayed in the order
they were requested. But say you have two untitled buffers in a
pane and you close all items… You'll display prompt dialogs for both
buffers asking the user if they want to save. If the user answers yes
to the first dialog, they should see the path selection dialog before
they see the save prompt for the second buffer.
This commit uses a stack of queues to store deferred dialogs and allow
dialogs presented by the dismissal of another dialog to take precedence
over other pending dialogs.
2013-03-07 09:30:28 -08:00
Nathan Sobo
48c693d756
Add 'pane:close' event, which destroys all pane items.
...
Still have some issues with the presentation order of dialogs with
multiple unsaved buffers and no paths. But for the 99% case this works
as is.
2013-03-07 09:30:28 -08:00
Nathan Sobo
da986b6a6c
Fix RootView.saveAll()
2013-03-07 09:30:28 -08:00
Nathan Sobo
685df18a3a
Fix breakages due to save method moving to Pane (except saveAll specs)
2013-03-07 09:30:28 -08:00
Nathan Sobo
3f9ee08e76
Handle save-as on pane. Replace 'editor:save-as' w/ 'core:save-as'
...
Pane will only show the saveAs dialog if the item has a `saveAs` method.
2013-03-07 09:30:28 -08:00
Nathan Sobo
59a06acc0b
Fire 'modified-status-changed' events on changes after save/reload
...
Buffer keeps state about the value with which it fired the last
modified-status-changed event so that it doesn't fire it twice with the
same boolean value. Every piece of code that triggers the event also
needs to set this state, so now everything goes through the
`triggerModifiedStatusChanged` method.
2013-03-07 09:30:28 -08:00
Nathan Sobo
699e780e99
Handle save in panes with new 'core:save' event
2013-03-07 09:30:28 -08:00
Nathan Sobo
6ae684d609
Kill commented specs that were used as a reminder
2013-03-07 09:30:28 -08:00
Nathan Sobo
54fc9efdcb
Eliminate fixturesProject global. Use project global instead.
2013-03-07 09:30:27 -08:00
Nathan Sobo
9f7b804a6c
Panes prompt to save modified items before destroying them
2013-03-07 09:30:27 -08:00
Nathan Sobo
d5654cf0df
💄
2013-03-07 09:30:27 -08:00
Nathan Sobo
298a963148
Rework Buffer's 'contents-modified' event
...
This event now fires whenever the content of the buffer changes (after
a rate-limiting delay) with a single boolean indicating the modified
status of the buffer. There's now a separate event called
'modified-status-changed' to indicate events that change the boolean
value of the isModified method, so we don't need to fire
'contents-modified' when the underlying file is deleted for instance.
2013-03-07 09:30:27 -08:00
Nathan Sobo
24c9f11cc9
Trigger modified-status-changed on buffers/edit sessions
2013-03-07 09:30:27 -08:00
Corey Johnson & Nathan Sobo
ae95c04bbc
Focus next pane when removing the last pane item of a focused pane
...
Previously, removing the last pane item also ruined our ability to
determine if the pane had focus. Now, if we're removing the last item,
we instead just go ahead and remove the entire pane. Remove contains
logic to switch focus to the next pane if its active view is focused,
which works as intended if we leave the active view in place.
2013-03-07 09:30:26 -08:00
Corey Johnson & Nathan Sobo
52b649dca5
Preserve focus when switching between pane items
...
If the pane is currently focused, when showing a view associated with
a new item, focus that view.
2013-03-07 09:30:26 -08:00
Corey Johnson & Nathan Sobo
6157a75868
Spec changeFocus option of RootView.open and default it to true
2013-03-07 09:30:26 -08:00
Corey Johnson & Nathan Sobo
5291924bcc
Set the project path when its first edit session is saved
2013-03-07 09:30:26 -08:00
Corey Johnson & Nathan Sobo
9a93694a4c
💄
2013-03-07 09:30:26 -08:00
Nathan Sobo
31f7d6669f
Use project global in project spec
2013-03-07 09:30:26 -08:00
Nathan Sobo
2bfc73afaa
These should have been renamed w/ currentView/Item -> activeView/Item
2013-03-07 09:30:25 -08:00
Nathan Sobo
fab3b4564e
Add Pane.moveItemToPane specs. Fix bug moving the last edit session.
2013-03-07 09:30:25 -08:00
Nathan Sobo
fe0d3cad36
Remove multiple edit session handling from Editor
2013-03-07 09:30:25 -08:00
Nathan Sobo
2e2ff3a1d0
Add Pane.destroyItem and rename removeActiveItem -> destroyActiveItem
...
Pane.removeItem removes an item, but no longer tries to call destroy
on it. This will facilitate moving items between panes.
2013-03-07 09:30:24 -08:00
Nathan Sobo
887b5ea007
Add Pane.moveItem(item, index)
...
This is the precursor to supporting drag/drop of tabs within and
between panes.
2013-03-07 09:30:24 -08:00
Nathan Sobo
21990cf986
Add EditSession.getLongTitle
2013-03-07 09:30:24 -08:00
Nathan Sobo
de8198084c
EditSession emits 'title-changed' events when its buffer path changes
2013-03-07 09:30:24 -08:00
Nathan Sobo
5240d9989f
Pane emits 'pane:item-removed' events
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
Nathan Sobo
a40d05f6ee
Rename Pane.currentItem/View to activeItem/View
2013-03-07 09:30:23 -08:00
Nathan Sobo
15d8a6cada
Simplify pane:active-item-changed events
...
Panes now trigger an event every time their active item changes,
regardless of whether the pane itself is active. Panes also trigger
events when the become active and when they are removed. The rootView
now scopes its active-item-changed event listener only to active panes,
and also listens to listens to pane activation and removal events to
update the title when switching active panes and removing the last
pane.
2013-03-07 09:30:23 -08:00
Nathan Sobo
892ff0c51f
Add PaneContainer.eachPane
...
It calls the given callback with all current and future panes
2013-03-07 09:30:23 -08:00
Nathan Sobo
20590f590e
Make window specs pass without getActiveEditor/getEditors
2013-03-07 09:30:23 -08:00
Kevin Sawicki
a6bf7f876d
Replace RootView.getActiveEditor() with getActiveView()
2013-03-07 09:30:23 -08:00
Kevin Sawicki
ff899e9c1b
Replace RootView.getActiveEditor() with getActiveView()
2013-03-07 09:30:23 -08:00
Kevin Sawicki & Nathan Sobo
062adae714
Return the new pane's currentView when splitting the editor
2013-03-07 09:30:23 -08:00
Kevin Sawicki & Nathan Sobo
6304bac233
Remove RootView.getActiveEditor / getActiveEditSession
...
There's a bunch broken because of this… to be continued.
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
2bf5163798
Kill pane specs on root view
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
26c63edf33
Assert against config for font-size changing events instead of editor
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
d6b85cf7e8
Base title updates on pane:active-item-changed events
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
3ae9c10ff5
Trigger 'pane:active-item-changed' w/ null when last pane is removed
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
161ed69ef0
When a pane is removed, focus/activate the next pane
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
80e736d4ee
Add RootView.getActiveView and .getActivePaneItem
...
They will replace getActiveEditor/getActiveEditSession
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
58228f7ff7
Remove RootView.activeKeybindings method. It was dead code.
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
4a6f05ae4e
Trigger 'pane:active-item-changed' on Pane
...
This event is triggered when the item changes on the active pane, or
when a different pane becomes active.
Also: Pane now sets itself as the active pane, rather than letting
PaneContainer handle the focusin event.
2013-03-07 09:30:22 -08:00
Kevin Sawicki & Nathan Sobo
ad62f896bc
Make Pane maintain a currentView pointer based on its current item
2013-03-07 09:30:21 -08:00
Kevin Sawicki & Nathan Sobo
d310fb366f
Remove references to RootView from editor spec
2013-03-07 09:30:21 -08:00
Nathan Sobo
486baa393b
PaneContainer.getActivePane returns the most recently focused pane
2013-03-07 09:28:52 -08:00
Nathan Sobo
2ba63e608f
Don't allow core:close event to bubble out of Pane
2013-03-07 09:28:52 -08:00
Nathan Sobo
8f980a0f20
Replace Editor's next/previous edit session bindings w/ pane bindings
2013-03-07 09:28:52 -08:00
Nathan Sobo
bd8ec81b1e
Make Pane close the current item when handling 'core:close' event
2013-03-07 09:28:52 -08:00
Nathan Sobo
11a702a2a6
Remove pane when its last item is removed
2013-03-07 09:28:52 -08:00
Nathan Sobo
7d147dd2ce
Make Pane handle split commands instead of Editor
2013-03-07 09:28:52 -08:00
Nathan Sobo
fee835f899
Add a PaneContainer subview for RootView
...
PaneContainer is responsible for all pane-related logic. Laying them
out, switching focus between them, etc. This should help make RootView
simpler and keep pane-layout related tests in their own focused area.
2013-03-07 09:28:52 -08:00
Nathan Sobo
9ecb03e470
Rename PaneGrid to PaneAxis
...
PaneGrid is a superclass of PaneRow and PaneColumn. These are both
a type of axis for the pane layout system.
2013-03-07 09:28:52 -08:00
Nathan Sobo
19e2cab920
💄
2013-03-07 09:28:52 -08:00
Nathan Sobo
0c2a5f273c
Enhance pane split methods. Spec them in pane-spec.
...
When a pane is split, it attempts to make a copy of its current item
if no items are passed to the split method. When splitting, multiple
items can also be passed to the constructor of the new pane.
2013-03-07 09:28:52 -08:00
Nathan Sobo
45eec6a8ff
Get more specs passing. Failing specs due to missing features.
2013-03-07 09:28:52 -08:00
Nathan Sobo
281a28bb0e
Add spec for pane focusing the its current item view when it's focused
2013-03-07 09:28:52 -08:00
Nathan Sobo
568fcf441e
Pane serializes its serializable items
2013-03-07 09:28:52 -08:00
Nathan Sobo
bee1efed5c
Make RootView.open
work with new Pane behavior
...
Still a bit of a WIP. Panes don't yet take the "active" class
correctly when focused.
2013-03-07 09:28:51 -08:00
Nathan Sobo
829bfa0a10
Add Pane.itemForPath
2013-03-07 09:28:51 -08:00
Nathan Sobo
62729c42ee
Panes destroy their items when they are removed
...
As a consequence of these changes, editors will no longer need to
listen for destruction of their edit sessions. An editor will
eventually only ever be displaying a single edit session, and the
editor will destroy that edit session when it is removed. Panes
will be responsible for supporting multiple edit sessions, and
they will automatically remove the editor when they have no more
edit session items.
2013-03-07 09:28:51 -08:00
Nathan Sobo
77bf3e4d74
Get root view pane specs passing
2013-03-07 09:28:51 -08:00
Nathan Sobo
d89a7eb522
When showing an item on a pane, add it to the items list if needed
2013-03-07 09:28:51 -08:00
Nathan Sobo
41f18ee6a2
Add Pane.removeItem
2013-03-07 09:28:51 -08:00
Nathan Sobo
ef0c62f532
Add show next / previous item.
2013-03-07 09:28:51 -08:00
Nathan Sobo
372393d9ca
Allow panes to have model objects as items in addition to views
...
The problem I've been struggling with is that we need to potentially
assign tabs both to EditSessions and also to other views added by
extensions, like a markdown preview view. EditSessions are however not
actually views… instead they plug into editors. The solution is to
have the pane ask a model object what view should be used to render
it. When asked to show a non-view item, the pane constructs and
appends a view for that item or recycles an appropriate view that it
has already appended.
2013-03-07 09:28:51 -08:00
Nathan Sobo
2bdc077d2a
Construct Pane w/ multiple items. Show first item on construction.
2013-03-07 09:28:51 -08:00
Nathan Sobo
beaeac4425
Rename buildEditSessionForPath
to buildEditSession
...
Since this is the more external method, having a shorter name
is more convenient. The former `buildEditSession` method took a
Buffer, and is now called `buildEditSessionForBuffer`.
2013-03-07 09:28:51 -08:00
Kevin Sawicki
8af55a04d8
Use a single worker for status refreshes
...
There still appear to be crashes occurring when
using libgit2 from multiple workers at the same time.
So only start a new status worker once the current one
completes if a refresh was requested while a worker was
running.
Closes #367
2013-03-06 14:59:12 -08:00
probablycorey
081e3a459f
Replace Consolas with PCMyungjo in spec
2013-03-05 15:55:38 -08:00
Corey Johnson & Kevin Sawicki
7eee81cd6a
Return early when clipping tokenless screenline
...
Closes #337
2013-03-05 10:44:15 -08:00
Corey Johnson & Kevin Sawicki
94099358f3
Inserting whitespace never auto-outdents
...
Closes #340
Shout out to @nathansobo
2013-03-05 10:19:24 -08:00
probablycorey
37e4091723
💩
2013-03-05 10:13:18 -08:00
probablycorey
17fc679b25
Trigger resize event on editor before wrap guide specs
2013-03-05 09:43:38 -08:00
Kevin Sawicki
1c09a1352b
Return {} when object is empty
2013-03-05 08:46:17 -08:00
Kevin Sawicki
5ddea28d80
Wrap objects inside arrays in {}
2013-03-05 08:42:24 -08:00
Kevin Sawicki
c14aa3b86f
Default status to 0 if undefined
...
This keeps the status-changed event from triggering
the first time the status is requested as it goes
from undefined to 0 which should be treated as no
change.
2013-03-04 21:43:34 -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
31690d16ec
Remove unused import
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
68b61d71c6
Trigger event when path status changes
2013-03-04 21:43:32 -08:00
Kevin Sawicki
c6e89d33f8
Git.refreshStatuses() -> Git.refreshStatus()
2013-03-04 21:43:32 -08:00
Kevin Sawicki
50bc1aac74
Add task to refresh status of repository
...
By default this will occur when the window gains
focus and the Git class can now be subscribed to
so listeners can become notified when the status
of a repository changes.
2013-03-04 21:43:32 -08:00
Kevin Sawicki
4add7b6213
Support getting status of entire repository
...
New Git.getAllStatuses() method returns all non-ignored
status entries in the repository.
2013-03-04 21:43:32 -08:00
probablycorey
30d4cb81b8
Use Courier as the default font for specs
...
Fixes #323
2013-03-04 16:40:02 -08:00
probablycorey
b7976cac68
Use the /Applications directory to test cwd on Child Processes
2013-03-01 13:54:19 -08:00
Corey Johnson
595cf71d93
Return absolute path for Git repo
2013-03-01 13:54:19 -08:00
Corey Johnson & Kevin Sawicki
ec2f59836a
Make patch version segment optional in spec
2013-02-28 10:15:24 -08:00
Adam Roben
eb0f118cd0
Remove "[object Object]" output from tests
2013-02-28 08:36:35 -05:00
Kevin Sawicki
745a3ef9f2
Use class methods to create native object shims
...
CoffeeScript 1.5 complains if a constructor has
a returns a value.
2013-02-27 13:25:10 -08:00
Kevin Sawicki & Nathan Sobo
5b990cf571
Add the 'between' invalidation strategy for markers
...
This invalidates markers when the start or end point of the changed
range is between the head and tail position of the marker.
2013-02-26 17:42:47 -07:00
Kevin Sawicki & Nathan Sobo
e858f7eb2a
Replace stayValid option w/ validationStrategy when creating markers
2013-02-26 17:03:02 -07:00
Kevin Sawicki & Nathan Sobo
42fe87a9a2
Notify observers when display buffer markers are invalidated
2013-02-26 14:59:09 -08:00
Kevin Sawicki & Nathan Sobo
e36887900f
Notify observers when markers are invalidated/revalidated
2013-02-26 14:31:42 -08:00
Corey Johnson & Kevin Sawicki
f8563a1509
💄
2013-02-26 09:04:02 -08:00
Corey Johnson
ad14e65ef9
Add atom.getVersion(callback)
2013-02-25 14:58:11 -08:00
Kevin Sawicki
2f331b4377
Set font-size of fold marker to .8em
...
This keeps the line height of the gutter the same
as the line height of the editor for folded lines.
Closes #304
2013-02-25 09:49:53 -08:00
Kevin Sawicki
9b231e8c4e
Add increase indent pattern for GFM scope
2013-02-25 08:58:47 -08:00
Kevin Sawicki
d35c871e17
Install atom executable during window.startup()
...
Previously this was done during `rake install`.
Also default to `~/github/atom` as the default resource path
when no `--resource-path` argument is specified. This argument
will now be required when running in dev mode if the repository
is not at the default location.
Closes #300
2013-02-22 21:19:34 -08:00
Corey Johnson & Kevin Sawicki
2c986fdbfc
Fix race condition in spec
2013-02-22 16:31:50 -08:00
Corey Johnson & Kevin Sawicki
31d8151c3e
Copy themes to ~/.atom/themes when config loads
2013-02-22 14:46:30 -08:00
Corey Johnson & Kevin Sawicki
fa81871907
Initialize ~/.atom when config is loaded
...
Closes #299
2013-02-22 14:46:30 -08:00
Kevin Sawicki & Nathan Sobo
5da5bf94b6
Add 'editor:save-debug-snapshot' command. Closes #191 .
...
This saves the state of the rendered lines, the display buffer, the
tokenized buffer, and the buffer to a file. If a problem arises with
rendering, hopefully we can use it to diagnose in which layer things
went awry.
2013-02-22 14:28:04 -07:00
Corey Johnson
4db982f9e5
Use a 5 second timeout for specs
...
Hopefully this is temporary.
2013-02-20 16:28:05 -08:00
Corey Johnson
211d18bf99
Listen for file events before acting on the file.
2013-02-20 16:27:30 -08:00
Kevin Sawicki
df3c00ac9c
Remove console log call in spec
2013-02-20 15:50:31 -08:00
Kevin Sawicki
2457e7f5b2
Add indent guide to whitespace lines
...
The whitespace in lines that have no non-whitespace
text is treated as trailing whitespace so add the
indent guide to the trailing whitespace tokens when the
line is 100% whitespace.
2013-02-20 15:40:44 -08:00
Kevin Sawicki
1db21c91cc
Give first line regex the required amount of lines
...
Certain bundles require multi-line matches in the firstLineMatch
value so count the number of newlines in the regex and only test
the regex against only those lines.
2013-02-20 15:11:07 -08:00
Kevin Sawicki
881efd9c5d
Restore selection when undoing an insert newline below
2013-02-20 14:09:40 -08:00
Kevin Sawicki
af58c1e83f
Bind meta-shift-enter to insert newline above current line
...
Closes #292
2013-02-20 13:44:30 -08:00
Corey Johnson
e0212ba02b
Only use the first line when determine the syntax via file contents
2013-02-20 12:46:53 -08:00
Kevin Sawicki
27f44fbfd7
Invalidate empty lines proceeding a change event
...
The indent guide on empty lines will now be updated when
the non-empty line preceeding the empty lines is updated.
2013-02-20 12:20:15 -08:00
Kevin Sawicki
101b1aba12
Add indent guide to editor
...
The guide displays a continuous vertical line across lines with
the same indent levels.
Closes #50
2013-02-20 12:20:15 -08:00
Kevin Sawicki
2f797bfc7a
💄 the spec indentation
2013-02-20 12:20:15 -08:00
Corey Johnson & Nathan Sobo
c03b3fa691
💄
2013-02-20 11:44:50 -08:00
Corey Johnson & Nathan Sobo
5c1fb99037
Requiring window no longer has no side-effects
...
Call window.setUpEnvironment instead.
2013-02-20 11:44:39 -08:00
Corey Johnson & Nathan Sobo
2123fabae6
Window is only shutdown if a rootView and project exist
...
Keeping the shutdown state as a local var in window.coffee causes spec failures because window.shutdown can only be called once in the entire spec suite
2013-02-20 11:31:36 -08:00
Corey Johnson & Nathan Sobo
b24a13991a
Make sure window.shutdown is only called once
2013-02-20 10:18:19 -08:00
Corey Johnson & Nathan Sobo
43aa1aaeb7
Rename startApplication to startup and stopApplication to shutdown
2013-02-20 10:02:16 -08:00
Corey Johnson & Nathan Sobo
f5ecaf436e
Move core:close into handleWindowEvents
2013-02-20 09:58:34 -08:00
Corey Johnson & Nathan Sobo
cb1e48bfef
Make toggle-dev-tools command work in spec window
2013-02-20 09:58:00 -08:00
Kevin Sawicki
dedde7b222
Only add newline when insert row exceeds last row
...
Previously if the line before a trailing newline was
duplicated an extra newline would inserted with the
duplicated line.
2013-02-19 21:02:25 -08:00
Kevin Sawicki
d27bbee37d
Support selecting editor lines from the gutter
...
Mouse events that occur in the gutter are forwarded to the
rendered lines with the y-coordinate translated to be the
leftmost pixel of the editor to simulate the event originating
from column 0 of the current line row.
Closes #287
2013-02-19 18:16:29 -08: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
Nathan Sobo
9cd6fda3e1
💄 add trailing newlines
2013-02-19 10:02:09 -07:00
Nathan Sobo
7bdd51b456
Rename deserializeView
to deserialize
...
In additional, rename `registerViewClass(es)` to `registerDeserializer(s)`.
This moves us to a situation where any kind of object may want to be
deserialized, not just views.
2013-02-19 09:48:40 -07:00
Nathan Sobo
4c01a1e600
Fix spec to match improved CoffeeScript grammar
2013-02-18 18:10:43 -07:00
Nathan Sobo
d3c2623b61
Make deserializeView
a global method
...
…along with `registerViewClass(es)`
2013-02-18 18:08:18 -07:00
Kevin Sawicki
4cfd2b41fb
Destroy repo in an afterEach in Git specs
2013-02-15 09:56:04 -08:00
Kevin Sawicki
ee3f5a3c14
Remove unused repo variable
2013-02-15 09:56:04 -08:00
Kevin Sawicki
25e56b9967
Remove unneeded rootView variable in editor spec
2013-02-15 09:56:04 -08:00
Kevin Sawicki
ded53fd58c
Add spec duration to mouseover summary
2013-02-15 09:56:04 -08:00
Kevin Sawicki
092e5214d0
Add spec for Git.getDiffStats(path)
2013-02-15 09:56:03 -08:00
Corey Johnson
56213872b2
Fix 💩 I shouldn't have checked in
2013-02-14 13:23:45 -08:00
Kevin Sawicki
58dbcc9ddc
Un-f spec in atom-spec.coffee
2013-02-14 12:33:33 -08:00
Corey Johnson
da98addf80
better spec toggle
2013-02-14 12:31:31 -08:00
Corey Johnson & Nathan Sobo
da59459197
Autoscroll the last cursor when it inserts text
...
Normally, we don't autoscroll to a cursor when the buffer changes. But
this is a change caused by the cursor itself, so it makes sense to
keep it in view.
2013-02-14 13:21:39 -07:00
Corey Johnson & Nathan Sobo
52cbf5e367
Correctly translate clicks to screen positions w/ var-width fonts
...
Closes #267
2013-02-14 12:04:18 -07:00
Kevin Sawicki
1ab0db11bd
Support folding multi-line comments
2013-02-14 10:57:39 -08:00
Kevin Sawicki
eb179af0d4
Merge pull request #271 from github/super-command-panel
...
Super command panel
2013-02-14 10:13:40 -08:00
Kevin Sawicki
43d46f0705
Load all .css files when theme has no package file
...
Closes #263
2013-02-14 09:04:32 -08:00
Kevin Sawicki
1922034df5
Disable jquery fx in specs
2013-02-13 17:13:15 -08:00
Corey Johnson
8375c8df38
Use previous package state when the wasn't activated
2013-02-13 16:37:59 -08:00
Corey Johnson
958bc2bfab
Moved atom.loadPackage to a spec-only helper function
2013-02-13 16:37:59 -08:00
Corey Johnson
7ade089d04
If an atom package has no state, activate it with an empty object
2013-02-13 10:42:22 -08:00
Corey Johnson
52d4723711
Add underscore, camelize and dasherize to underscore
2013-02-13 10:42:22 -08:00
Corey Johnson
7ff0450379
Don't recurse into packageDirPaths to look for packagePaths
2013-02-13 10:42:22 -08:00
Kevin Sawicki & Nathan Sobo
b2a9208acf
Tab no longer transfers focus
...
The tab keystroke is now suppressed in keymap
if no bindings are triggered.
Closes #258
2013-02-12 17:29:14 -08:00
Nathan Sobo
65bf13e211
Remove unneeded 'resize' event trigger. It's triggered by the helper.
2013-02-12 17:09:05 -07:00
Nathan Sobo
3625a55f68
Update markers before triggering 'changed' events
...
This prevents the editor from synchronously redrawing in specs with
cursors in invalid locations. Markers are always updated under the
hood before a change event is emitted from the Buffer or DisplayBuffer.
We still wait to trigger marker observers, but if their position gets
read, it is up to date.
2013-02-12 17:09:05 -07:00
Nathan Sobo
97988eb62e
Clear font style in afterEach so it doesn't cause test pollution
2013-02-12 17:07:14 -07:00
Nathan Sobo
13db9169e9
Don't simulate DOM attachment. Pixel translation needs the real thing.
2013-02-12 17:07:14 -07:00
Nathan Sobo
405a918280
Never redraw when the font size changes on a detached editor
...
When the font size changes and the editor is detached, it schedules
itself to be redrawn the next time we're reattached rather than
updating the display in a detached state.
Detached display updates worked in the past because we didn't need to
be on the DOM to determine horizontal and vertical positions once we
had calculated dimensions once. So it worked to temporarily attach
the editor when calculating new dimensions, and then continue updates
even when it was detached. That now breaks because we can't ask for
pixel positions if we aren't on the DOM.
2013-02-12 17:07:14 -07:00
Nathan Sobo
81145eb35f
Initial support for variable width fonts
...
When translating a logical screen position (columns/rows) to a pixel
position, the editor now builds a temporary version of the line for the
given row. It then uses the DOM range API to insert an empty range
at the correct text node and offset for the given column and determines
the left position based on its clientRect.
Depending on the speed impact, we may want to optimize this by
recycling the existing line node if it exists on screen rather than
building a new one every time. We will still have to build one if the
line we're moving to isn't on screen yet. We could also increase the
chances of the line being on screen by autoscrolling to the vertical
position first, and *then* calculating the horizontal position. Lots
to explore here.
2013-02-12 17:07:14 -07:00
Kevin Sawicki
8922a27eb3
Subtract skipped count from complete and total counts
2013-02-12 15:52:00 -08:00
Kevin Sawicki
07c5a94613
Remove unused packages ivar
2013-02-12 15:47:31 -08:00
Kevin Sawicki
2910a90916
Round spec time to 2 decimal points
2013-02-12 14:48:16 -08:00
Kevin Sawicki
5f84ec711b
Add class to hard tabs and leading/trailing spaces
...
This allows whitespace to be still be styled when invisibles
are disabled.
2013-02-12 13:25:22 -08:00
Kevin Sawicki
d234c8fdce
Don't track closed sessions with no path
2013-02-12 11:20:21 -08:00
Kevin Sawicki
eceabf0e31
Add spec for clearing opened session from undo stack
2013-02-12 11:17:43 -08:00
Kevin Sawicki
5ecbda0aac
Restore closed tab at previous index
2013-02-12 09:41:32 -08:00
Jon Rohan
c43a1e5ce5
Undo last closed tab
2013-02-12 08:56:39 -08:00
Kevin Sawicki
1ee1fa02ba
Merge pull request #255 from github/rearrange-tabs
...
Drag and drop tabs
2013-02-12 08:38:52 -08:00
Kevin Sawicki
9057f044bf
Add specs for Editor.moveEditSessionToEditor
2013-02-11 21:01:21 -08:00
Kevin Sawicki
9eae796be3
Add move edit session specs
2013-02-11 20:54:04 -08:00
Kevin Sawicki
c9fae85375
Rename moveEditSessionAtIndex to moveEditSessionToIndex
2013-02-11 20:29:48 -08:00
Corey Johnson
06e96cc346
Fold failed specs on click
2013-02-11 20:23:42 -08:00