Commit Graph

14093 Commits

Author SHA1 Message Date
Garen Torikian
bd1b407a4b Add that rake task 2013-04-02 17:30:11 -07:00
Kevin Sawicki
326910eeed Don't output curl progress bar during ci build 2013-04-02 17:28:26 -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
Garen Torikian
83c6975d34 Add a rake task, of course 2013-04-02 16:47:30 -07:00
Garen Torikian
955e1571a2 Bump nak version to add @kevinsawicki changes 2013-04-02 16:40:32 -07:00
Garen Torikian
79ac5d606d Bump nak again 2013-04-02 15:39:40 -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
Garen Torikian
936d4f6d53 Merge branch 'nak-powered-search' of github.com:github/atom into nak-powered-search 2013-04-02 14:57:40 -07:00
Garen Torikian
f33a8538e3 Bump nak version to allow for multiple matches 2013-04-02 14:57:20 -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
f531d36060 Condense / cleanup TextBuffer serialization specs
Typically it's fine to test serialization behaviorally. If we can
deserialize the serialized state correctly, then we're generally
happy. We don't need explicit tests on the serialized state… but I
added a couple assertions to ensure we don't write text when we don't
need to. It would have been more correct to just modify the saved
file and verify we load the new state, but it's not worth the hassle.
2013-04-02 15:45:16 -06:00
Nathan Sobo
9efc326ff3 Remove spec that can be covered in text-buffer specs 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
Nathan Sobo
78211acafd Use project.bufferForPath to build buffers in specs
This reflects the way buffers should always be created in practice. It
registers buffers on project, which will be important when testing
that we always get the same buffer when deserializing a buffer for a
path we've already opened.
2013-04-02 15:45:16 -06:00
Nathan Sobo
40975f15d3 💄 Follow whitespace conventions for specs 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
9a8fd062c4 Throw error instead of string 2013-04-02 14:40:55 -07:00
Kevin Sawicki
07b40265fb Log error when no stack exists 2013-04-02 14:40:30 -07: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
7b0ce258d1 Merge branch 'nak-powered-search' of github.com:github/atom into nak-powered-search 2013-04-02 14:12:47 -07:00
Garen Torikian
7ab79d05f0 Merge master 2013-04-02 14:12:20 -07:00
Kevin Sawicki
1ee5eb32b4 Restore scan spec asserts now that leading space is gone 2013-04-02 14:10:30 -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
2ae5cacc6f Un-f project spec 2013-04-02 13:25:21 -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
Kevin Sawicki
e3236675c9 Upgrade to coffee 1.6.2 2013-04-02 08:28:30 -07:00
Kevin Sawicki
4971a73c01 Merge branch 'master' into tweak-coffee 2013-04-02 08:27:35 -07:00