zed/crates/gpui/src
Thorsten Ball 583ce44359
Fix cmd+k in terminal and fix sporadic keybind misses (#7388)
This fixes `cmd+k` in the terminal taking 1s to have an effect. It is
now immediate.

It also fixes #7270 by ensuring that we don't set a bad state when
matching keybindings.

It matches keybindings per context and if it finds a match on a lower
context it doesn't keep pending keystrokes. If it finds two matches on
the same context level, requiring more keystrokes, then it waits.



Release Notes:

- Fixed `cmd-k` in terminal taking 1s to have an effect. Also fixed
sporadic non-matching of keybindings if there are overlapping
keybindings.
([#7270](https://github.com/zed-industries/zed/issues/7270)).

---------

Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2024-02-05 10:55:27 -07:00
..
app Open URLs with cmd-click (#7312) 2024-02-02 22:05:28 -07:00
elements gpui: Add Global marker trait (#7095) 2024-01-30 14:08:20 -05:00
keymap Finish documenting GPUI 2024-01-22 19:33:45 -08:00
platform Mark the window as dirty when first opening it (#7384) 2024-02-05 09:09:49 -07:00
text_system Scope line layout cache to each window (#7235) 2024-02-02 09:11:20 -08:00
window Fix cmd+k in terminal and fix sporadic keybind misses (#7388) 2024-02-05 10:55:27 -07:00
action.rs Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
app.rs Reintroduce ProMotion support (#7347) 2024-02-03 16:33:08 -07:00
arena.rs Log if element arena allocation is >80% 2024-01-24 11:03:28 +01:00
assets.rs Load embedded fonts directly from .rdata instead of cloning (#6932) 2024-01-29 10:06:57 +01:00
color.rs Add module documentation to GPUI and make gpui.rs example compile 2024-01-23 21:29:12 -08:00
element.rs Revert "Ensure that notify observations are sent during Window::draw()" 2024-01-24 10:50:52 -08:00
executor.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
geometry.rs Document geometry 2024-01-22 19:30:40 -08:00
gpui.rs gpui: Add Global marker trait (#7095) 2024-01-30 14:08:20 -05:00
image_cache.rs Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
input.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
interactive.rs Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port. 2024-01-22 19:30:38 -08:00
key_dispatch.rs Fix cmd+k in terminal and fix sporadic keybind misses (#7388) 2024-02-05 10:55:27 -07:00
keymap.rs Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port. 2024-01-22 19:30:38 -08:00
platform.rs Reintroduce ProMotion support (#7347) 2024-02-03 16:33:08 -07:00
prelude.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
scene.rs Cache last used layer_id for StackingOrder 2024-01-23 11:46:11 +01:00
shared_string.rs Clean up gpui docs (#4240) 2024-01-23 23:20:05 -05:00
shared_uri.rs Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
style.rs Use fully-qualified name to avoid an unused import (#7104) 2024-01-30 14:57:54 -05:00
styled.rs Document more styling functions 2024-01-22 19:31:31 -08:00
subscription.rs Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port. 2024-01-22 19:30:38 -08:00
svg_renderer.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
taffy.rs Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port. 2024-01-22 19:30:38 -08:00
test.rs Fix typos, mark docs related todos in GPUI 2024-01-21 14:28:40 -08:00
text_system.rs Scope line layout cache to each window (#7235) 2024-02-02 09:11:20 -08:00
util.rs Pull out fluent builder helpers into re-usable trait 2024-01-18 15:31:31 -08:00
view.rs Prevent z-index id shuffle when number of z-indicies in the scene change 2024-01-29 13:08:40 -05:00
window.rs Fix cmd+k in terminal and fix sporadic keybind misses (#7388) 2024-02-05 10:55:27 -07:00