Commit Graph

12724 Commits

Author SHA1 Message Date
Kevin Sawicki
54290e0717 Merge pull request #5643 from atom/ks-deprecations-in-tasks
Report deprecations from tasks
2015-02-19 15:14:35 -08:00
Max Brunsfeld
0674244f5c Always create new window when opening w/ no path
Fixes #5631
2015-02-19 14:35:22 -08:00
Kevin Sawicki
6f2aec4395 Clear deprecations after mapping over them 2015-02-19 14:12:49 -08:00
Kevin Sawicki
d721cc62e3 Report deprecations in tasks 2015-02-19 14:12:48 -08:00
Antonio Scandurra
59cc10a1ee Bring in @nathansobo PR changes
...as they were needed to pass specs
2015-02-19 21:09:06 +01:00
Antonio Scandurra
79c16a0d00 Use softWrapAtNewLines in moveDown and moveUp
/cc: @nathansobo
2015-02-19 20:01:37 +01:00
Max Brunsfeld
cf60855245 Don't destroy repo in ::removePath if it is still needed 2015-02-19 10:28:54 -08:00
Max Brunsfeld
d4298bf077 Add Project::removePath
The tree-view needs to be able to remove a path from
the project
2015-02-19 10:02:37 -08:00
Antonio Scandurra
d3b7ea475f Rename phantomTab to indentToken 2015-02-19 18:58:38 +01:00
Antonio Scandurra
ac6a7bb47f Rename to Token#buildSoftWrapIndentToken 2015-02-19 18:06:20 +01:00
Antonio Scandurra
85e202ee0a Get rid of wrapAtPhantomTokens 2015-02-19 16:23:51 +01:00
Max Brunsfeld
a9adfa6a76 Fix bug in Project::relativize 2015-02-18 16:47:35 -08:00
Brendan Nee
2168a59828 Add "Checking for Update" to menu
When state is “checking”, menu should say “Checking for Update”
2015-02-18 13:50:18 -08:00
Max Brunsfeld
0eb742566f Always open w/ one untitled buffer when no paths are given
Fixes #5607
2015-02-18 11:17:52 -08:00
Max Brunsfeld
39a225821e Reuse current window if it has no project path
Fixes #5615
2015-02-18 10:29:48 -08:00
Antonio Scandurra
e5eaa25381 Wrap at phantom tokens only when moving cursor left
This prevents a weird behavior that affects selection. Before this commit, when
moving the cursor down, if it was inside a real (soft|hard)-tab of a soft
wrapped line, it would reach the end of the line rather than the beginning of
the next wrapped line.

/cc: @nathansobo
2015-02-18 18:58:43 +01:00
Kevin Sawicki
63af713a3f Guard against detected repository that does not open
Closes #5609
2015-02-18 09:16:06 -08:00
Antonio Scandurra
62434d9ad5 Move findWrapColumn into TokenizedLine
* 🐎 Check `isSoftWrapped` only once when updating screen lines
2015-02-18 10:05:48 +01:00
Antonio Scandurra
b0c670b80a Better naming
...thanks @nathansobo
2015-02-18 09:52:23 +01:00
Antonio Scandurra
5e4221f91c Don't show leading phantom tokens
...thanks @grizzilus 😄
2015-02-18 09:46:03 +01:00
Sebastian McKenzie
52506a0df2 Rename 6to5 to Babel 2015-02-18 12:23:58 +11:00
Max Brunsfeld
7fcec6e3c3 Restore old behavior of atom.open 2015-02-17 15:59:49 -08:00
Max Brunsfeld
bcfa4ef608 Restore old behavior for multiple path CLI args
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-02-17 15:25:50 -08:00
Max Brunsfeld
a857932d6f Merge pull request #5537 from atom/try-assign-repo-after-provider-is-registered
Try to set the Project's repo if it does not have one when a new Reposit...
2015-02-17 10:48:08 -08:00
Antonio Scandurra
88ca44d53b Use guard clauses, instead of crappy ANDs 2015-02-16 17:56:36 +01:00
Antonio Scandurra
e62e26a3c2 Wrap on words, not chars 2015-02-16 17:45:57 +01:00
Antonio Scandurra
38118b66cb Do not rely on text anymore, check phantom tokens instead 2015-02-16 15:49:00 +01:00
Antonio Scandurra
131048af65 Use intention-revealing method names 2015-02-16 15:48:59 +01:00
Antonio Scandurra
abd143a255 Extract phantom token recognition into TokenizedLine 2015-02-16 14:33:37 +01:00
Antonio Scandurra
469876161a Improve TokenizedLine#clipScreenColumn 2015-02-16 12:53:09 +01:00
Antonio Scandurra
5ce01118be Cover edge cases 2015-02-16 12:30:00 +01:00
Antonio Scandurra
46fca8360b Use @tabLength instead of an arbitrary value 2015-02-16 11:58:21 +01:00
Antonio Scandurra
fb21cf6123 Wrap appropriately 2015-02-15 12:33:34 +01:00
Antonio Scandurra
7f1bb69580 Initial attempt 2015-02-14 19:04:53 +01:00
Jeremy Engel
6256f62217 Change "optinal" to "optional" 2015-02-14 09:36:20 -08:00
Michael Bolin
5805bf9675 Try to set the Project's repo if it does not have one when a new RepositoryProvider is registered.
I tested this using my test `HgRepositoryProvider`. Now when I run the following from the
command line:

    atom <path-to-directory-with-hg-repository>

