Commit Graph

7018 Commits

Author SHA1 Message Date
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
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
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
probablycorey
32c950dee8 Rename strip-trailing-whitespace package to whitespace
Because it does more than strip trailing whitespace
2013-04-01 10:44:34 -07:00
probablycorey
6052a90ce9 Remove auto-indent gfm spec 2013-04-01 09:58:31 -07:00
probablycorey
aea27ff779 Remove auto-indentation for markdown files
Closes #395

@kevinsawicki I couldn't figure out a reason for this
indent pattern? I looked in the TextMate package and I
didn't see it there either.
2013-04-01 09:14:58 -07:00
Garen Torikian
a4d8ed6ce6 Bump nak 2013-03-31 17:07:30 -07:00
Garen Torikian
ae544e0c7e Bump nak 2013-03-31 01:20:56 -07:00
Garen Torikian
da2cea4a24 Hide header on subsequent search 2013-03-31 01:20:50 -07:00
Garen Torikian
6f982c7c4c Fix spec 2013-03-31 01:11:19 -07:00
Garen Torikian
4cd181022d Restore old UI 2013-03-31 01:02:53 -07:00
Garen Torikian
f48355ce10 Merge branch 'nak-nostream' into nak-powered-search 2013-03-31 00:45:14 -07:00
Garen Torikian
5e5437502f reset 2013-03-31 00:45:05 -07:00
Garen Torikian
ea65421120 Remove streaming changes 2013-03-31 00:30:39 -07:00
Garen Torikian
7f8e2aba1b Stash changes 2013-03-31 00:22:27 -07:00
Garen Torikian
209eceee6a stash 2013-03-30 18:36:50 -07:00
Garen Torikian
b8d0544517 Improve UX
Properly compress all results to one heading
Merge Expand/Collapse Button into one
2013-03-30 11:20:27 -07:00
Kevin Sawicki
19162db3ce Clip TextBuffer.characterIndexForPosition() position 2013-03-30 00:47:19 -04:00
Kevin Sawicki
da090b57d4 Use line ending length for mapping positions/characters
Previously the line ending length was hard-coded to one which
would cause TextBuffer.scanInRange() to return incorrect results
since one character per line wasn't being accounted for.

Closes #428
2013-03-30 00:30:54 -04:00
Kevin Sawicki
dc3b26c934 Add missing 't' in spec file name 2013-03-29 23:55:31 -04:00
Kevin Sawicki
9708f436c5 Remove unneeded empty string span values 2013-03-29 22:21:50 -04:00