Antonio Scandurra
c519aaa352
Add FoldMap::folds_in_range to randomized test and fix issues it found
2021-05-06 18:49:41 +02:00
Antonio Scandurra
5eae0c1109
Remove add_summary_with_ctx and always require a ctx in add_summary
2021-05-06 16:57:47 +02:00
Antonio Scandurra
2e2e170d78
Implement FoldMap's folds using a SumTree
...
This required passing a `Context` object to `Summary` and introducing a
new `SeekDimension` trait that allows comparing two dimensions and pass
an additional context object.
2021-05-06 16:20:23 +02:00
Antonio Scandurra
4594edb609
Add a Summary trait in preparation of passing a context struct
2021-05-06 09:32:14 +02:00
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
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 Brunsfeld and Nathan 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 Scandurra and Nathan 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 Sobo and Max 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 Sobo and Max Brunsfeld
47be565ce5
Clean up
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-05-03 16:33:13 -06:00
Nathan Sobo and Max 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 Sobo and Max 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 Scandurra and Max 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 Scandurra and Nathan 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