Ash Wilson
817c98619c
Always emit did-change-paths
2017-09-20 11:43:35 -04:00
Ash Wilson
181b5b8828
Pass exact: option from setPaths() to addPath()
2017-09-20 10:51:30 -04:00
Ash Wilson
74268cba03
Reset retained IDs and paths on .reset()
2017-09-20 10:51:30 -04:00
Ash Wilson
1a53ad5722
Deserialize TextBuffers that have never been saved to disk
2017-09-20 10:51:30 -04:00
Ash Wilson
0782f0f4d0
"Retire" buffer IDs when the buffer can't be deserialized
2017-09-20 10:51:30 -04:00
Ash Wilson
f28192bfbc
Scope is hard
2017-09-20 10:51:29 -04:00
Ash Wilson
868d9393de
Deserialize the exact serialized project paths, never a parent dir
2017-09-20 10:51:29 -04:00
Ash Wilson
1734aa7787
Shuffle Project deserialization a little
2017-09-20 10:51:29 -04:00
Ash Wilson
c205a07bc4
Require project directories to exist on deserialization
2017-09-20 10:51:29 -04:00
Ash Wilson
3d51ed9766
Support {mustExist} option in setPaths
2017-09-20 10:51:29 -04:00
Ash Wilson
156cd02953
Optionally throw an error when attempting to open a non-existent dir
2017-09-20 10:51:29 -04:00
Ash Wilson
22336fcb4d
Documentation fix
...
It's `action`, not `type`.
2017-08-22 18:16:16 -04:00
Ash Wilson
d03e5d9d54
Update documentation references
2017-08-18 15:02:34 -04:00
Ash Wilson
e7fcb0d079
Adjust Project root directory watching to account for async watchers
2017-08-18 09:10:20 -04:00
Ash Wilson
f623b03157
Documentation touchups
2017-08-07 10:04:00 -04:00
Ash Wilson
2310053637
Reword Project.onDidChangeFiles documentation
2017-08-04 14:34:06 -04:00
Ash Wilson
662e2aaf06
Revisit a bunch of documentation.
2017-08-04 12:55:25 -04:00
Ash Wilson
c7a47a9e89
Use module.exports to not break Joanna horribly
2017-08-01 16:40:54 -04:00
Ash Wilson
f005fcdca1
Use directory.getPath() as the object key
2017-08-01 15:55:39 -04:00
Ash Wilson
1285a89a4b
Reset @watchersByPath on atom.project.setPaths
2017-08-01 15:55:28 -04:00
Ash Wilson
b3f327b0b3
Implement atom.project.onDidChangeFiles
2017-08-01 15:08:07 -04:00
Max Brunsfeld
8f106d2d44
Don't serialize undo/redo stacks when the user is idle
2017-06-07 11:21:39 -07:00
Max Brunsfeld
2c2d00a403
Don't create duplicate buffers if a path is opened twice concurrently
2017-05-23 07:27:56 -07:00
Max Brunsfeld
6c0b70f5f3
Start work on integrating new native TextBuffer version
2017-05-19 11:33:49 -07:00
Max Brunsfeld
817467f0a8
Merge branch 'master' into fb-mdt-docks
2017-03-30 11:16:21 -07:00
Michelle Tilley
d9b73fa645
Restore state when opening folders to applicable windows
...
Note: "clean window" is defined as 1) having an empty project and 2)
having no pane items or only empty unnamed buffers
When project is empty and there is saved state associated with the
opened/added folders...
* Open a file or folder (from command line or Open menu)
* If we have a clean window, restore project state in window
* If window is dirty, restore saved state in new window
2017-03-22 20:25:57 -07:00
Matthew Dapena-Tretter
62926e6b5b
Don't mutate list during iteration
...
I saw a situation where this was calling `destroy()` on `undefined`—
presumably because destroying one caused the list to be mutated
elsewhere and the indexes to shift.
2017-03-16 14:45:09 -07:00
Damien Guard
e04c31445d
Merge pull request #13754 from hron/normalize-disk-drive-letter
...
Normalize disk drive letter in path on Windows
2017-02-20 09:54:19 -08:00
Aleksei Gusev
fd9dbb6e87
Normalize disk drive letter in path on Windows
...
Currently atom creates two buffers for the same file if passed
paths use difference case for disk drive letter,
e.g. d:\file.txt and D:\file.txt
2017-02-18 11:32:44 +03:00
Max Brunsfeld
e07dcec54b
Avoid emitting path change events while destroying the Project
2017-02-09 13:45:27 -08:00
Damien Guard
83266c7486
Revert "Normalize disk drive letter in path on Windows"
2017-02-06 07:10:18 -08:00
Damien Guard
f3468d2955
Merge pull request #13725 from hron/normalize-disk-drive-letter
...
Normalize disk drive letter in path on Windows
2017-02-04 17:51:40 -08:00
Aleksei Gusev
ae76925926
Normalize disk drive letter in path on Windows
...
Currently atom creates two buffers for the same file if passed
paths use difference case for disk drive letter,
e.g. d:\file.txt and D:\file.txt
2017-02-01 18:32:08 +03:00
Ian Olsen
22a881323c
Move shouldDestroyBufferOnFileDelete callback to TextBuffer constructor
...
Also add setting the callback to buffers created via deserialization.
2017-01-20 13:52:49 -08:00
Ian Olsen
dcbd839059
Tell text-buffer to ask about destroying buffers for deleted files
2017-01-19 14:11:41 -08:00
Nathan Sobo
dea7cc23e3
Disable periodic serialization for buffers > 2MB
...
Writing so much data to IndexedDB is blocking the main thread for
perceptible amounts of time. A patch-based representation of the
modified state could allows us to pay only for what has changed, but is
too complex to justify implementing right now to support full crash
recovery for large files.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-01-10 15:55:36 -07:00
Max Brunsfeld
ed5c1c1e15
Don't convert paths to real paths when building text buffers
2017-01-04 14:57:53 -08:00
Indrek Ardel
55f3311c01
Remove unused variables
2016-09-26 20:52:13 +03:00
Max Brunsfeld
09b50f8740
Don't remove non-local directories on Project deserialization
2016-09-15 16:32:14 -07:00
Max Brunsfeld
fe480d8fa4
Do not add project directories that do not exist
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-09-14 13:48:17 -07:00
Andres Suarez
4ca6eaff34
Add atom.project.observeBuffers
...
This makes `onDidAddBuffer` symmetrical with other `onDidAddX` methods and their `observeXs`. It also documents `onDidAddBuffer` and adds tests for it.
Released under CC0.
2016-08-22 18:00:54 -07:00
Antonio Scandurra
95932081b2
Recreate repository if the same project is added after being removed
...
:pear:ed with @nathansobo.
2016-06-20 17:06:50 +02:00
Antonio Scandurra
049321a498
🐛 🔥 Remove double subscription to the same buffer
2016-05-23 18:37:47 +02:00
Antonio Scandurra
ef3ab03d28
Emit {will,did}SavePath on ipcMain before/after a buffer is saved
2016-05-23 18:37:26 +02:00
joshaber
9732874999
Don't log anymore.
2016-04-26 11:02:01 -04:00
joshaber
9fa669b293
Set the initial path after saving in Project.
2016-04-25 17:02:51 -04:00
Ryan Leckey
152e370a15
Default the options parameter to an empty object
2016-03-09 02:16:10 -08:00
Antonio Scandurra
12587073d2
🎨 isQuitting -> isUnloading
2016-03-07 10:52:16 +01:00
Antonio Scandurra
3d15b6e16b
Merge branch 'master' into as-serialize-history-without-snapshots
2016-03-07 10:33:52 +01:00
Antonio Scandurra
011fe380e9
Pass markerLayer: false to buffer.serialize when not quitting
2016-03-04 16:57:02 +01:00