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
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
Nathan Sobo
acc0503684
Merge remote-tracking branch 'origin/master' into config
...
Conflicts:
src/app/keymap.coffee
src/extensions/outline-view/src/keymap.coffee
src/extensions/outline-view/src/tag-reader.coffee
src/packages/fuzzy-finder/spec/fuzzy-finder-spec.coffee
src/packages/fuzzy-finder/src/fuzzy-finder.coffee
2012-12-18 20:32:05 -07:00
Nathan Sobo
fc9bf38a2a
*Must* use get and set to access config values.
...
The `config` object no longer stores config properties directly. Instead it stores them on an internal `settings` object, which makes it easier to serialize settings without getting them mixed up with non-setting state on the `config` object.
2012-12-17 20:56:37 -07:00
Nathan Sobo
4538a70859
Add config.editor.autosave
2012-12-16 11:30:06 -08:00
Corey Johnson & Nathan Sobo
827d6b57fb
Use observeConfig in Editor
2012-12-14 15:01:31 -08:00
Nathan Sobo
aedc86705e
Merge branch 'master' into config
2012-12-12 16:48:58 -08:00
Nathan Sobo
3c2b84a46d
Add config.editor.fontSize
2012-12-12 15:23:36 -08:00
Nathan Sobo
8088e4d90c
Add config.editor.invisibles field for customizing invisible glyphs.
2012-12-12 14:45:58 -08:00
Nathan Sobo
db0a39679c
Remove showInvisibles constructor param on Editor
...
And remove `showInvisibles` state from the `RootView` now that it's managed via `config`.
2012-12-12 13:55:27 -08:00
Nathan Sobo
b3303bc21d
Add config.editor.showInvisibles
2012-12-12 13:50:58 -08:00
Nathan Sobo
2a901e78f9
Identify editor when subscribing to window resize
2012-12-12 13:28:29 -08:00
Kevin Sawicki
bb7b3b8a6d
Add close icon to tabs
2012-12-11 16:57:45 -08:00
Corey Johnson & Nathan Sobo
4e9dc5fe71
Merge branch 'master' of https://github.com/github/atom
2012-12-11 16:51:35 -08:00
Corey Johnson & Nathan Sobo
7ead4d7390
Inactive tabs change their title when their file is renamed
...
We were turning off all subscriptions on an edit session from editor when it became inactive. Now we only turn off subscriptions made by the editor, leaving the tab's subscription intact.
2012-12-11 16:16:18 -08:00