Commit Graph
100 Commits
Author SHA1 Message Date
Kay Simmons aa9ccf3411 Merge pull request #1823 from zed-industries/reduce-cursor-blink-load
Reduce Cursor Blink CPU Load
2022-10-26 17:58:56 -07:00
Kay Simmons 499d947e69 Merge pull request #1821 from zed-industries/better-pending-bindings
Better pending bindings
2022-10-26 17:42:56 -07:00
K Simmons c093516351 fix minor warning 2022-10-26 17:42:03 -07:00
K Simmons 41699224ff fix typo in blink manager disable which didn't properly disable, and start editors with the blink manager disabled 2022-10-26 17:39:17 -07:00
K Simmons ae79b50101 Disallow new keybindings when there are any pending 2022-10-26 16:57:23 -07:00
K Simmons 949a28d49c wip 2022-10-26 15:57:42 -07:00
Kay Simmons 88be4fe77e Merge pull request #1804 from zed-industries/vim-go-to-line
fix jump to line number in vim mode
2022-10-26 11:43:27 -07:00
K Simmons 782676dc67 fix jump to line number in vim mode 2022-10-25 00:39:40 -07:00
Kay Simmons 68717d0fe8 Merge pull request #1792 from zed-industries/fn-modifier
Add fn modifier
2022-10-25 00:35:00 -07:00
Kay Simmons 8bd9577318 Merge pull request #1791 from zed-industries/drag-tabs-more-places
Drag tabs more places
2022-10-25 00:34:50 -07:00
K Simmons 2ac537393d fix failing test 2022-10-25 00:11:59 -07:00
K Simmons 82956b618a remove derive_more 2022-10-25 00:06:43 -07:00
K Simmons a725ded95e Add fn modifier to modifier keys in gpui and refactor platform events to use a single modifiers struct 2022-10-24 23:50:39 -07:00
K Simmons 113b7f6f97 tweak drop target overlay color and make stack fully constraint children by the first child
's size
2022-10-24 23:47:43 -07:00
K Simmons aed085b168 remove unnecessary Move branch in dispatch_events 2022-10-24 23:32:01 -07:00
K Simmons 345544646a remove more notify on moves 2022-10-24 23:32:01 -07:00
K Simmons 4520227e98 remove mouse position from render params 2022-10-24 23:32:01 -07:00
K Simmons f5795ffc6f roll back mouse position in mouse_state struct in favor of using the dragged element position 2022-10-24 23:32:01 -07:00
K Simmons 8cde64d3f6 extract dragged item target 2022-10-24 23:32:00 -07:00
K Simmons d7b8a189e4 fix issue where empty pane is created 2022-10-24 23:32:00 -07:00
K Simmons cfde3e348c Add pane splitting by dragged item. Works, but the overlay doesn't clear quite right 2022-10-24 23:31:58 -07:00
K Simmons 70e2951e35 add mouse region handler bool for adding the handler above the child 2022-10-24 23:30:35 -07:00
Kay Simmons 076d353e84 Merge pull request #1803 from zed-industries/fix-vim-motion-panic
Add more explicit neovim testcase exemptions
2022-10-24 23:30:06 -07:00
K Simmons 64e9b9f893 remove mode after which is unused 2022-10-24 18:31:26 -07:00
K Simmons 21ad375b42 Fix panic in vim motion when not listed as exclusive and add features enum to capture why tests are ignored 2022-10-24 18:27:56 -07:00
Kay Simmons 75ec5c3b1b Merge pull request #1784 from zed-industries/fix-keymap-panic
Fix panic in keymap parsing
2022-10-20 16:39:38 -07:00
K Simmons 3a456b09cb catch keymap string only modifiers and no key 2022-10-20 16:30:07 -07:00
Kay Simmons c2b9b08944 Merge pull request #1665 from zed-industries/elevations
Tracking PR: Elevations
2022-10-19 13:59:34 -07:00
K Simmons 2aa2e5af7a fix issue with text component and adjust layer selections some more 2022-10-19 13:45:00 -07:00
K Simmons b7c439f4c4 Fixup some theme inconsistencies and incorrect layer selections 2022-10-19 13:39:46 -07:00
K Simmons caec9c1f45 fixed issue in testbench 2022-10-19 13:13:50 -07:00
K Simmons e3809c267d flattened layers and elevations 2022-10-19 13:02:51 -07:00
K Simmons 79cf5dbd4b remove rocksdb 2022-10-18 17:21:15 -07:00
Kay Simmons da5203011c Merge pull request #1773 from zed-industries/rusqlite
Swap to sqlite for client persistence
2022-10-18 16:11:54 -07:00
K Simmons b0ddbeb0ad Merge branch 'main' into elevations 2022-10-18 12:47:15 -07:00
K Simmons b06366ebb7 Get rusqlite more shippable 2022-10-18 11:43:18 -07:00
K Simmons 6019e4c37b remove items migration 2022-10-18 10:13:47 -07:00
K Simmons 9c8dd66b20 dont reference db items 2022-10-18 10:13:04 -07:00
K Simmons d99a074bc0 revert workspace changes 2022-10-17 17:05:08 -07:00
K Simmons 05b4b443d9 working items schema 2022-10-17 17:04:30 -07:00
K Simmons aa8fa4a6d5 more wip 2022-10-17 17:04:29 -07:00
K Simmons dbc03e2668 wip 2022-10-17 17:04:19 -07:00
Kay Simmons e15cc376b0 Merge pull request #1763 from zed-industries/cursor-blink-setting
Adds the ability to disable cursor blinking and replicates cursor shape to collaborators
2022-10-17 16:51:20 -07:00
K Simmons 54428ca6f6 swap to using vercel to run the local zed.dev server 2022-10-17 16:49:34 -07:00
K SimmonsandMikayla Maki 54cf6fa838 Pull blink functionality out of editor and into blink manager. Make blink manager subscribe to settings changes in order to start blinking properly when it is re-enabled.
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-10-17 16:20:51 -07:00
K Simmons 09a0b3eb55 increment protocol version 2022-10-17 16:20:51 -07:00
K Simmons 40c3e925ad Add cursor blink setting and replicate cursor shape to remote collaborators 2022-10-17 16:20:47 -07:00
Kay Simmons d42bf8eebe Merge pull request #1740 from zed-industries/fix-dock-focus-issues
Fix Dock infinite loop
2022-10-12 16:19:09 -07:00
K Simmons 2a1dbd6fb5 Update gpui focus test to match the new removal of intermediate focus filtering 2022-10-12 15:57:29 -07:00
K Simmons 2ff6ffff58 fix lock merge error 2022-10-12 15:39:04 -07:00
Kay Simmons 27a87c3d9e Merge branch 'main' into fix-dock-focus-issues 2022-10-12 15:18:28 -07:00
K SimmonsandMikayla Maki 1d8717f4de Remove focus filtering from gpui so all focus events result in focus-in and focus-out calls
Remove pane focused event in favor of focus_in at the workspace level
Added is_child to ViewContext to determine if a given view is a child of the current view
Fix issue where dock would get in a infinite loop when activated after dragging an item out of it
Fix issue where the last focused view in an item was not correctly refocused when a pane is focused after switching active tabs

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-10-12 15:10:00 -07:00
Kay Simmons 81a3a22379 Merge pull request #1685 from zed-industries/vim-text-objects
Vim Text Objects and Numeric Repitions
2022-10-11 16:36:19 -07:00
K Simmons d1f1eb9a29 Add count argument to motion functions and add ability to jump to a given line 2022-10-11 16:27:54 -07:00
K Simmons 673041d1f5 working quote and bracket text objects 2022-10-11 15:17:29 -07:00
Kay Simmons 7528bf8f32 Merge pull request #1714 from zed-industries/fix-autoclose
Don't autoclose brackets when `close` is false
2022-10-10 15:35:47 -07:00
K Simmons 0d31ea7cf2 fix minor issue where undo is not available in visual mode 2022-10-10 15:34:40 -07:00
K Simmons 6a237deb21 Add some tests for portions of visual text objects. Note: they are slightly broken currently as described in the tests 2022-10-10 15:32:12 -07:00
K Simmons d2494822b0 Add assertion context manager to TestAppContext and convert existing vim tests to use neovim backed test context 2022-10-10 14:46:07 -07:00
K Simmons 5fec8c8bfd Enable verifying of visual mode selections in neovim backed tests 2022-10-09 01:19:22 -07:00
K Simmons f90b693ed5 fix some warnings and merge errors 2022-10-08 23:49:04 -07:00
K Simmons 515c1ea123 Fixed some neovim test context issues, added repeated commands in vim mode, and ported some tests to use the neovim testing strategy 2022-10-08 21:52:07 -07:00
K Simmons b82db3a254 Adds word and sentence text objects along with a new vim testing system which uses cached neovim data to verify our test accuracy 2022-10-08 21:51:49 -07:00
K Simmons 96f9ee784d add more states to the theme testbench 2022-09-22 14:25:15 -07:00
K Simmons 962f087ac2 promote variant to its own styleset 2022-09-22 13:29:19 -07:00
K Simmons eabd687cbc More tweaks and add variant to theme testbench 2022-09-21 16:59:33 -07:00
K Simmons 593c7a8cd1 fix rebase error 2022-09-21 16:35:24 -07:00
K Simmons 79b9420017 minor tweaks 2022-09-21 16:32:44 -07:00
K Simmons db5c83eb36 add theme testbench command 2022-09-21 16:32:44 -07:00
K Simmons 56f9543a95 reworked style tree to use colorScheme instead of old theme. Very limited style for now 2022-09-21 16:32:42 -07:00
Kay Simmons f081dbced5 Merge pull request #1634 from zed-industries/dock-tweaks
Dock Tweaks
2022-09-19 09:02:43 -07:00
K Simmons b682fd8035 remove rounded corners on dock due to rendering issue 2022-09-16 16:44:29 -07:00
K Simmons da05e340b8 Fix dock keybindings 2022-09-16 16:41:57 -07:00
K Simmons 1ce48f4a94 Minor improvements to dock visuals, rework dock keybindings, and fix panic on split when dock is active 2022-09-16 12:55:36 -07:00
Kay Simmons 29f46539f0 Merge pull request #1614 from zed-industries/dock
Dock
2022-09-14 12:40:59 -07:00
K Simmons 61ec334234 Minor tweak to dock tests 2022-09-13 19:26:07 -07:00
K Simmons 3b9b2cd443 Add tests for the dock 2022-09-13 19:18:05 -07:00
K Simmons ad77bb7b92 Fix mouse scroll in terminal items 2022-09-13 17:37:24 -07:00
K Simmons a7d0732f95 fixed release build issue 2022-09-13 15:26:10 -07:00
K SimmonsandMikayla Maki 0b5952e1bd Fix incorrect rendering of toolbar in right anchored dock
Make dock keybinding activate the dock if it wasn't hidden, and hide it if it was already active
Make clicking the expanded dock wash, hide the dock
Fix some issues with programmatically activating other panes, not hiding the dock
Tweak dock anchor menu text
Swap dock hide button for thin variant
Fix dock sidebar interactions
Add clicked state to search button and fix presenter issue sending clicked events when mouse not overlapping MouseRegion

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-13 15:17:27 -07:00
K SimmonsandMikayla Maki 3c88aa3d18 Fix hovering over hover popovers in the editor
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-13 13:35:06 -07:00
K Simmons 6bc17cc9a4 Fix remaining test failures 2022-09-13 13:17:49 -07:00
K Simmons df59b28aaf Extract panel resize code from sidebar into Resizable element
Make resizable work in vertical axis
Make dock resizable
Have dock preserve size based on Anchor position
Make pane buttons work more correctly in pathological cases
Sync status bar dock button with dock visibility/anchor position

