Commit Graph

1793 Commits

Author SHA1 Message Date
Nathan Sobo
68b05a5d8d Allow for panes to exist without a rootView (for testing purposes) 2013-03-07 09:28:51 -08:00
Nathan Sobo
5b58751a14 💄 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
57b0151cd2 Remove the dev-mode css style, for now 🔜 2013-03-05 16:10:03 -08:00
probablycorey
9331b3beed Add .dev-mode class to root view 2013-03-05 16:10:02 -08:00
probablycorey
d6ae5a1778 Set atom.devMode 2013-03-05 16:10:02 -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
Kevin Sawicki
60c2829af4 Move ahead/behind defaults to Git class 2013-03-04 21:47:21 -08:00
Kevin Sawicki
8b7e3c1092 Remove unused imports 2013-03-04 21:43:35 -08:00
Kevin Sawicki
165dffc15d Always return array from Git.getLineDiffs() 2013-03-04 21:43:34 -08:00
Kevin Sawicki
c9ef846727 Only replace .git segment if trailing 2013-03-04 21:43:34 -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
1be0b817de Specify text as second parameter 2013-03-04 21:43:34 -08:00
Kevin Sawicki
ab5043f890 Add method to get line diffs for path and text 2013-03-04 21:43:34 -08:00
Kevin Sawicki
e3ebda7d30 Show commits ahead/behind upstream in status bar 2013-03-04 21:43:34 -08:00
Kevin Sawicki
fd82f3f8a4 Add method to get ahead/behind commit counts 2013-03-04 21:43:34 -08:00
Kevin Sawicki
3703877ae8 Default status flags to 0 2013-03-04 21:43:34 -08:00
Kevin Sawicki
4384c69dcf Delete cached statuses unless non-zero 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
77a5f4775a Show Git status indicators on directories
Closes #301
2013-03-04 21:43:33 -08:00
Kevin Sawicki
2e7e4b3ee4 💄 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
219a8581fd 💄 2013-03-04 21:43:33 -08:00
Kevin Sawicki
94449f772c Initialize statuses and task variables correctly 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
083562e1aa Abort status task when destroyed 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
0fe570fc47 Log warning instead of throwing error when installing atom binary 2013-03-04 15:44:49 -08:00
Joshua Peek
04ec1b01be Fallback to /usr/local/bin/atom 2013-03-04 14:45:24 -06:00
Corey Johnson
595cf71d93 Return absolute path for Git repo 2013-03-01 13:54:19 -08:00
Corey Johnson
057ccf7157 Add - to nonWordCharacters 2013-02-28 09:45:19 -08: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
ef9d4b392b Support passing options through DisplayBuffer.markScreenRange 2013-02-26 17:17:58 -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
d6d6ff8cca 💄 2013-02-26 15:08:33 -08: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
Kevin Sawicki & Nathan Sobo
1fcaa52217 Remove unused parameter 2013-02-26 14:06:19 -08:00
Corey Johnson & Kevin Sawicki
f8563a1509 💄 2013-02-26 09:04:02 -08:00
Kevin Sawicki
f51f097615 Add back checkmark for selected grammar 2013-02-25 15:13:48 -08:00
Corey Johnson
ad14e65ef9 Add atom.getVersion(callback) 2013-02-25 14:58:11 -08:00
Kevin Sawicki
5d0c23e0fa Sort grammars by name in select list 2013-02-25 14:50:55 -08:00
Kevin Sawicki & Nathan Sobo
99c1819ceb Install cli to /opt/boxen if it exists 2013-02-25 12:40:59 -08:00
Kevin Sawicki & Nathan Sobo
f3dac141ff Open pathToOpen before packages load
Previously pathToOpen was opened after packages
were loaded which prevented packages from accurately
relying on rootView.getActiveEditSession().
2013-02-25 12:23:00 -08:00