And then run the following in the console:

    atom.project.getRepositories()

I get an array with an `HgRepository` in it. Previously, I got an empty array because the
`Project`'s paths were set before my `HgRepositoryProvider` was registered.
2015-02-13 22:27:13 -08:00
Nathan Sobo
55a70da3cf Hide scrollbars on mini editors
Fixes #5548
2015-02-13 19:37:27 -07:00
Max Brunsfeld
9517410ef4 Incrementally initialize presenter in random mutation spec
Fix resulting failures

Signed-off-by: Nathan Sobo <nathan@github.com>
2015-02-13 18:05:05 -08:00
Michael Bolin
8f9b6a3082 Replace directoryExistsSync() with Directory::existsSync().
This makes it possible to remove a TODO in `GitRepositoryProvider`.
2015-02-13 13:25:02 -08:00
Max Brunsfeld
ac7057bb2e Always open new window when --wait is passed
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-02-13 13:04:22 -08:00
Kevin Sawicki
f7138e5190 ⬆️ pathwatcher@3.3 2015-02-13 12:30:37 -08:00
Kevin Sawicki
a3b64d55ad Merge pull request #5526 from atom/upgrade-6to5-to-3.6.0
Move reactCompat option to transform as per 6to5 deprecation warning.
2015-02-13 09:24:51 -08:00
Max Brunsfeld
476876e479 Restore behavior of reusing focused window for opened files 2015-02-12 21:18:20 -08:00
Max Brunsfeld
29662efe7c Don't re-use dev windows for non-dev or vise-versa 2015-02-12 21:18:20 -08:00
Max Brunsfeld
f7e1629cfc Set multiple project paths for multiple cmd-line paths
Signed-off-by: Jessica Lord <jlord@github.com>
2015-02-12 21:18:18 -08:00
Max Brunsfeld
4ebfd22e3d Add Project::addPath 2015-02-12 21:16:26 -08:00
Max Brunsfeld
8ab4ad54d8 Allow Project::setPaths to handle multiple paths
Signed-off-by: Jessica Lord <jlord@github.com>
2015-02-12 21:16:15 -08:00
Max Brunsfeld
ce02c74b76 Remove unused instance variable
Signed-off-by: Jessica Lord <jlord@github.com>
2015-02-12 20:37:40 -08:00
Max Brunsfeld
c732ae8774 Add atom.pickFolder
For showing the native file-picker dialog. The tree-view
will use this to add new root folders

Signed-off-by: Jessica Lord <jlord@github.com>
2015-02-12 20:37:35 -08:00
Nathan Sobo
6a36bdda25 Replace ::hasRequiredMeasurements() with specific criteria in presenter
Now each update method requires a list of specific variables to be
defined before running.
2015-02-12 19:48:06 -07:00