Kevin Sawicki
e792265076
Trigger grammars-loaded event on syntax
2013-01-28 14:34:49 -08:00
Corey Johnson & Nathan Sobo
493ed5f006
Merge branch 'web-workers' into dev
2013-01-28 15:02:57 -07:00
Kevin Sawicki
d84c600679
Don't add CR invisible if line is soft wrapped
2013-01-28 13:33:46 -08:00
Kevin Sawicki
fa5ceedfe0
Don't add EOL invisible if line is soft wrapped
2013-01-28 13:22:32 -08:00
Nathan Sobo
96b0cde85a
Merge branch 'dev' into web-workers
2013-01-27 18:53:59 -07:00
Kevin Sawicki & Nathan Sobo
98614592af
Store line endings on a per-line basis in Buffer
...
The line ending for each line is recorded and reused
when lines are modified or inserted.
Closes #166
2013-01-27 16:01:22 -08:00
Kevin Sawicki
ecc50506c7
Render trailing carriage return as an invisible
2013-01-27 16:01:22 -08:00
Kevin Sawicki
1b76b05e4d
Bind ctrl-C to copy path to clipboard
...
Refs #173
2013-01-25 17:52:05 -08:00
Kevin Sawicki
5d10d6fb44
Load grammars from web worker
2013-01-24 17:22:51 -08:00
Corey Johnson & Nathan Sobo
789c0a3715
Merge branch 'focus-editor-when-selecting-tab' into dev
2013-01-24 09:55:10 -08:00
Corey Johnson
32e281bcc6
Add getWordUnderCursor to Editor and EditSession
2013-01-21 15:19:01 -08:00
Kevin Sawicki
4f069ff12f
Merge pull request #128 from github/dev
...
Merge dev into master
2013-01-19 10:56:22 -08:00
Andy Delcambre
759fe2dd5b
Bind meta-= to autoindent currently selected rows
...
Closes #142
2013-01-18 11:33:20 -08:00
Derek Greentree
176ca529e3
Bind meta-S to save as in editor
...
Close #144
2013-01-18 11:29:34 -08:00
Kevin Sawicki
62f1155706
Don't prompt to save on close if buffer is opened elsewhere
...
Only prompt to save when the buffer is dirty and the last
open session on it is being destroyed.
2013-01-17 17:25:52 -08:00
Derek Greentree
3fc722b885
save -> Save
2013-01-17 12:01:10 -08:00
Kevin Sawicki
97b1bc5f09
editor:close-?-editors => editor:close-?-edit-sessions
2013-01-11 09:54:00 -08:00
Kevin Sawicki
3a582eab63
Display editor's grammar name in status bar
...
Clicking on the grammar name displays the list of
available grammars that can be switched to.
2013-01-10 17:51:15 -08:00
Nathan Sobo
b0fe034c9a
Add autoflow package w/ autoflow:reflow-paragraph command
2013-01-10 17:29:41 -07:00
Corey Johnson
ca41bf0709
Set auto-indent config defaults
2013-01-10 10:38:44 -08:00
Corey Johnson
f5ee676e5e
Pass autoIndent as an option flag
...
Instead of querying EditSession for autoIndenting
2013-01-09 15:24:04 -08:00
Corey Johnson
261a8aae2d
Remove @autoIndent from Project and EditSession
2013-01-09 15:22:37 -08:00
Nathan Sobo
46331ded03
Merge remote-tracking branch 'origin/command-extensions' into dev
...
Conflicts:
spec/app/editor-spec.coffee
spec/app/root-view-spec.coffee
src/app/editor.coffee
src/extensions/strip-trailing-whitespace.coffee
2013-01-09 14:18:10 -07:00
Corey Johnson
95dcf275e4
Remove *.getLastCursor()
2013-01-08 18:27:29 -08:00
Corey Johnson
f9e9b4203c
*.getCursor() always returns last cursor (does not use index)
...
We weren't using the index functionality anywhere.
2013-01-08 18:27:29 -08:00
Kevin Sawicki
61600fcdf1
Reload grammar with edit session path changes
2013-01-08 17:12:08 -08:00
Kevin Sawicki
d9385888c8
Only update display when grammar changes
2013-01-08 16:54:51 -08:00
Kevin Sawicki
3b47c26b4d
Change an edit session's grammar on meta-l
2013-01-08 13:17:12 -08:00
Kevin Sawicki
7465ae5052
Close all editors in pane with meta-P
2013-01-08 09:06:20 -08:00
Kevin Sawicki
ebe7ff7090
Destroy inactive editor sessions that are dirty
...
A confirm dialog is now displayed whenever a session
with a dirty buffer is closed so dirty sessions can now
be processed when 'editor:close-other-tabs' is fired.
2013-01-07 16:50:20 -08:00
Kevin Sawicki
0adae3c634
Prompt to save dirty buffers from destroyEditSessionIndex
...
Previously only the active editor session was prompting to
save dirty buffers before closing. This caused the confirm
dialog to not display when closing from a tab since the
Editor.destroyEditSessionIndex is used there.
2013-01-07 16:24:51 -08:00
Kevin Sawicki
5ded74b3e6
Close inactive editor sessions on alt-meta-w
2013-01-07 15:41:26 -08:00
Kevin Sawicki
2d4c4b3930
Support opening a path into a new split editor
2013-01-07 12:52:23 -08:00
Corey Johnson & Nathan Sobo
28c457f564
Add Cursor.getScopes and EditSession.getCursorScopes
2013-01-07 13:32:12 -07:00
Kevin Sawicki
bbdff31faf
Lowercase current word/selection with meta-U
2013-01-07 09:37:51 -08:00
Kevin Sawicki
2a0ee62685
Uppercase current word/selection with meta-u
2013-01-07 09:37:51 -08:00
Kevin Sawicki & Nathan Sobo
29f371b347
Use Editor.abort to clear autocomplete's buffer changes on cancel
...
Using this new `abort` mechanism ensures that autocomplete's changes can never be redone, while eliminating the need to track operation counts explicitly.
2013-01-04 12:44:44 -07:00
Kevin Sawicki & Nathan Sobo
8098ee69f3
Rename Editor attach and remove events in accordance w/ new scheme
...
'editor-open' -> 'editor:attached'
'before-remove' -> 'editor:will-be-removed'
2013-01-04 11:25:45 -07:00
Kevin Sawicki & Nathan Sobo
0589012e86
Rename 'editor-path-change' to 'editor:path-changed'
2013-01-04 11:25:45 -07:00
Nathan Sobo
73b38b6b59
Passivize names remaining events triggered by EditSession
2013-01-03 18:16:19 -07:00
Nathan Sobo
fb6fe04023
Passivize more event names: 'change(d)' & 'screen-lines-change(d)'
2013-01-03 18:16:19 -07:00
Nathan Sobo
de21db0ea8
Simplify Editor subscriptions
...
We no longer subscribe to `RootView` so we don't need to unsubscribe.
We can use `@subscribe` to subscribe to window, so we don't need to
genette a unique id for the editor in order to unsubscribe, because the
editor will unsubscribe automatically when removed now.
2013-01-02 03:22:16 -07:00
Jon Rohan
0d76ff2ac9
Adding meta-index key commands to editor to access a buffer directly
2012-12-28 20:30:20 -08:00
Jon Rohan
006a6d958d
Adding meta-backspace which will backspace from cursor to the beginning of line
2012-12-28 16:58:22 -08:00
Kevin Sawicki
296138b558
Don't show eol invisible in mini editors
2012-12-28 13:56:44 -08:00
Kevin Sawicki
e941459ca7
Register click past last line handler on underlayer
2012-12-27 08:26:32 -08:00
Jon Rohan
20eba7438b
making the underlayer min-height instead of height, to see the wrap guide go full screen
2012-12-26 22:16:18 -08:00
Kevin Sawicki
a9b9c09a86
Only show wrap guide when enough space
...
Previously the wrap guide would cause the
editor to scroll if the editor was narrower
than the wrap guide column without taking into
account whether any lines actually reach the guide.
Now the wrap guide only displays when either the wrap
guide column is less than the minimum width of the
editor layer or if the wrap guide column is less than
the entire width of the editor.
2012-12-26 12:48:49 -08:00
Kevin Sawicki
518a71910d
Support clicking past last editor line
...
Clicking below the last line of an editor
now either moves the cursor to the end of
the file or selects to the end of the file
if shift is pressed.
2012-12-26 11:08:28 -08:00
Kevin Sawicki
628d22de0a
Use tab invisible that is available in Inconsolata
...
Previously a non-Inconsolata character
was being used which caused alignment issues
with selections and the cursor
Also switch values in editor.coffee to use codes
so they can be viewed in any font.
2012-12-20 14:50:51 -08:00