Ben Ogle
d746c7566c
Fix CommandPanel spec
...
I added a new sample-with-comments.js file which
has more matches for 'sort', so the test needed
to be updated.
2013-07-24 12:05:16 -07:00
Ben Ogle
c31ba651cf
Add shortcuts for folding at an indent level.
2013-07-24 12:05:16 -07:00
Ben Ogle
d4d3426b4e
Add foldAllAtIndentLevel()
2013-07-24 12:05:16 -07:00
Ben Ogle
89e3d2efec
Rearrange folding functions
...
I think it is more clear to have small constituent
functions below functions that compose them. IMO,
this reads better.
2013-07-24 12:05:15 -07:00
Ben Ogle
c2326d096b
Fold comments in foldAll()
2013-07-24 12:05:15 -07:00
Ben Ogle
d98ea0180c
Proper handling of cursor up and down behavior when selection range
2013-07-24 11:53:33 -07:00
Ben Ogle
a689a5906e
add moveToEndOfSelection option to moveLEft and moveRight
2013-07-24 11:53:33 -07:00
Ben Ogle
1465736974
Merge branch 'master' into bo-move-word-behavior
...
Conflicts:
src/app/editor.coffee
2013-07-23 15:34:20 -07:00
Ben Ogle
7c414d47cb
Merge pull request #644 from github/bo-fix-scrollbar-issues
...
Fix scrollbar css issues
2013-07-23 15:31:38 -07:00
Ben Ogle
592b0886b2
new editor is now cmd+n, cmd+shift+n is new window fixes #652
2013-07-22 13:45:04 -07:00
Kevin Sawicki & Nathan Sobo
1685d62cae
Don't allow caching of coffee requires to be overridden in tasks
...
This is a follow-on to the previous commit which handled the index.html
case.
2013-07-22 11:50:14 -07:00
Kevin Sawicki
0bb7d3ba09
Default save as dialog to directory of active item
2013-07-22 09:11:57 -07:00
Ben Ogle
8e92499ebb
Fix comments so they match up with actual behavior
2013-07-22 09:02:05 -07:00
Ben Ogle
62e0274ff6
hook selectToFirstCharacterOfLine up to a command in editor.
2013-07-22 09:02:05 -07:00
Ben Ogle
fe4c4e9751
Add selectToFirstCharacterOfLine to editSession
2013-07-22 09:02:05 -07:00
Ben Ogle
164d5591a0
remove comment
2013-07-19 13:25:05 -07:00
Ben Ogle
85cb7c88fa
plumb up the select to boundary to editor commands
2013-07-19 12:21:36 -07:00
Ben Ogle
4ccbd03daf
I can't spell. Boundary.
2013-07-19 12:17:17 -07:00
Ben Ogle
3df33a7367
Add selection counterparts to move next/prev word boundary
2013-07-19 12:07:30 -07:00
Ben Ogle
13b592d1f3
Add Cursor::moveToNextWordBoundry()
...
Plumb up to editor as well.
2013-07-19 11:37:47 -07:00
Ben Ogle
ab8df8dcde
Add moveToPreviousWordBoundry to cursor.
...
Plumb it up to a command in the editor.
2013-07-19 11:16:14 -07:00
Ben Ogle
1ba8218743
Move the resize handle over between the treeview and the editor
...
Otherwise it covers up the scrollbar in the treeview. No bueno.
2013-07-18 17:42:36 -07:00
Ben Ogle
17cf2bd1c8
Merge pull request #635 from github/bo-fix-comment-indent
...
Add proper indents to comments on toggle-line-comments Closes #615
2013-07-18 10:13:28 -07:00
Cheng Zhao
1746bc8797
Add 'Inspect Element' context menu. Fixes #632 .
2013-07-18 20:10:33 +08:00
Cheng Zhao
635f09b741
Destroy window immediately when user choose to close window.
...
There is no need to delay destroy now.
2013-07-18 18:57:34 +08:00
Ben Ogle
d02e9172da
💄
2013-07-17 21:04:50 -07:00
Ben Ogle
76be95bd6c
update comment
2013-07-17 18:25:41 -07:00
Ben Ogle
e43e8d156e
Combat against empty range; fixes tests
2013-07-17 18:22:41 -07:00
Ben Ogle
c937827582
Use editSession.lineForBufferRow()
...
Rather than the buffer directly.
2013-07-17 17:51:40 -07:00
Ben Ogle
0924ad586f
spaces around the +
2013-07-17 17:39:39 -07:00
Ben Ogle
abdce2df04
replace new Range(...) with [[..], [..]] syntax
2013-07-17 17:38:51 -07:00
Ben Ogle
365e5e8413
calcMinIndent -> minIndentLevelForRowRange
2013-07-17 17:35:05 -07:00
Ben Ogle
90e53ad3e2
Add proper indents on auto comments
2013-07-17 16:04:53 -07:00
Corey Johnson & Matt Colyer
4a67bfcf15
Remove editor.autoIndentOnPaste config option
...
Normalize paste on indent covers most use cases of autoindent when pasting.
Closes #584
2013-07-16 17:08:12 -07:00
Kevin Sawicki
1a76e3dc9d
Add missing '..' to node directory path
...
The path has changed and one more parent directory needs to be
traversed to find the bundled path to node for spawning child
processes.
2013-07-15 12:20:09 -07:00
Kevin Sawicki
16095c8086
Add New Window to File menu
...
Closes #626
2013-07-11 20:22:43 -07:00
Kevin Sawicki
12580bce83
Guard against missing file path in getScore()
2013-07-10 08:54:15 -07:00
Cheng Zhao
753b11cf15
Register Atom to handle atom:// scheme URLs.
2013-07-10 18:57:26 +08:00
Kevin Sawicki
ed1f51b987
Map k/j to up/down in archive-view
2013-07-08 18:57:58 -07:00
Kevin Sawicki
f1bdcaedc1
Support moving up/down in tree view with k/j keys
2013-07-08 17:06:16 -07:00
Kevin Sawicki
4ae0d8af9f
Use tantamount for _.isEqual() implementation
...
This code was needed in telepath so it was pulled out as a
standalone module with the exact same behavior as was previously
in Atom.
2013-07-06 13:54:46 -07:00
Kevin Sawicki
651bbaa3ce
Create an empty ~/.atom/config.cson when missing
...
Closes #614
2013-07-05 09:17:44 -07:00
Kevin Sawicki
c7f6e87132
Only use event.which when key identifier is non-ASCII
...
Previously event.which was used when it was less than the key identifier
which broke fn-delete since that generates a valid key identifier but a
lower event.which value that does not translate to 'delete' using the char
code converter.
Close #611
2013-07-02 13:13:45 -07:00
Kevin Sawicki & Nathan Sobo
0e6a3c52ad
Add comments to view cache ivars
2013-07-02 10:13:59 -07:00
Kevin Sawicki
b786bcc774
Store views that don't implement setModel() by their item
...
Previously viewForItem() would create a new view each time it was called
with an item whose view did not implement setModel() even if a view for that
item already existed in the pane.
Now a WeakMap is used to map items to their view so they can be reused
and cleaned up even when the view does not implement setModel().
2013-07-02 09:41:46 -07:00
Nathan Sobo
23df564189
Release any leftover buffers in Project.destroy
2013-07-01 14:21:42 -06:00
Nathan Sobo
0c17ed9c33
Return a clone of @buffers from Project.getBuffers
...
Previously, we traversed the EditSessions. Not necessary.
2013-07-01 14:21:42 -06:00
Kevin Sawicki
7615d54337
Support calling fsUtils.absolute() with a '~' path
2013-07-01 12:46:50 -07:00
Kevin Sawicki
6b591b121d
Interpolate pathToCreate instead of path
...
This regressed as part of the migration to using helpers from
path instead of fs-utils.
Close #608
2013-07-01 12:10:52 -07:00
Kevin Sawicki & Nathan Sobo
268edf16d8
Make setModel optional in pane item view classes
2013-07-01 10:53:34 -07:00