Commit Graph
39175 Commits
Author SHA1 Message Date
Antonio Scandurra fa22e6b5f1 Merge pull request #39 from zed-industries/move-lines-folds
Synchronize `FoldMap` with buffer's contents lazily
2021-05-05 10:47:52 +02:00
Antonio Scandurra b8f66d759c Add test for moving lines up and down 2021-05-05 10:23:35 +02:00
Antonio Scandurra 96af0ed032 Merge branch 'master' into move-lines-folds 2021-05-05 09:58:34 +02:00
Max Brunsfeld 02afdfa9de Start work on creating and saving new files 2021-05-04 19:04:11 -07:00
Nathan Sobo 58b77e8b05 Merge pull request #30 from zed-industries/bundle
WIP: Create and upload application bundle in CI
2021-05-04 18:02:47 -06:00
Nathan Sobo 27c4b384cf Add ~/.rustup to the list of cached paths
And restore skipping of rust install if it hasn't changed.
2021-05-04 17:46:44 -06:00
Nathan Sobo b54037873e Try to disable caching 2021-05-04 17:38:05 -06:00
Nathan Sobo 7493979594 Try to fix target not being installed 2021-05-04 17:34:03 -06:00
Nathan Sobo 0f0ec0f275 Ad hoc code-sign the app bundle
Apparently this is necessary to run on the M1 macs
2021-05-04 17:29:39 -06:00
Nathan Sobo f01724b782 Create the bundle as a "fat binary" supporting the M1 2021-05-04 17:18:25 -06:00
Nathan Sobo a7821e1a0f Fix artifact name 2021-05-04 17:18:25 -06:00
Nathan Sobo ffde8dac43 Create and upload a DMG 2021-05-04 17:18:25 -06:00
Nathan Sobo 1cf31de9ee Attempt to upload app bundle as an artifact 2021-05-04 17:18:25 -06:00
Nathan Sobo ea5abbbcb8 Add script/bundle, which creates a macOS app bundle 2021-05-04 17:18:25 -06:00
Max Brunsfeld 10781c2cb7 Merge pull request #34 from zed-industries/buffer-per-inode
Only open one buffer per inode, but associate each buffer view with its own path
2021-05-04 14:37:27 -07:00
Max BrunsfeldandNathan Sobo e5d86fbbc9 Replace Workspace::open_path with simpler ::add_worktree method
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-05-04 14:18:16 -07:00
Max Brunsfeld 0c5ab2c4f5 Fix hangs in workspace tests 2021-05-04 12:41:00 -07:00
Antonio ScandurraandNathan Sobo ecfc793cc7 Synchronize FoldMap with buffer's contents lazily
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-05-04 18:27:56 +02:00
Antonio Scandurra 566a5e9f9d Use correct bias when calculating next_row_end 2021-05-04 16:13:01 +02:00
Antonio Scandurra fdf3a5c656 Add FoldMap::chars_at to randomized test 2021-05-04 14:13:28 +02:00
Antonio Scandurra e4afd19ee8 Test FoldMap to_display_offset, to_display_point, to_buffer_point 2021-05-04 12:16:35 +02:00
Antonio Scandurra 77ea97b47f Rework randomized test, ensuring order of folds is maintained correctly 2021-05-04 11:27:32 +02:00
Antonio Scandurra 78d837a56f Fix folds_in_range and add a test for it
With the current ordering, a linear scan is required in order to
determine which folds intersect the given range.
2021-05-04 11:24:33 +02:00
Nathan Sobo 81dbf8d265 Merge branch 'master' into buffer-per-inode 2021-05-03 20:47:28 -06:00
Nathan Sobo 1c2b957f7f Rename WorkspaceView to Workspace and reorganize module 2021-05-03 20:42:32 -06:00
Nathan Sobo 449ad6d3da Inline methods previously moved from Workspace 2021-05-03 20:36:12 -06:00
Nathan SoboandMax Brunsfeld af1c03fcdc Combine Workspace and WorkspaceView
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-05-03 20:15:55 -06:00
Nathan Sobo 9a6a66cdb9 Merge pull request #37 from zed-industries/move-line-up-down
Move line up and down
2021-05-03 18:25:42 -06:00
Nathan SoboandMax Brunsfeld 47be565ce5 Clean up
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-05-03 16:33:13 -06:00
Nathan SoboandMax Brunsfeld 1dd77fbff0 Make Workspace::open_entry2, which returns a dyn ItemViewHandle
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-05-03 16:25:18 -06:00
Nathan SoboandMax Brunsfeld e4a73d28e0 Fix cases where new folds that end where existing folds start
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-05-03 14:30:50 -06:00
Max Brunsfeld 5f19e726cf Add failing unit test for adjacent folds 2021-05-03 12:39:47 -07:00
Antonio Scandurra 71245a6440 WIP 2021-05-03 18:58:39 +02:00
Antonio Scandurra 394c3367ae Account for folds when moving selections up/down 2021-05-03 16:13:09 +02:00
Antonio Scandurra 91fc2da367 Use a more direct manipulation for moving lines up or down 2021-05-03 15:10:20 +02:00
Antonio Scandurra 3582796317 Push selections down correctly when moving a line down 2021-05-03 14:49:35 +02:00
Antonio Scandurra c2564bb4e4 Implement move_line_up and move_line_down
This does not restore folds yet.
2021-05-03 11:37:36 +02:00
Antonio Scandurra 7b6e5675dd Merge pull request #35 from zed-industries/move-to-prev-next-word-boundary
Implement word boundary movement/selection/deletion
2021-04-30 16:34:06 +02:00
Antonio Scandurra 9438399cbe Merge pull request #36 from zed-industries/bind-backspace
Bind `ctrl-h` to `backspace`
2021-04-30 11:36:50 +02:00
Antonio Scandurra 0119e709c2 Bind ctrl-h to backspace 2021-04-30 10:45:58 +02:00
Antonio Scandurra 2745324d31 Add test for word boundary movement/selection/deletion 2021-04-30 10:14:20 +02:00
Antonio Scandurra e5698c73ff Implement delete_to_{previous,next}_word_boundary 2021-04-30 10:14:20 +02:00
Antonio Scandurra 7e4532d36e Implement select_to_{previous,next}_word_boundary 2021-04-30 10:14:20 +02:00
Antonio ScandurraandMax Brunsfeld 19ee9e81ea Implement move_to_previous_word_boundary
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-04-30 10:14:20 +02:00
Antonio ScandurraandNathan Sobo 6dd51fe6b8 Implement move_to_next_word_boundary for buffer
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-30 10:14:20 +02:00
Antonio Scandurra 9120280d6e Merge pull request #32 from zed-industries/editor-keybindings
Initial editor keybindings
2021-04-30 09:31:32 +02:00
Max Brunsfeld d5d61ee604 Move file handle from buffer to buffer view 2021-04-29 17:47:06 -07:00
Max Brunsfeld a952dfe46b Merge pull request #31 from zed-industries/open-files
Allow opening files from the CLI and from the File > Open menu
2021-04-29 15:14:37 -07:00
Max Brunsfeld 898d1ccb17 Avoid cancelling ::open_entry task in FileFinder 2021-04-29 15:03:46 -07:00
Max BrunsfeldandNathan Sobo 0b11e9bde1 Return a future from WorkspaceView::open_paths
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-29 14:55:28 -07:00