Commit Graph

14143 Commits

Author SHA1 Message Date
Mutwin Kraus
460c4a0b09 Selection support for bracket matcher 2013-04-03 19:03:33 +02:00
Mutwin Kraus
abce3d7f9b Add autocomplete:next/previous events 2013-04-03 18:57:01 +02:00
Nathan Sobo
11f140ac5a Don't save/load window state to/from disk when pathToOpen is undefined
This fixes a bug where `meta-n` was not opening a new buffer in the
opened window if window state was previously saved for an `undefined`
path.
2013-04-03 10:27:57 -06:00
Nathan Sobo
ec93dc38b7 Version serialized state of EditSession
Since buffers are now serialized directly, previous versions of the
EditSession state which used the buffer's path as the `buffer` key
are no longer valid.
2013-04-03 10:21:56 -06:00
Kevin Sawicki
aa8fb3eb4b Add failing symlink spec 2013-04-03 08:33:16 -07:00
Kevin Sawicki
917fbaadad Use splat instead of apply 2013-04-03 08:27:36 -07:00
Kevin Sawicki
2dc1817807 Push new paths onto existing array 2013-04-03 08:24:31 -07:00
Kevin Sawicki
320d177038 Use consistent quotes 2013-04-03 08:19:04 -07:00
Kevin Sawicki
acf538cf4b Remove unused aborted ivar 2013-04-03 08:18:00 -07: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
Kevin Sawicki
ba028f6358 Support ~/.atom/user.less 2013-04-02 17:37:21 -07:00
probablycorey
f4264f00f8 Modernize markdown preview spec 2013-04-02 17:09:08 -07:00
Corey Johnson
606f446c27 Log warning when trying to render non-markdown file 2013-04-02 17:00:42 -07:00
Corey Johnson
2944b64795 Show GitHub API error message when markdown preview fails 2013-04-02 17:00:41 -07:00
Corey Johnson
55d4625091 Only display markdown preview on save if preview already exists 2013-04-02 17:00:41 -07:00
Corey Johnson
5f2c4dad95 Only show markdown preview if the edit session's grammar is GFM 2013-04-02 16:59:44 -07:00
Corey Johnson
e03f2fd738 Markdown preview listens to core:save on activate 2013-04-02 16:59:44 -07:00
Mutwin Kraus
5c93fd4574 Update markdown preview when markdown buffer is saved 2013-04-02 16:59:44 -07:00
Kevin Sawicki
22af597c42 💄 2013-04-02 16:50:53 -07:00
Kevin Sawicki
34ca5ce949 nak no longer includes a space after the colon 2013-04-02 16:49:33 -07:00
Mutwin Kraus
9a6b5986fe Add editor.selectLine 2013-04-02 15:24:12 -07:00
Mutwin Kraus
a9c74762cc Add focusPreviousPane to pane container 2013-04-02 15:24:12 -07:00
Nathan Sobo
1bbc9f61e9 Remove unsaved buffer prompt on reload now that we handle it correctly 2013-04-02 15:45:17 -06:00
Nathan Sobo
dab8c5b53b Assign cachedDiskContents when unsaved buffer is deserialized
This allows the buffer to return to an "unmodified" state if the
unsaved changes are reversed.
2013-04-02 15:45:16 -06:00
Nathan Sobo
3150785db2 Ensure we never deserialize two instances of the same buffer
We might have two edit sessions pointing to the same buffer, for
example if we have a split pane… So when we deserialize a buffer, we
always need to check that we don't already have an instance of that
buffer on the project. If we do, then we've already deserialized it
once so we don't need to worry about the saved text.

We still have a problem when deserializing previously unsaved buffers,
because we can't use the path to identify them.
2013-04-02 15:45:16 -06:00
Nathan Sobo
e8216a8313 Don't store @project reference inside TextBuffer. Use the global. 2013-04-02 15:45:16 -06:00
Mutwin Kraus
cc87595e4e Serialize TextBuffer inside EditSession serialize 2013-04-02 15:45:16 -06:00
Mutwin Kraus
693d8258ad Preserve buffer contents for unsaved files when reloading 2013-04-02 15:45:16 -06:00
Kevin Sawicki
699212a13e Always pull line text from buffer
This accounts for positional changes that may occur if the marker
the operation is tracking moves.
2013-04-02 14:24:36 -07:00
Garen Torikian
7ab79d05f0 Merge master 2013-04-02 14:12:20 -07:00
Garen Torikian
206b58a86c Merge branch 'nak-powered-search' of github.com:github/atom into nak-powered-search 2013-04-02 14:05:00 -07:00
Garen Torikian
7caddc6c10 Put the Expand/Collapse buttons back 2013-04-02 14:04:38 -07:00
Garen Torikian
0b6c817f0a First drop of comments 2013-04-02 14:00:56 -07:00
Kevin Sawicki
9b19b4512f Use getBufferRange() when previewing
This is for the case where the marker may move between
construction and previewing.
2013-04-02 13:53:49 -07:00
Kevin Sawicki
d2f2011ea3 Skip leading space after colon in nak output
This was causing a spec to fail since the line text now had a leading
space for all results since the separator before the line text is now
': ' instead of just ':'.
2013-04-02 13:50:48 -07:00
Kevin Sawicki
d64c3e773d 💄 2013-04-02 13:30:39 -07:00
Kevin Sawicki
3cfbbc5d94 Attach to DOM in specs that alter the mini editor
This is now required since populateList() is only
calls when the timeout is fired and the select list
is still on the DOM.
2013-04-02 13:22:46 -07:00
Kevin Sawicki
f3e1a72882 Only populate list from timeout when still on DOM 2013-04-02 13:14:56 -07:00
Kevin Sawicki
0e1adddd2f Remove double de-duplication of paths 2013-04-02 09:32:08 -07:00
Kevin Sawicki
995ae4c9e2 Merge branch 'absolute-paths-in-fuzzy-finder' 2013-04-02 09:28:53 -07:00
Kevin Sawicki
4ce4529022 Use absolute paths in specs 2013-04-02 09:17:53 -07:00
Kevin Sawicki
cb1d9af06e Only add folder span if project-relative path isn't empty 2013-04-02 09:12:39 -07:00
Kevin Sawicki
2e0a6af8ca Add back serializiation of last opened time 2013-04-02 09:04:42 -07:00
probablycorey
bd3eb02b1b Remove sortable list class
Because sortable list was only being used by tab bar view, I got rid
of the class hierarchy.
2013-04-01 17:10:48 -07:00
probablycorey
7e2ea8aff1 Allow tabs to be moved to the beginning and end of the tab bar
Closes #409 (409, puts grease on the run! http://www.dailymotion.com/video/xxsbbb_formula-409-1990-puts-grease-on-the-run-commercial-2_tv#.UVocOZbF30Y)
2013-04-01 16:46:57 -07:00
probablycorey
ecb159738f Rename singleTrailingNewline to ensureSingleTrailingNewline 2013-04-01 10:44:34 -07:00
probablycorey
66044175cc Add spec for when singleTrailingNewline is false 2013-04-01 10:44:34 -07:00
probablycorey
326bfe1188 default singleTrailingNewline to true 2013-04-01 10:44:34 -07:00
probablycorey
875474d496 💄 2013-04-01 10:44:34 -07:00