Commit Graph
122 Commits
Author SHA1 Message Date
Kirill Bulatov 53277fe90e Omit history files with path that does not exist on disk anymore 2023-10-10 12:26:48 +03:00
Kirill Bulatov 762ef32154 Ignore history items' paths when matching search queries 2023-10-09 23:14:32 +03:00
Kirill Bulatov c99a9ddad6 Show path matches inside history items matching the query 2023-09-28 09:49:25 -07:00
Kirill Bulatov cb228f12c0 Show matching search history whenever possible 2023-09-28 09:34:20 -07:00
Kirill Bulatov a79c17a1f2 Add tests 2023-09-28 09:00:25 -07:00
Kirill Bulatov d5d3830152 Preserve matching history items and their order 2023-09-28 06:55:49 -07:00
Kirill Bulatov 005f33736d Cycle file finder entries on cmd-p 2023-09-28 06:55:49 -07:00
Conrad Irwin 6e501de8e2 Code review changes 2023-09-20 21:29:45 -06:00
Conrad Irwin 6c6b04ad71 vim: Add ZZ and ZQ
The major change here is a refactoring to allow controling the save
behaviour when closing items, which is pre-work needed for vim command
palette.

For zed-industries/community#1868
2023-09-08 16:25:20 -06:00
Nathan Sobo c843749cb0 Store an AnyWindowHandle in WindowContext 2023-08-08 11:08:37 -06:00
Nathan Sobo d1e01ba625 WIP 2023-08-06 12:45:31 -06:00
Nathan Sobo 40f28de681 Don't refcount window handles 2023-08-03 17:11:47 -06:00
Nathan Sobo aaa63b400b WIP 2023-08-03 17:03:39 -06:00
Nathan Sobo 680c0185e4 Get tests compiling returning WindowHandle<V: View> from add_window 2023-08-02 14:05:03 -06:00
Alex ViscreanuandMikayla Maki ef7952c045 feat(workspace): allow alternative actions to open files and symbols in split
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2023-07-14 21:49:15 +02:00
Piotr Osiewicz 406e160730 Split out Interactive<T> into Toggle<T> and Interactive<T> 2023-06-20 16:05:20 -07:00
Kirill Bulatov 2024d1b88e Shorten full paths with ~ 2023-05-27 01:21:38 +03:00
Kirill BulatovandMikayla 25ec8a8960 Add a test
co-authored-by: Mikayla <mikayla@zed.dev>
2023-05-27 01:12:22 +03:00
Kirill Bulatov 207dbd9ae3 Better display labels for external files 2023-05-26 18:18:32 +03:00
Kirill Bulatov a42722bf7f Track abs paths in history 2023-05-26 17:31:35 +03:00
Kirill Bulatov a096f124ec Properly display labels for currently opened external files 2023-05-26 15:44:44 +03:00
Kirill Bulatov 2b00082f06 Simplify selected index handling 2023-05-26 14:15:58 +03:00
Kirill Bulatov d8cc99311d Add absolute paths to historic elements 2023-05-26 14:03:44 +03:00
Julia a1b4c57588 Fix tests 2023-05-25 14:29:28 -04:00
Antonio Scandurra 8f56c80d68 Merge branch 'main' into panels 2023-05-22 14:10:17 +02:00
Kirill Bulatov f21bc87309 Properly handle WorktreeId 2023-05-19 12:37:36 +03:00
Kirill Bulatov dc2bb06214 Add a unit test 2023-05-18 21:53:42 +03:00
Kirill BulatovandMax 5d30032cd1 Show navigation history in the file finder modal
co-authored-by: Max <max@zed.dev>
2023-05-18 21:50:38 +03:00
Kirill Bulatov 912fdd9ac1 Maintain recently opened files history 2023-05-18 21:50:38 +03:00
Max Brunsfeld c261a01c7f Define theme/ui text style settings in theme crate 2023-05-17 14:44:59 -07:00
Max Brunsfeld ca02b558c8 Merge branch 'main' into setting-store 2023-05-17 09:55:24 -07:00
Max Brunsfeld 09f37a2fe9 Define workspace settings in workspace crate 2023-05-16 20:25:18 -07:00
Max Brunsfeld 56f2ff64ed Define language settings in the language crate 2023-05-16 17:29:53 -07:00
Kirill Bulatov a9d441ae5f Attempt to open rows and columns from CLI input 2023-05-16 21:07:26 +03:00
Kirill Bulatov 0708442690 Unify path:row:column parsing, use it in CLI 2023-05-16 21:07:26 +03:00
Kirill BulatovandMax d378829d11 Test caret selection in file finder
co-authored-by: Max <max@zed.dev>
2023-05-16 21:07:26 +03:00
Kirill Bulatov 25da16247b Simplify file-row-column parsing 2023-05-16 21:07:26 +03:00
Kirill BulatovandMikayla Maki 83f4c3dc46 Properly place the caret into the window of the file opened
co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-05-16 21:07:26 +03:00
Kirill Bulatov ad05aaebbc Move the caret to the opened file 2023-05-16 21:07:26 +03:00
Kirill Bulatov 097116477c Parse file find queries with extra data 2023-05-16 21:07:26 +03:00
Nathan SoboandMax Brunsfeld 52d4cc5349 Refine naming of element-related types and traits
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-04-21 13:06:37 -06:00
2bd56ab6f0 Rename Drawable::boxed to into_element and make containers generic
Multi-element are now generic over any drawable child, which can be converted
into an element.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-04-21 12:43:19 -06:00
Antonio Scandurra 1167dcc8b9 Finish converting all the pickers to the new API 2023-04-20 15:26:05 +02:00
Nathan Sobo ae5aa20a24 WIP: Make PickerDelegate a fully owned object instead of a view
This avoids issues with the parent view being on the stack when we want to
interact with the delegate from the picker. Still have several picker usages
to convert.
2023-04-19 22:05:29 -06:00
Antonio Scandurra 9254219f16 Fix warnings/errors now that AsyncAppContext::update returns Result 2023-04-18 14:58:57 +02:00
Nathan Sobo f5a86aecdc WIP 2023-04-12 12:13:35 -06:00
Antonio Scandurra 5f04261450 WIP 2023-04-12 15:55:43 +02:00
Nathan Sobo fabf89a1b1 WIP 2023-04-11 18:21:56 -06:00
Nathan Sobo d937660683 Merge MutableAppContext into AppContext
There may have been a good reason for the difference at some point, or I was
still learning Rust. But now it's just &mut AppContext vs &AppContext.
2023-04-06 15:49:03 -06:00
Nathan Sobo d26088c32a Add downcast_ref to AnyViewHandle
I use unsafe code to transmute an AnyViewHandle to a ViewHandle<T> when
the type matches. Because ViewHandle<T> is repr(transparent) to the
wrapped AnyViewHandle, this is safe.
2023-04-02 16:10:16 -06:00