Co-Authored-By Mikayla Maki <mikayla@zed.dev>
2022-09-12 18:32:15 -07:00
K Simmons f2b72eb6d2 WIP working on resizable dock 2022-09-12 14:24:57 -07:00
K Simmons 1dfa711d2e Fix some pane button issues 2022-09-11 15:52:09 -07:00
K SimmonsandMikayla Maki 444417203b Move workspace overlay elements into an actual overlay in order to get proper stacking context depths
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-11 15:34:12 -07:00
K SimmonsandMikayla Maki 6b26965074 Permanent fix to repeat MouseRegion Tag failure in Workspace
Polish tab bar buttons

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-11 15:34:10 -07:00
K SimmonsandMikayla Maki 69ecbb644d DOCK WORKING!
Update editor element to use mouse regions instead of dispatch event for mouse events
Fix bug in presenter where mouse region handlers were stored on click and called instead of more up to date handlers from subsequent renders
Changed MouseRegion to require discriminants in all cases
Add scroll wheel event to MouseRegion
Polished a bunch of dock inconsistencies

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-11 15:32:20 -07:00
K Simmons 59fd967793 Swapped keyboard binding and did some minor tweaks to style and focus 2022-09-11 15:31:44 -07:00
K Simmons b88abcacac WIP dock split button and default item 2022-09-11 15:31:44 -07:00
K Simmons 0fca4d02ec Merge pull request #1621 from zed-industries/editor-context-menu-fix
Make MouseRegion Click handlers, also handle Down events by default.
2022-09-11 15:22:24 -07:00
K Simmons 28965dc5b6 Make MouseRegion Click handlers, also handle Down events by default. 2022-09-11 14:19:35 -07:00
K Simmons 6555d6f1c9 Merge pull request #1613 from zed-industries/breadcrumbs-refactoring
Terminal Breadcrumbs
2022-09-06 16:28:00 -07:00
K SimmonsandMikayla Maki 31ecb2f7bc Introduced ItemEvent and to_item_events function to Item trait which converts the Item's events into a standard ItemEvent similar to how SearchableItems work.
Add breadcrumb_location and breadcrumbs functions to item trait which handles rendering of the breadcrumb elements
Change breadcrumb toolbar to use these new functions rather than having hard coded breadcrumb logic
Add breadcrumb support to the terminal tabs

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-06 16:05:36 -07:00
K Simmons ab81093ef5 WIP pull breadcrumb rendering out into item trait 2022-09-06 14:39:58 -07:00
K Simmons a662a8967b Merge pull request #1596 from zed-industries/move-pane-panic-fix
Don't panic if a tab isn't present in a from tab when dragged
2022-09-01 17:47:16 -07:00
K SimmonsandMikayla Maki 7497edaec2 Add process info to terminal so that we can show the active process in the terminal tab title
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-01 17:46:11 -07:00
K Simmons 91080fb998 Don't panic if a tab isn't present in a from tab when dragged 2022-09-01 15:17:25 -07:00
K Simmons e00b7b2670 Merge pull request #1593 from zed-industries/drag-and-drop-multiple-windows
Drag and drop with multiple windows fix
2022-09-01 13:45:47 -07:00
K SimmonsandMax Brunsfeld 67a585cdfa Impl default for drag and drop global. Make drag and drop global maintain a list of weak handles to the container.
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-09-01 12:13:46 -07:00