Commit Graph

3687 Commits

Author SHA1 Message Date
Kevin Sawicki
37d67e8a83 Add spec for dragging with editor hidden 2014-03-13 10:56:31 -07:00
Kevin Sawicki
2f8e67d679 Add event.which to 1 in more specs 2014-03-13 10:49:34 -07:00
Kevin Sawicki
22dc165a25 Set event.which to 1 in specs 2014-03-13 10:47:03 -07:00
Kevin Sawicki
864ab0c095 Use file path in save as dialog
Previously the dirname of the file path was used which caused the
save dialog to not be filled in with the current file name

Closes #1748
2014-03-12 18:41:50 -07:00
Kevin Sawicki
68c2c18d83 Don't allow the tab length to go below 1
Closes #1751
2014-03-12 18:00:11 -07:00
Kevin Sawicki
8cb66895f0 Check that activations events are present
Having an empty array, object, or string will now be treated
as no activation events.

This was reported as being confusing since people were just clearing
the array generated by the package generator but their packages weren't
activating.
2014-03-11 16:15:30 -07:00
Kevin Sawicki
d6433a67c8 Incluse JavaScript specs when loading suite
Closes #1615
2014-03-11 13:01:28 -07:00
probablycorey
945011f9e3 Add data to the same jquery object that is appended to the list.
Closes #1747
2014-03-11 11:20:03 -07:00
Kevin Sawicki
86cd7f7a01 Handle non-integer indentation level values
This was already occurring when using hard tabs but soft tabs still
had issues.

Refs atom/language-c#7
2014-03-10 18:45:18 -07:00
Kevin Sawicki
a79090c65a Unfocus spec 2014-03-10 18:43:38 -07:00
Kevin Sawicki
86c720af81 Normalize all tabs, not just the first one
Refs atom/language-javascript#10
2014-03-10 17:57:10 -07:00
Nathan Sobo
4acfe11af1 Remove previous duplicate-line specs from editor-view-spec 2014-03-06 14:49:20 -07:00
Nathan Sobo
85824c5df6 Handle last buffer line in Editor::duplicateLines 2014-03-06 14:48:52 -07:00
Nathan Sobo
20a0c27111 Rename duplicate-line to duplicate-lines (but retain deprecated method)
Might as well make the name accurate while it's early.
2014-03-06 14:36:25 -07:00
Nathan Sobo
ce4ce55b29 Make outermostFoldsForBufferRowRange exclusive of end row 2014-03-06 12:52:27 -07:00
Nathan Sobo
d97a0a3324 Add DisplayBuffer::outermostFoldsInBufferRowRange 2014-03-06 12:36:42 -07:00
Nathan Sobo
aff37d1ae4 WIP: Add failing spec for duplicating folds when duplicating lines 2014-03-06 00:29:35 -07:00
Nathan Sobo
a0234d0cc6 Handle empty selections on folded lines 2014-03-06 00:07:59 -07:00
Nathan Sobo
8a77acb51e Duplicate multiple selections and multiple lines; folds are broken 2014-03-05 23:29:28 -07:00
Nathan Sobo
690bbbd14c 💄 Fix indentation level of the last describe in editor-spec
I think I screwed it up in the last commit
2014-03-05 21:34:31 -07:00
Nathan Sobo
9c9bb2f192 💄 Flatten the structure of editor-spec
Previously there were 2 top-level describes:

"with an initial line option"
"with default options"

