Corey Johnson & Nathan Sobo
253a07e2c4
Add comment explaining the need for appending \n when scanning lines with a TextMate grammar
2012-10-16 16:07:54 -07:00
Corey Johnson
6171ea33e1
Add support for TextMate grammars with newlines in their regexes
2012-10-16 15:58:11 -07:00
Kevin Sawicki
6551be0c85
Update the buffer being used when the editor path changes
...
Previously the status indicator would only work for the first
buffer open since only the buffer used when the extension was
initialized was subscribed to for change events.
2012-10-12 15:39:52 -07:00
Kevin Sawicki
0da869589e
Use change event instead of buffer-change event
...
This will update the modified indicator after operations
are undone
2012-10-12 15:08:01 -07:00
Kevin Sawicki
19aa192c47
Return paths instead of deferred from project.getFilePaths
...
It was already being performed synchronously
2012-10-12 14:45:18 -07:00
Kevin Sawicki
5bf951d96f
Create ScrollView super class
...
Binds support for page up, page down, move to top,
and move to bottom in the initialize method.
2012-10-12 09:21:35 -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
7fd06c8e66
Remove logging of traversal times
2012-10-09 17:41:33 -07:00
Kevin Sawicki
d8ea07468b
Include FTS_PHYSICAL when calling fts_open
2012-10-09 17:41:33 -07:00
Kevin Sawicki
8b61e6a9df
Split out file and directory callbacks
2012-10-09 17:41:32 -07:00
Kevin Sawicki
71c161d527
Remove unneeded regex matching for built-in ignores
2012-10-09 17:41:32 -07:00
Kevin Sawicki
51a41a9a72
Add native traverseTree
2012-10-09 17:41:32 -07:00
Kevin Sawicki
8ce6810179
Support bundles with foldingStopMarker under Preferences/
2012-10-09 16:57:43 -07:00
Corey Johnson
7afbac5a4e
Merge branch 'transpose'
2012-10-09 11:03:26 -07:00
Will Farrington
d5b0e7acd2
memoize Buffer @contentOnDisk so we don't re-read the whole file on every buffer-change event
2012-10-08 18:17:15 -10:00
Will Farrington
4b3505d9b5
Disable buffer modified indicator if buffer content matches content on disk
2012-10-08 17:55:35 -10:00
Will Farrington
7dd69cfecd
Merge remote-tracking branch 'origin/master' into status-bar-buffer-modified-indicator
2012-10-08 17:38:55 -10:00
Chris Wanstrath
602f4ee233
trigger buffer-change after the change, not before
2012-10-08 20:28:18 -07:00
Chris Wanstrath
fa10a8e6ac
use the local selection instance
2012-10-08 20:13:16 -07:00
Chris Wanstrath
f5f18abbf0
ctrl-t: transpose
2012-10-08 20:08:07 -07:00
Kevin Sawicki
7fc362c801
Prune paths that are files
...
This avoids an extra call to isDirectory for each path
that has already been determined to be a file and
therefore not a directory.
2012-10-08 12:10:49 -07:00
Will Farrington
09024e0dc8
Merge remote-tracking branch 'origin/master' into status-bar-buffer-modified-indicator
2012-10-07 09:13:08 -10: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
ae224ca515
Prefix events handled by root-view with "root-view:"
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
0ab50cf102
Move cut, copy, and paste into "core:"
2012-10-05 10:07:37 -10:00
Nathan Sobo
23f4e533d9
Move undo and redo in "core:"
2012-10-05 10:07:37 -10:00
Nathan Sobo
a2a15a90fd
Move backspace and delete into "core:"
2012-10-05 10:07:37 -10:00
Nathan Sobo
8cde98bf45
Move select-to-top/bottom and select-all into "core:"
2012-10-05 10:07:36 -10:00
Nathan Sobo
c221729407
Move "select-up/down/left-right" into "core:"
2012-10-05 10:07:36 -10:00
Nathan Sobo
6df8ebb183
Bind emacs bindings for "core:" events to body
2012-10-05 10:07:36 -10:00
Nathan Sobo
6061c3e52a
Prefix move-to-top/bottom page-up/down with "core:"
2012-10-05 10:07:36 -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
282802ac6c
Scroll auto complete view with editor window
2012-10-02 12:51:06 -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
f2306f444a
💄
2012-10-01 15:44:58 -07:00
Kevin Sawicki
0059accaa4
Access correct editor mini variable
2012-10-01 15:44:58 -07:00
Kevin Sawicki
350e1a22da
Add missing space in class name
2012-10-01 15:44:58 -07:00
Corey Johnson
d5b1146b9b
Only call gutter.afterAttach once
2012-10-01 15:44:57 -07:00
Kevin Sawicki
e039dab0f6
Don't highlight line in mini editor
2012-10-01 15:44:57 -07:00
Kevin Sawicki
f87b186538
Add highlight to new line html builder
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
d69e08a858
Use screen rows for line highlight
2012-10-01 15:44:57 -07:00
Kevin Sawicki
2de14a701f
Set width to 0 on tester element
2012-10-01 15:44:57 -07:00