Commit graph

  • 53013b3ab7 Merge remote-tracking branch 'origin/master' into close-tabs Nathan Sobo 2021-04-28 13:15:00 -06:00
  • 1cb3fdbf7d Synthesize a mouse moved event in the previous position after painting a scene Nathan Sobo 2021-04-28 13:02:39 -06:00
  • b5463dcd1e Close tabs when X is clicked Nathan Sobo 2021-04-28 10:00:45 -06:00
  • bc1f758b66 Lighten tab close button when clicked Nathan Sobo 2021-04-28 09:39:13 -06:00
  • 8c51bb253d Render sprited icons at 2x resolution since we don't align to pixel grid Nathan Sobo 2021-04-28 09:32:38 -06:00
  • 8633bae468 Add a test-only method for flushing worktree's event stream Max Brunsfeld 2021-04-27 21:55:30 -07:00
  • 1eba61c08d Flush the fs event stream on construction Max Brunsfeld 2021-04-27 21:43:41 -07:00
  • 69cc2b0483 WIP Nathan Sobo 2021-04-27 18:35:24 -06:00
  • c1d35b099b Ignore 'historical' events from fs event stream Max Brunsfeld 2021-04-27 16:49:56 -07:00
  • 907b537a0b Fix race when fs events occur right after constructing worktree Max Brunsfeld 2021-04-27 16:38:31 -07:00
  • 58e336354e Align close tab icon cleanly with unsaved indicator Nathan Sobo 2021-04-27 16:51:23 -06:00
  • 110dcc48f9
    Merge pull request #26 from zed-industries/stable-file-finder-results Max Brunsfeld 2021-04-27 15:37:24 -07:00
  • eec8a3b555 Simplify file finder update_matches logic Max Brunsfeld 2021-04-27 14:58:54 -07:00
  • 75b8f7425d Avoid redundant sort_unstable_by call on merged fuzzy matches Max Brunsfeld 2021-04-27 14:34:29 -07:00
  • a59b75c839 Keep results stable when using file-finder while scanning files Max Brunsfeld 2021-04-27 14:02:55 -07:00
  • 6882fdca38 Avoid crash when running pane:activate_prev_item w/ no tabs open Max Brunsfeld 2021-04-27 11:01:32 -07:00
  • eca9f495a1 Render a close tab button on tab hover Nathan Sobo 2021-04-27 11:58:59 -06:00
  • bb95d58c79 Relay hover events to tabs Nathan Sobo 2021-04-27 11:37:14 -06:00
  • 3d1e44ca29 Capture hover events on tabs Nathan Sobo 2021-04-27 09:23:44 -06:00
  • 2a1496be2e
    Merge pull request #24 from zed-industries/fix-autoscroll-on-paste Antonio Scandurra 2021-04-27 11:59:37 +02:00
  • b52a3b5a24 Autoscroll on paste Antonio Scandurra 2021-04-27 11:52:46 +02:00
  • fc4b7e2a2a Introduce MouseEventHandler Nathan Sobo 2021-04-26 21:52:18 -06:00
  • a47b0b4ca6 Add a mechanism for storing ephemeral values Nathan Sobo 2021-04-26 21:24:23 -06:00
  • d31f2defa5
    Merge pull request #15 from zed-industries/rescan Nathan Sobo 2021-04-26 20:35:01 -06:00
  • f29f1b073d Preserve selected file finder path when Worktree changes Nathan Sobo 2021-04-26 20:23:56 -06:00
  • 55fcc586bc Cancel outstanding fuzzy-matching calls before starting a new one Max Brunsfeld 2021-04-26 16:14:43 -07:00
  • 09f5c7c23e Fix scrollwheel events in uniformlist Max Brunsfeld 2021-04-26 15:53:23 -07:00
  • 733dc15c32 Ignore .git directories Max Brunsfeld 2021-04-26 15:46:06 -07:00
  • e7c594262f Fix handling of uppercase characters in fuzzy finding Max Brunsfeld 2021-04-26 15:04:26 -07:00
  • 870925e2ac Rerender tabs when buffers' file handles change Nathan Sobo 2021-04-26 14:29:33 -06:00
  • 9753e67410 Update filehandle paths when renames occur Max Brunsfeld 2021-04-26 12:56:13 -07:00
  • 6535304da8 WIP: Start on updating file handles Antonio Scandurra 2021-04-26 20:10:15 +02:00
  • 111d98d6c1 Keep ignore status up-to-date as events are processed Antonio Scandurra 2021-04-26 15:26:16 +02:00
  • f770a70929 WIP: Maintain an IgnoreStack while scanning Nathan Sobo 2021-04-24 23:59:03 -06:00
  • 9cd1d5e607 Avoid cloning entry in Snapshot::entry_for_path Antonio Scandurra 2021-04-24 10:14:17 +02:00
  • 6a7308b87a Avoid storing redundant copies of file paths Max Brunsfeld 2021-04-23 15:58:12 -07:00
  • 054203d21c Fix fuzzy matching after removing root dirname from stored paths Max Brunsfeld 2021-04-23 15:22:47 -07:00
  • dced9469f5 WIP Nathan Sobo 2021-04-23 12:47:23 -06:00
  • c9d7249305 WIP Nathan Sobo 2021-04-23 11:37:23 -06:00
  • ec2e1c3045 Rename PathSearch::Sibling to PathSearch::Successor Antonio Scandurra 2021-04-23 17:13:31 +02:00
  • 8f2fc079fd Restructure Worktree to index entries by path Antonio Scandurra 2021-04-23 11:22:25 +02:00
  • ae5f02d2e9 Use getmntinfo(3) to list mounted volumes Max Brunsfeld 2021-04-22 15:40:39 -07:00
  • b37b047400 Start work on excluding separate mount dirs Max Brunsfeld 2021-04-22 12:10:46 -07:00
  • 3e44a0adae Avoid redundant clearing of descendants when scanning dirs Max Brunsfeld 2021-04-22 10:30:47 -07:00
  • b2e7a2c42a Log when there's an error while scanning a directory Antonio Scandurra 2021-04-22 19:15:37 +02:00
  • 99f51c0d85 Simulate .gitignores in the randomized test Antonio Scandurra 2021-04-22 18:57:46 +02:00
  • 928ce0eec8 Clear descendants of existing children when scanning a directory Antonio Scandurra 2021-04-22 18:42:11 +02:00
  • 9723e46af4 Replace linear scan of entries with a custom FileIter Antonio Scandurra 2021-04-22 17:29:36 +02:00
  • c429a937be Remove is_ignored from PathEntry and lean more on the tree instead Antonio Scandurra 2021-04-22 16:49:11 +02:00
  • f3b663e375 Ignore .git folder Antonio Scandurra 2021-04-22 16:48:13 +02:00
  • 19a2856780 Let ignore edits batch naturally without imposing a max batch len Antonio Scandurra 2021-04-22 16:47:41 +02:00
  • af3bc236b7 Recompute ignore status when .gitignore changes or for new entries Antonio Scandurra 2021-04-22 15:14:23 +02:00
  • 499e55e950 Start work on handling changes to gitignore files Max Brunsfeld 2021-04-21 18:11:52 -07:00
  • 427930cd8a wip - gitignore handling on rescan Max Brunsfeld 2021-04-21 12:30:30 -07:00
  • 8e0ca2056e Store paths as strings on PathMatch structs Max Brunsfeld 2021-04-21 12:05:34 -07:00
  • 955268e2a6 Check worktree invariants in randomized test Max Brunsfeld 2021-04-21 11:46:49 -07:00
  • ce28dc39ff Fix missing insert in populate_dir Max Brunsfeld 2021-04-21 11:39:50 -07:00
  • a898acf6b5 WIP Nathan Sobo 2021-04-21 12:29:16 -06:00
  • 56b48c8229 WIP: Establish new invariant-maintaining API for mutating worktree snapshots Nathan Sobo 2021-04-21 12:08:09 -06:00
  • 031d5ac7d4 WIP Antonio Scandurra 2021-04-21 16:58:17 +02:00
  • fd8125b22c Re-enable file finder test and bind menu:select-{next-prev} Antonio Scandurra 2021-04-21 10:07:32 +02:00
  • 9518cef0a2
    Merge pull request #23 from zed-industries/fix-mac-mini-failures Max Brunsfeld 2021-04-20 16:01:47 -07:00
  • b20f5e9139 Fully halt background scanner threads when dropping Worktree Max Brunsfeld 2021-04-20 15:55:29 -07:00
  • 9fd8acdce7 Use our own scoped_pool implementation Max Brunsfeld 2021-04-20 13:51:24 -07:00
  • 265ad90034 Stop processing events if root path is deleted Max Brunsfeld 2021-04-20 10:39:14 -07:00
  • 85f8537017 Worktree: silence log message when dir is overwritten by file Max Brunsfeld 2021-04-20 10:12:48 -07:00
  • 5cbbf620ed WIP Nathan Sobo 2021-04-20 10:59:12 -06:00
  • 9899614f31 Remove task_done condvar which supported finish_pending_tasks Nathan Sobo 2021-04-20 10:45:42 -06:00
  • 1a8e909a38 Ensure we remove broadcast channels after all conditions resolve Nathan Sobo 2021-04-20 10:43:13 -06:00
  • dcc2bdfd4c Panic when awaiting conditions on dropped entities Nathan Sobo 2021-04-20 10:36:54 -06:00
  • ddd746b9f9 Use env_logger instead of simplelog in tests Antonio Scandurra 2021-04-20 17:34:14 +02:00
  • 37444acc9c Time out condition after 200ms and add basic unit tests for it Antonio Scandurra 2021-04-20 17:21:29 +02:00
  • cd7dccd30c Replace remaining usages of finish_pending_tasks with condition Antonio Scandurra 2021-04-20 12:28:30 +02:00
  • ebb7124405 Use scan_complete and the new ModelHandle::condition test method Antonio Scandurra 2021-04-20 11:48:12 +02:00
  • d11d5483b6 Rework Worktree::scan_complete to use a watch Antonio Scandurra 2021-04-20 11:24:46 +02:00
  • a4c1fe5a0b WIP: Add a condition method to model and view handles for use in tests Nathan Sobo 2021-04-19 22:01:54 -06:00
  • 69a43afcbd Add a method for waiting until a worktree's current scan is complete Max Brunsfeld 2021-04-19 17:45:01 -07:00
  • 8fb79a3094 Enable split debuginfo for faster compiles Max Brunsfeld 2021-04-19 15:00:10 -07:00
  • f27b01fcd5 Get all worktree tests passing Max Brunsfeld 2021-04-19 14:11:55 -07:00
  • f06164ade9 💄 process_events Max Brunsfeld 2021-04-19 13:19:34 -07:00
  • e44a59dc7d Worktree: handle files being renamed to overwrite dirs Max Brunsfeld 2021-04-19 13:07:32 -07:00
  • 47f0b94d0c Add an example executable for fsevents Max Brunsfeld 2021-04-19 13:05:34 -07:00
  • 0fd3f55730 💄 Reduce nesting in Snapshot::remove_path Max Brunsfeld 2021-04-19 12:15:24 -07:00
  • 3e93fb9459 Get worktree randomized test passing Max Brunsfeld 2021-04-19 11:59:22 -07:00
  • 122926dcde WIP: Associate entry names with directory children Antonio Scandurra 2021-04-19 20:16:54 +02:00
  • f8f6a85ab0 WIP Antonio Scandurra 2021-04-19 19:41:37 +02:00
  • 06858c023c Enable logging automatically when passing a SEED env variable Antonio Scandurra 2021-04-19 13:01:13 +02:00
  • 2c72f9c14f Don't change parent entries for moves within the same directory Antonio Scandurra 2021-04-19 13:00:13 +02:00
  • f29c42904e Recompute the PathEntry for each file under a re-parented subtree Antonio Scandurra 2021-04-19 12:53:02 +02:00
  • ca62d01b53 Start on a randomized test for Worktree Antonio Scandurra 2021-04-19 12:01:33 +02:00
  • 17f2df3e71 Update entries' filenames when handling move events Max Brunsfeld 2021-04-16 22:17:52 -07:00
  • 5b05e57441 Start filling out new structure for processing fs events Max Brunsfeld 2021-04-16 15:22:35 -07:00
  • 6a549727ce WIP: Lay down a skeleton for another attempt at rescan Nathan Sobo 2021-04-16 12:53:07 -06:00
  • e19a56c366 WIP Antonio Scandurra 2021-04-16 19:54:46 +02:00
  • ce5fbbb46b WIP Antonio Scandurra 2021-04-16 17:22:30 +02:00
  • b68b0fce56 Add simple unit test for SumTree::{edit,get} Antonio Scandurra 2021-04-16 16:26:40 +02:00
  • 457d945376 Avoid unnecessary cloning of items when calling SumTree::edit Antonio Scandurra 2021-04-16 16:16:46 +02:00
  • 09c4d65194 💄 Antonio Scandurra 2021-04-16 16:13:28 +02:00
  • fbd5fbd703 Parallelize scanning of changed directories Antonio Scandurra 2021-04-16 16:11:55 +02:00
  • fd12117288 Start on rescanning Worktree Antonio Scandurra 2021-04-16 15:25:43 +02:00