Antonio Scandurra and Nathan Sobo
f028df6108
Make Pane::add_item a proper Pane method
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-05-29 19:16:22 +02:00
Kirill Bulatov and Mikayla
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
Julia
ee718b9a33
Remove concept of git diff refresh from Item trait
2023-05-25 14:29:28 -04:00
Antonio Scandurra
4e1927ed9c
Prevent bottom dock from becoming too large or too small
2023-05-25 15:29:59 +02:00
Antonio Scandurra
dde7786aa3
Don't show navigation controls for terminal panel
2023-05-25 15:15:20 +02:00
Antonio Scandurra
a75b98001b
Prevent zoom from being restored when focusing a modal
2023-05-25 12:11:11 +02:00
Nathan Sobo
a30ba2765a
Introduce the ability to talk to GPT-4 within buffers on preview and dev ( #2524 )
...
This adds basic ability to interact with OpenAI inside a buffer.
Release Notes:
* If`OPENAI_API_KEY` is defined in your environment, you can now run the
`ai: assist` command to pass the text of your current buffer to GPT-4.
If you're editing a file with a `.zmd` extension, you can also invoke
the model with `cmd-enter.` (preview-only)
2023-05-24 12:00:43 -06:00
Nathan Sobo
0d72a3bec6
Merge remote-tracking branch 'origin/main' into zmd
2023-05-24 11:04:07 -06:00
Max Brunsfeld
ec20b724e3
Make toggle dock actions appear in the command palette
2023-05-24 09:58:41 -07:00
Antonio Scandurra and Nathan Sobo
4275468260
Show keystroke in panel tooltips
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-05-24 16:13:58 +02:00
Antonio Scandurra and Nathan Sobo
57eb51fb3d
Use cmd-b/cmd-r/cmd-j to toggle left/right/bottom dock and focus when opening
...
Also, bind the same keys with shift to toggle the dock without focusing.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-05-24 15:59:06 +02:00
Antonio Scandurra
be36a5087a
Provide tooltips for pane buttons
2023-05-24 11:18:30 +02:00
Antonio Scandurra
8e24fcbb15
Show maximize/minimize icon for panes and terminal panel
2023-05-24 11:00:12 +02:00
Antonio Scandurra
7560d902df
Prevent empty panes from being zoomed
2023-05-24 10:34:56 +02:00
Joseph Lyons
2867a622c5
add toggle right and bottom dock actions
2023-05-23 13:53:56 -04:00
Antonio Scandurra
4e34feced3
Improve styling of bottom and right docks
2023-05-23 09:02:45 +02:00
Antonio Scandurra
dee6f22ca2
Merge remote-tracking branch 'origin/main' into panels
2023-05-23 08:24:28 +02:00
Nathan Sobo
2f2061db74
WIP
2023-05-22 23:11:27 -06:00
Antonio Scandurra
2f5d1e7251
Remove unused imports
2023-05-22 19:38:57 +02:00
Antonio Scandurra
45d450fc65
Fix more warnings
2023-05-22 19:36:01 +02:00
Antonio Scandurra
dcb6552710
Fix warnings
2023-05-22 19:33:11 +02:00
Antonio Scandurra
f01ea5c41c
Test zooming panels
2023-05-22 19:30:31 +02:00
Antonio Scandurra
757d011496
Avoid leaking docks when adding panels
2023-05-22 18:57:14 +02:00
Antonio Scandurra
f0039e1e86
Uncomment persistence test
2023-05-22 18:32:28 +02:00
Antonio Scandurra
6bf2ddc461
Await closing of items in tests
2023-05-22 18:28:30 +02:00
Antonio Scandurra
3b6f02b247
Persist project and terminal panel sizes
2023-05-22 15:55:44 +02:00
Antonio Scandurra
8f56c80d68
Merge branch 'main' into panels
2023-05-22 14:10:17 +02:00
Max Brunsfeld
9eb9a3cb71
Fix spurious setting error logs on non-existent setting keys
2023-05-19 17:15:05 -07:00
Mikayla Maki
9cae4d8776
Add guards to other pane index removals
2023-05-19 15:10:44 -07:00
Kirill Bulatov and Max
6ace6b78db
Use better name for the method that closes deleted buffers
...
co-authored-by: Max <max@zed.dev >
2023-05-19 21:47:00 +03:00
Antonio Scandurra
b26ccc9017
Show workspace only after initializing it
2023-05-19 19:35:00 +02:00
Antonio Scandurra
3f3354043d
Serialize and deserialize TerminalPanel
2023-05-19 19:26:32 +02:00
Kirill Bulatov
136b128d0f
When the file is deleted via project panel, close it in editors
2023-05-19 18:52:30 +03:00
Antonio Scandurra
90ce4d6ffa
Add new terminal when the terminal panel is activated, and not on focus
2023-05-19 16:07:47 +02:00
Antonio Scandurra
b6997ef75b
Toggle project panel when opening new workspace in a dock-agnostic way
2023-05-19 15:27:18 +02:00
Antonio Scandurra
f762d7f43b
Activate the correct panel when deserializing workspace
2023-05-19 14:18:11 +02:00
Kirill Bulatov and Max
5d30032cd1
Show navigation history in the file finder modal
...
co-authored-by: Max <max@zed.dev >
2023-05-18 21:50:38 +03:00
Antonio Scandurra
747aa675d4
WIP
2023-05-18 15:35:46 +02:00
Mikayla Maki
9e797ba1ac
WIP: Add persistence to new docks
2023-05-17 17:34:20 -07:00
Max Brunsfeld
e7f85efbb8
Rename settings::register_setting -> settings::register
2023-05-17 15:06:11 -07:00
Max Brunsfeld
30e678a450
Remove optional path argument when getting settings
2023-05-17 15:05:20 -07: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
94c5c17a02
Drop foreign key constraint from workspaces.dock_pane to panes table
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-05-17 18:21:35 +02:00
Antonio Scandurra and Mikayla Maki
0d9c78ddc2
Store whether a panel is zoomed in the panel itself
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-05-17 17:51:11 +02:00
Antonio Scandurra and Mikayla Maki
7105ecbb5b
Rebind ctrl-` to toggle terminal panel focus
...
Also, add `ctrl-~` to create new terminals.
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-05-17 17:35:10 +02:00
Antonio Scandurra
4995d3c947
Show a panel/pane as zoomed only if it's the active item in workspace
2023-05-17 15:06:58 +02:00