Kevin Sawicki
c5349f53b2
Wrap code example in backticks
2014-01-20 16:00:01 -08:00
Kevin Sawicki
8b4b4a6ea9
📝 Indent comment correctly
2014-01-20 16:00:01 -08:00
Brandon Tilley
8bba4d8add
Intelligently activate new items when the active item is closed
...
If the active item was the pane's first item, the second item (which is
the new first item) is activated. Otherwise, the item to the left of the
closed item is activated.
2014-01-20 14:34:02 -08:00
Nathan Sobo
4190f2f1ca
Merge remote-tracking branch 'origin/master' into ns-fold-indicators
2014-01-20 14:40:14 -07:00
Nathan Sobo
525b5c9978
Don't make commented lines foldable based on the next line's indentation
...
Only the first line of a set of commented lines should be foldable, even
if some of the lines in the block are indented.
2014-01-20 14:29:08 -07:00
Nathan Sobo
da56c1def5
💄 comments
2014-01-20 14:09:25 -07:00
Nathan Sobo
d965e9f56c
Ensure change doesn't precede rendered range when updating foldability
2014-01-20 11:39:30 -07:00
Kevin Sawicki
57a71b3cb3
Forward open commands to browser process
2014-01-20 10:37:14 -08:00
Kevin Sawicki
71c48ec07f
Open .atom files from browser process
...
This allows a new window to be created if there is no currently
focused window.
2014-01-20 10:37:14 -08:00
Kevin Sawicki
905f628b79
Add command to open user config in an editor
2014-01-20 10:37:13 -08:00
Kevin Sawicki
52e999fc11
Add command to open user keymap in an editor
2014-01-20 10:37:13 -08:00
Kevin Sawicki
3114efbf9c
📝 Update path in comment
2014-01-20 10:37:13 -08:00
Kevin Sawicki
8436e8f62e
Reload user keymap when it is moved/removed
2014-01-20 10:37:13 -08:00
Kevin Sawicki
ba1303a895
Add menu to opening user stylesheet
2014-01-20 10:37:13 -08:00
Kevin Sawicki
59c4c15afd
Add command to open ~/.atom/user.less in an editor
2014-01-20 10:37:13 -08:00
Nathan Sobo
2831b43042
Update foldability indicators on changes that don't insert/remove lines
...
On changes that insert/remove lines, we redraw the entire gutter, which
ensures the foldability markers are up to date. But other kinds of
changes could change the foldability of lines… if a line becomes
commented or its indentation changes, the foldability of that line and
the lines above and below could be affected. For now, the gutter
understands this fact and updates the foldability for the region
extending from one line before to one line after each change. Someday
I'd like the view logic to not bake in knowledge of the folding rules,
but this works for now.
2014-01-20 11:17:58 -07:00
Nathan Sobo
3eb7c9d767
Add LanguageMode::toggleLineCommentForBufferRow for toggling single rows
2014-01-20 11:14:27 -07:00
Nathan Sobo
ed93695d64
Add a foldable indicator for multi-line comments
2014-01-18 12:08:37 -07:00
Nathan Sobo
4db2ad53fd
Rename .fold class to .folded on line numbers in gutter
...
Using an adjective blends in better with '.foldable'
2014-01-18 11:35:22 -07:00
Nathan Sobo
99f025d5d6
Rename .fold-icon to .icon-right in gutter to make it multi-purpose
2014-01-17 16:59:50 -07:00
Kevin Sawicki
e0cf20cda9
Don't throw error when saving empty pane
...
Closes #1440
2014-01-17 15:24:55 -08:00
Nathan Sobo
a774c2ff08
🔫 unnecessary return statement
2014-01-17 15:46:49 -07:00
Nathan Sobo
fa6bce3085
Rename LanguageModel::isBufferRowFoldable to ::isFoldableAtBufferRow
...
It blends in better with the methods on Editor.
2014-01-17 15:19:07 -07:00
Nathan Sobo
b2dff15e51
Toggle folding upon 'mousedown' on a foldable line's fold-icon
2014-01-17 15:17:13 -07:00
Nathan Sobo
1a12a17b7a
Use actual markup for fold icon so we can determine when it's clicked
2014-01-17 14:55:06 -07:00
Nathan Sobo
8757e1f145
Add downward pointing chevrons next to foldable row numbers in gutter
2014-01-17 14:34:53 -07:00
Nathan Sobo
12ca214d6a
💄 Fix misleading variable name
2014-01-17 14:32:58 -07:00
Nathan Sobo
8e75831318
Rename LanguageMode::doesBufferRowStartFold to ::isBufferRowFoldable
2014-01-17 14:30:40 -07:00
Nathan Sobo
2f049b95a8
Use Delegator mixin to delegate to language mode
2014-01-17 14:07:56 -07:00
Kevin Sawicki
6a14c0df81
Remove unused package require
2014-01-17 12:40:33 -08:00
Kevin Sawicki
083204f737
💄 Sort requires
2014-01-17 12:40:21 -08:00
Kevin Sawicki
4d17f625f8
Null out file when unwatching
2014-01-17 12:28:30 -08:00
Kevin Sawicki
64ebc37204
Reload user stylesheet when changed
2014-01-17 11:33:25 -08:00
Nathan Sobo
926493f05c
Emit 'item-added' before setting the ::activeItem when adding first item
...
Fixes atom/tabs#11
2014-01-17 11:10:17 -07:00
probablycorey
4f82662263
Fix page up/page down keybindings
2014-01-17 08:28:45 -08:00
Cheng Zhao
dfa3d8a1c7
Temporarily workaround for slow net.connect, fixes #1429 .
2014-01-17 20:31:03 +08:00
Kevin Sawicki
f19d2d7369
Call selectLeft on editor
2014-01-16 16:00:20 -08:00
probablycorey
7f790137ed
Fix editor method name
2014-01-16 15:55:21 -08:00
probablycorey
c56dce0c80
Cache atom version
2014-01-16 14:07:20 -08:00
probablycorey
ec499e2bde
Remove version instance variable.
...
The version was being assigned to 1 causing getVersion to never check
app.getVersion for the actual version.
Fixes #1428
2014-01-16 12:39:20 -08:00
Nathan Sobo
fe2def8321
Merge remote-tracking branch 'origin/master' into ns-empty-panes
2014-01-16 11:16:00 -07:00
probablycorey
23d9f6e41f
Use actual indentation length when setting indentation for row.
...
Closes #1293
2014-01-16 09:27:26 -08:00
Nathan Sobo
649f0ac246
Merge branch 'master' into ns-empty-panes
...
Conflicts:
package.json
2014-01-16 10:21:59 -07:00
Cheng Zhao
b7ae12f86f
Merge branch 'master' into chrome31
...
Conflicts:
package.json
2014-01-16 23:42:22 +08:00
Kevin Sawicki
1006706cf6
Consistently order less cache import paths
2014-01-15 17:42:17 -08:00
Cheng Zhao
fcffcc83f9
Merge branch 'master' into chrome31
...
Conflicts:
package.json
vendor/apm
2014-01-16 09:11:34 +08:00
probablycorey
b620be7780
Fix cut, copy and paste key bindings
...
Closes #1425
2014-01-15 16:00:09 -08:00
Nathan Sobo
ccd86d91de
Make PaneContainer::activePaneItem behavior distinct until changed
...
If we switch from one empty active pane to another empty active pane,
there's no reason to emit a value from the activePaneItem behavior.
2014-01-15 16:08:36 -07:00
Nathan Sobo
5e14d44d6a
Destroy all pane models when workspace view is removed
2014-01-15 16:07:47 -07:00
Nathan Sobo
41dd4a386a
Restore PaneView::getContainer. Turns out it's actually public.
2014-01-15 16:07:47 -07:00