Commit Graph

625 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
24ce415283 Move event listener calls from resetDisplay to edit
Fixes #140
2013-04-24 11:41:56 -07:00
Kevin Sawicki
1ccf026a83 Set/get text using edit session instead of buffer 2013-04-23 08:54:43 -07:00
Kevin Sawicki
2d897ba415 Remove trailing whitespace 2013-04-23 08:54:18 -07:00
Garen Torikian
53f03d1b30 Missed a spot 2013-04-18 20:10:30 -07:00
Garen Torikian
5ee388cede Get it to a proper 80% 2013-04-18 18:50:22 -07:00
Garen Torikian
e478d9b7a0 Add more corrections off of the #Internal syntax 2013-04-18 13:38:26 -07:00
Garen Torikian
a50cfa26cc Updates for new biscotto 2013-04-18 13:05:40 -07:00
Garen Torikian
130baf2235 Merge branch 'master' into api/docs 2013-04-17 16:08:18 -07:00
Kevin Sawicki
379bf54c40 Don't set widthChanged handler on gutter
The gutter now uses flex box so the width is no longer explicitly
set based on the number of lines.
2013-04-17 09:01:27 -07:00
Kevin Sawicki & Nathan Sobo
807c6878c1 Set width of hidden input to 1 pixel
Previously the width was set to the width of a single character which
caused issues if the char width was currently zero and since the hidden
input no longer has padding or border the width of the input would end
up being zero which would prevent it from gaining focus.
2013-04-16 15:20:16 -07:00
Corey Johnson & Nathan Sobo
8f0bffc589 Don't set height on mini editor explicitly. Let 'height: auto' do it.
We're not sure why this is here, and can't see a problem when we remove
it.
2013-04-15 20:45:55 -06:00
Nathan Sobo
91cbcf0073 Update editor lines & cursors to not use bootstrap-styled pre element 2013-04-15 20:45:55 -06:00
Garen Torikian
4c56e8bb57 Merge branch 'master' into api/docs 2013-04-14 09:43:06 -07:00
Garen Torikian
8bd02358d2 Should I regret a lack of better commit messages? 2013-04-12 22:35:54 -05:00
Garen Torikian
286e70cc57 Hella Editor updates 2013-04-12 15:17:11 -05:00
Garen Torikian
7e5b6bf5c4 Massive updates 2013-04-11 21:11:12 -05:00
Garen Torikian
bb8f5bb40c Fix errors 2013-04-11 02:29:48 -05:00
Kevin Sawicki
1ae878c000 Fire will-be-removed event from beforeRemove() 2013-04-10 17:43:26 -07:00
Garen Torikian
9432f9703e Merge master 2013-04-10 15:05:21 -05:00
Garen Torikian
79562f51fd Some more low hanging fruit 2013-04-10 01:28:50 -05:00
Garen Torikian
fad987c0f3 More updates--25% 2013-04-09 18:03:39 -05:00
Kevin Sawicki
53c3fa8ac8 Bind meta-< to scroll to cursor location 2013-04-09 14:33:36 -07:00
Garen Torikian
bf76083939 Merge master 2013-04-09 14:54:17 -05:00
Mutwin Kraus
c91de1e515 Merge remote-tracking branch 'origin/master' into vim-core-changes
Conflicts:
	src/app/pane.coffee
2013-04-09 18:52:36 +02:00
Garen Torikian
a16428c5b6 Merge master 2013-04-09 01:37:46 -05:00
Kevin Sawicki
c7175c7e5f Return top and left values of 0 when not visible 2013-04-08 13:03:19 -07:00
Kevin Sawicki
b7b4dcda24 Schedule redraw when updating an invisible editor
The redrawOnReattach flag will now be set when update
display is called on an invisible editor so that if the
editor is detached or hidden before the next update was
processed it will be performed when reattached.
2013-04-08 12:50:05 -07:00
Kevin Sawicki
503b1231db Redraw editor when it becomes the active view
Start watching for when the editor becomes the active view
once it is attached and redraw it when it does.
2013-04-08 12:00:25 -07:00
Mutwin Kraus
9041c56ef3 Spec for selectToBeginningOfNextWord 2013-04-08 14:19:28 +02:00
Mutwin Kraus
2445829f83 Specs for moveCursorToBeginningOfNextWord 2013-04-08 14:15:25 +02:00
Mutwin Kraus
a12c78100e Merge remote-tracking branch 'origin/master' into vim-core-changes
Conflicts:
	src/app/editor.coffee
