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
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
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
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
Kevin Sawicki
2a2a391d13
Extend highlight span to be entire width of tree
...
Closes #219
2013-03-29 22:20:26 -04:00
probablycorey
d3920cdc05
Click and drag on the gutter selects lines correctly
...
Closes #352
2013-03-29 17:58:27 -07:00
probablycorey
05336dc38c
Fix atom.version spec
2013-03-29 15:24:27 -07:00
probablycorey
cf07eef3ae
Only change text color when select list item matches :hover
...
Closes #303
2013-03-29 15:09:53 -07:00
probablycorey
00c1fdce38
Change theme extension to .less
2013-03-29 15:02:45 -07:00
probablycorey
4b146f3459
Remove css extensions from themes package.cson stylesheet list
2013-03-29 15:02:44 -07:00
probablycorey
a1e1bee334
Allow theme's package.cson to leave off stylesheet extension
2013-03-29 15:02:44 -07:00
probablycorey
142d18bb7c
Add current commit sha to the version
2013-03-29 14:13:46 -07:00
probablycorey
1c5b72e04d
Add version to the Atom Helper plist
...
Closes #368
2013-03-29 14:13:33 -07:00
Corey Johnson & Nathan Sobo
7d9e64a52d
Mock getMaxTokensPerLine instead of overwriting member var
2013-03-29 11:22:01 -07:00
Corey Johnson & Nathan Sobo
a9175665fa
💄
2013-03-29 11:22:01 -07:00
Kevin Sawicki
3773061cb5
Remove unneeded empty array fallback
2013-03-29 14:15:20 -04:00
Kevin Sawicki
8e9a7355bc
Return an empty array when the fs-utils.list() path isn't a directory
...
This makes the common case of iterating over an array of paths and
listing them cleaner since the return value doesn't need to be checked
before it is iterated over.
2013-03-29 13:44:03 -04:00
Garen Torikian
0a6963a965
Bump node-git to 0.11.0
2013-03-29 09:36:51 -07:00
Kevin Sawicki
ff471ebf5b
💄
2013-03-28 22:08:53 -04:00