The default options describe contained almost all the specs, so this
commit just creates the editor again in a single spec about the
initialLine option and peels off a layer.
2014-03-05 21:32:11 -07:00
Nathan Sobo
23a40fe051 💄 Move specs for Editor::reloadGrammar to editor-spec 2014-03-05 21:23:39 -07:00
Kevin Sawicki
35ad8abf4c Add expect for project state 2014-03-05 15:06:19 -08:00
Corey Johnson
75b6e94be1 Merge pull request #1699 from atom/cj-convert-keystrokes-using-shift
Converts keystrokes with alpha chars using shift
2014-03-05 15:00:42 -08:00
probablycorey
d0889cca31 Normalize keystrokes to use shift and the uppercase letter
`cmd-shift-l`, `cmd-L` and `cmd-shift-L` all normalize to `cmd-shift-L`
2014-03-04 17:42:32 -08:00
probablycorey
8b673c7adf Refer to char instead of chars 2014-03-04 17:34:17 -08:00
probablycorey
4aa73968f0 Converts keystrokes with alpha chars using shift
e.g. cmd-shift-l would be converted to cmd-L
2014-03-04 17:04:06 -08:00
Nathan Sobo
06bc09951d Fix position translation bug for wrapped lines with hard tabs
Fixes #1681
2014-03-04 17:55:53 -07:00
Nathan Sobo
e1bc62dae3 Add a spec for line wrapping in the presence of legacy scrollbars 2014-03-04 16:45:50 -07:00
Nathan Sobo
8522707bd2 Switch to .scrollbars-visible-always/when-scrolling class names 2014-03-04 10:50:45 -07:00
Nathan Sobo
0eac9d3e6f Apply 'scrollbar-style-x' class to WorkspaceView
…where x is 'overlay' or 'legacy' depending on whether the scrollbars
are only visible when scrolling (overlay) or always visible (legacy).

This will allow us to style scrollbars in legacy mode without forcing
them to be visible in overlay mode.
2014-03-03 22:33:48 -07:00
Nathan Sobo
7cc68f59a7 Allow multiple unsaved empty buffers to be opened
Fixes #1600
2014-03-01 14:40:48 -08:00
Nathan Sobo
40a8522460 Merge pull request #1623 from atom/ns-fix-editor-width-related-freezes
Fix freezes related to the editor's width in characters being assigned to non-positive integers
2014-02-28 20:38:07 +02:00
Nathan Sobo
4681098e8c Only allow positive widths in characters to be assigned
Fixes #1574
2014-02-28 10:31:02 -08:00
Nathan Sobo
83dc1c76ef Add a spec that corrupts the row map by partially editing a fold 2014-02-28 10:11:57 -08:00
Nathan Sobo
aa04589dd2 Rename Editor::joinLine to ::joinLines
It acts on multiple lines, and in a quick survey of the literature I see
Sublime docs referring to it as "join lines" as well.
2014-02-27 16:16:01 -08:00
Nathan Sobo
f17c490768 Make Editor::unfoldBufferRow destroy all folds containing the buffer row
Also, remove ::destroyAllFoldsContainingBufferRow as it is now redundant
2014-02-27 16:16:01 -08:00
Kevin Sawicki
0d9e7a5e08 Only scan dirty buffers that are inside the project 2014-02-27 14:44:34 -08:00
Kevin Sawicki
0307c0e6c9 Rename ~/.atom/styles.css to ~/.atom/styles.less 2014-02-24 16:14:05 -08:00
Kevin Sawicki
55f4a7b63e Remove unneeded exists checks 2014-02-23 17:26:49 -08:00
Kevin Sawicki
a651254e38 Require fs-plus directly in specs 2014-02-23 17:19:00 -08:00
Kevin Sawicki
1131952a54 Remove stray unicode char 2014-02-23 17:11:38 -08:00
Kevin Sawicki
189ebc4476 Remove _/fs from modules directly 2014-02-23 17:09:05 -08:00
Nathan Sobo
67a1112ced Don't destroy empty panes in specs 2014-02-21 16:08:35 -07:00
Nathan Sobo
0eaf3b6336 Add an 'application:open-license' command
It just opens the LICENSE file in a buffer
2014-02-21 13:08:26 -07:00
Kevin Sawicki
4c65d711b0 Log warning when ~/.atom/keymap.cson can't be parsed
Previously an uncaught error would be thrown and the file
would no longer be watched
2014-02-20 14:31:27 -08:00
Corey Johnson
8c145168ef Merge pull request #1554 from atom/cj-ns-rename-workspace-view-pane-methods
Rename workspace view pane methods
2014-02-20 14:00:05 -08:00
Kevin Sawicki
c515cf880c Verify selector before registering keybinding 2014-02-20 12:23:08 -08:00
Kevin Sawicki
08ede33b66 Log warning when enabled theme isn't installed 2014-02-20 11:42:04 -08:00
Kevin Sawicki
893493960f Relativize stack trace paths 2014-02-19 11:12:58 -08:00