Kevin Sawicki
e87cb34d1d
Support selecting inserted text
2012-10-10 18:02:48 -07:00
Kevin Sawicki
ceb496e202
Use closure wrapper with current event name
2012-10-10 18:02:48 -07:00
Kevin Sawicki
863f9f36fb
Rename editSelectedText to replaceSelectedText
2012-10-10 18:02:48 -07:00
Kevin Sawicki
d93a142263
Rename alterSelection to editSelectedText
2012-10-10 18:02:48 -07:00
Kevin Sawicki
2d8be51e71
Add initial editor command super class
...
This can be extended by extensions targetted
towards acting on text inside the editor and
not contributing any UI
2012-10-10 18:02:48 -07:00
Corey Johnson
75d7950ef5
Fix linemap translation when an atomic token is at the end of a line.
...
Previously, if you entered an atomic token (like a tab) on an empty line it would not position the cursor after the token. This commit fixes that.
If the last screen line token is atomic, and screenLine.translateColumn's sourceColumn parameter is greater than the start position of the atomic token, then the translated column should be the end position of the atomic token.
2012-10-10 14:45:47 -07:00
Corey Johnson
8eb9d6629c
Remove unused methods from token.
...
The refactoring of Editor.buildLineHtml removed the need for these methods
2012-10-10 14:45:46 -07:00
Kevin Sawicki
f694d1d2c8
Update ruby bundle to commit 77dc5d13cc
2012-10-10 13:48:46 -07:00
Kevin Sawicki
6dc5a05f35
Expect var to have modifier class instead of type
...
This changed in the underlying JavaScript bundle
2012-10-09 17:55:21 -07:00
Kevin Sawicki
2aa3667586
Update expected var selector to storage.modifier.js
...
This changed in the underlying JavaScript bundle
2012-10-09 17:49:53 -07:00
Kevin Sawicki
1694f74bcb
Expect var to be a storage.modifier.js type in spec
2012-10-09 17:46:26 -07:00
Kevin Sawicki
1be1d03eac
Update fs spec for new traverseTree callbacks
2012-10-09 17:41:32 -07:00
Kevin Sawicki
8b61e6a9df
Split out file and directory callbacks
2012-10-09 17:41:32 -07:00
Kevin Sawicki
6dcbdfbf55
Update fs spec for new traverseTree callback format
2012-10-09 17:41:32 -07:00
Corey Johnson
701631e7cb
Update spec to use new ruby scopes
2012-10-09 17:23:01 -07:00
Corey Johnson
6b5c3dc1cf
Remove unused variable that causes specs to fail
2012-10-09 17:23:00 -07:00
Corey Johnson
7afbac5a4e
Merge branch 'transpose'
2012-10-09 11:03:26 -07:00
Corey Johnson
a2f2e388d5
Test 💄
...
Instead of inserting text into an existing buffer, I replaced all text in the buffer to make the test easier to understand.
2012-10-09 11:02:39 -07:00
Will Farrington
4b3505d9b5
Disable buffer modified indicator if buffer content matches content on disk
2012-10-08 17:55:35 -10:00
Chris Wanstrath
f5f18abbf0
ctrl-t: transpose
2012-10-08 20:08:07 -07:00
Will Farrington
214735f1d7
add some specs for buffer modified indicator
2012-10-07 09:48:46 -10:00
Kevin Sawicki
f6c29a1d51
Add core:page-up and core:page-down support to tree view
2012-10-05 15:50:32 -07:00
Kevin Sawicki
4b20a26974
Add core:move-to-top and core:move-to-bottom support to tree view
2012-10-05 15:30:54 -07:00
Nathan Sobo
c09f7ebc60
Fix the command panel's handling of move-up/move-down
...
Forgot to add the core: prefix to this area
2012-10-05 10:55:55 -10:00
Nathan Sobo
eae7fcdd97
Fix breaking due to "root-view:" prefixed events
2012-10-05 10:07:37 -10:00
Nathan Sobo
082a666a92
TreeView's move-up/down responds to core:move-up/down
2012-10-05 10:07:37 -10:00
Nathan Sobo
9906dd41b4
Give editor-specific events the "editor:" prefix
2012-10-05 10:07:37 -10:00
Nathan Sobo
16bf8d3c3f
Fix fuzzy-finder spec
2012-10-05 10:07:37 -10:00
Nathan Sobo
67c6ed8de7
Prefix "move-*" events with "core:"
...
I want to prefix all custom events for better categorization and to
distinguish them from built-in webkit events
2012-10-05 10:07:36 -10:00
Kevin Sawicki
c30220ae80
Uncomment lines that match non-whitespace prefix of comment regex
2012-10-04 15:37:28 -07:00
Kevin Sawicki
23e7139ed1
Auto confirm when only one match exists
2012-10-03 13:55:38 -07:00
Kevin Sawicki
5d86b1e818
💄
2012-10-03 10:03:19 -07:00
Kevin Sawicki
09bf000d8f
Select created folder in tree view
2012-10-03 09:49:53 -07:00
Kevin Sawicki
58515b2097
Focus tree view after creating a directory
2012-10-03 08:20:06 -07:00
Kevin Sawicki
189e3be5ae
Wrap around fuzzy finder when at top or bottom
2012-10-02 10:39:35 -07:00
Kevin Sawicki
f51c5dffed
Include trailing slash when checking for dir segment
2012-10-01 22:50:56 -07:00
Kevin Sawicki
2b3991d74e
Use tree-view fixtures dir in tree-view specs
2012-10-01 19:18:13 -07:00
Kevin Sawicki
b7f32036c2
Change editor-selection-change event name to selection-change
2012-10-01 15:44:58 -07:00
Kevin Sawicki
edfd61c702
Remove unneeded class addition
2012-10-01 15:44:58 -07:00
Kevin Sawicki
41cdf130fb
Update highlighted line when editor selection changes
2012-10-01 15:44:58 -07:00
Kevin Sawicki
c7361d487f
Update cursor line when selection screen range changes
2012-10-01 15:44:58 -07:00
Kevin Sawicki
2bea67057b
Add spec for line highlight after backspace
2012-10-01 15:44:58 -07:00
Kevin Sawicki
f2306f444a
💄
2012-10-01 15:44:58 -07:00
Corey Johnson
887720e4de
[fail] added failing gutter spec
...
When you remove a newline with backspace, the background on the gutter line number isn't highlighted. This is to help @kevinsawicki debug the problem.
2012-10-01 15:44:58 -07:00
Corey Johnson
9361b0717c
Give gutter line highlighting its own describe
2012-10-01 15:44:58 -07:00
Kevin Sawicki
e039dab0f6
Don't highlight line in mini editor
2012-10-01 15:44:57 -07:00
Kevin Sawicki
a03512fd90
Add line number padding to expected width
2012-10-01 15:44:57 -07:00
Kevin Sawicki
a4ad5829a5
Disable gutter background highlight on multiline selections
2012-10-01 15:44:57 -07:00
Kevin Sawicki
33abaff747
Don't highlight line if selection is multiline
2012-10-01 15:44:57 -07:00
Kevin Sawicki
12a30873cf
💄
2012-10-01 15:44:57 -07:00