2013-04-08 12:54:43 +02:00
Garen Torikian
f2698bc6a9 More updates 2013-04-08 02:14:45 -05:00
Garen Torikian
fe0dc8181a More doc updates--now at 15% 2013-04-05 14:33:58 -07:00
Nathan Sobo
abc5ed5190 Add editor:add-selection-above command 2013-04-05 14:52:35 -06:00
Nathan Sobo
37e16bb163 Clear multiple selections on escape
The binding uses the `!important` selector to ensure that the editor
always gets a chance to clear multiple selections before other bindings
for escape are processed.
2013-04-05 14:52:35 -06:00
Nathan Sobo
7b7c77645c Rename SelectionView.destroyed to .needsRemoval to match CursorView 2013-04-05 14:17:20 -06:00
Nathan Sobo
f6bfab5dd7 Don't freak when selections are added & removed before display update
Previously, if a selection was added and removed before the editor got
a chance to update its display, it would try to add a selection view
for the destroyed selection. Now we check the new selections and
cursors to make sure they aren't destroyed before we add views for
them.
2013-04-05 14:17:20 -06:00
Nathan Sobo
26e53584c1 Add 'editor:add-selection-below' command
It still needs work, but the basic idea is for every selection to
add another another selection over the same column range of the line
below.
2013-04-05 14:17:20 -06:00
Kevin Sawicki
1e3d157f49 💄 2013-04-05 09:01:02 -07:00
Garen Torikian
9e38537239 Hella docs, we're up to 10% coverage 2013-04-04 18:54:36 -07:00
Mutwin Kraus
3a3336aaaa Merge remote-tracking branch 'origin/master' into vim-core-changes 2013-04-04 20:19:00 +02:00
Kevin Sawicki
e442dfff11 Support joining editor lines with ctrl-J
This can be used with or without a selection to join one
or more lines with the line below it separated by a space.

Refs #134
2013-04-04 11:07:59 -07:00
Mutwin Kraus
42119ecb29 Merge remote-tracking branch 'origin/master' into vim-core-changes
Conflicts:
	src/app/text-buffer.coffee
2013-04-04 14:23:58 +02:00
Nathan Sobo
ed1c5d3417 Localize grammar reloading / setting to LanguageMode
Previously, logic associated with swapping grammars was a bit
scattered. Now grammar reloading / assignment methods delegate to
LanguageMode directly, and it emits a 'grammar-changed' event when
the grammar changes. Now EditSession and TokenizedBuffer listen for
this event and perform necessary actions for grammar change.
2013-04-03 18:34:53 -06:00
Nathan Sobo
f03b6207de Make all requires of 'fs-utils' assign to fsUtils var instead of fs 2013-04-03 12:01:37 -06:00
Nathan Sobo
5df78812ef Rename EditSession.scanInRange to scanInBufferRange
This is more consistent with other range-oriented methods on
EditSession. At this layer, we need to be explicit about what kind
of range we are talking about.
2013-04-03 11:28:55 -06:00
Mutwin Kraus
2cda2b9fe2 Move cursor to beginning of next word 2013-04-03 16:32:30 +02:00
Garen Torikian
3d076daf54 More updates 2013-04-02 17:54:34 -07:00
Mutwin Kraus
9a6b5986fe Add editor.selectLine 2013-04-02 15:24:12 -07:00
Garen Torikian
0b6c817f0a First drop of comments 2013-04-02 14:00:56 -07:00