zed/crates/gpui/src
ElKowar 7f81bfb6b7
Make keymaps reusable across platforms (#10811)
This PR includes two relevant changes:
- Platform binds (super, windows, cmd) will now parse on all platforms,
regardless of which one is being used. While very counter-intuitive
(this means that `cmd-d` will actually be triggered by `win-d` on
windows) this makes it possible to reuse keymap files across platforms
easily
- There is now a KeyContext `os == linux`, `os == macos` or `os ==
windows` available in keymaps. This allows users to specify certain
blocks of keybinds only for one OS, allowing you to minimize the amount
of keymappings that you have to re-configure for each platform.

Release Notes:

- Added `os` KeyContext, set to either `linux`, `macos` or `windows`
- Fixed keymap parsing errors when `cmd` was used on linux, `super` was
used on mac, etc.
2024-04-22 13:24:25 -07:00
..
app Semantic Index (#10329) 2024-04-12 11:40:59 -06:00
elements Allow hovering over tooltips in git blame sidebar (#10466) 2024-04-12 11:47:32 +02:00
keymap Make keymaps reusable across platforms (#10811) 2024-04-22 13:24:25 -07:00
platform Make keymaps reusable across platforms (#10811) 2024-04-22 13:24:25 -07:00
text_system windows: Introduce Direct Write (#10119) 2024-04-18 11:58:46 -07:00
window Intersect content mask with hitbox bounds only during hit test (#10554) 2024-04-15 15:09:15 +02:00
action.rs gpui-macros: Hide autogenerated action types/functions (#10417) 2024-04-11 15:38:47 +02:00
app.rs linux: Primary clipboard (#10534) 2024-04-18 14:54:18 -07:00
arena.rs
asset_cache.rs gpui: Add SVG rendering to img element and generic asset cache (#9931) 2024-03-29 17:09:49 -07:00
assets.rs Revert "Revert "Revert dependency updates in #9836 (#10089)"" 2024-04-02 13:12:38 -06:00
bounds_tree.rs
color.rs
element.rs
executor.rs Semantic Index (#10329) 2024-04-12 11:40:59 -06:00
geometry.rs Close the backticks in gpui geometry examples (#10579) 2024-04-15 16:52:19 -07:00
gpui.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
input.rs
interactive.rs WIP: Refactor Linux platform implementation (#10227) 2024-04-08 16:40:35 -07:00
key_dispatch.rs Remove if-not-else patterns (#10402) 2024-04-11 03:48:06 -04:00
keymap.rs
platform.rs linux: Primary clipboard (#10534) 2024-04-18 14:54:18 -07:00
prelude.rs
scene.rs Add an animation to the LSP checking indicator (#9463) 2024-03-19 10:16:18 -07:00
shared_string.rs
shared_uri.rs
style.rs
styled.rs Add preview tabs (#9125) 2024-04-11 23:09:12 +02:00
subscription.rs
svg_renderer.rs Update resvg to fix panic (#10393) 2024-04-10 20:12:05 -06:00
taffy.rs
test.rs
text_system.rs Switch to the system UI font on macOS (#10317) 2024-04-09 07:44:57 -06:00
util.rs
view.rs
window.rs Fix stutter while dragging something over an element that stops event propagation (#10737) 2024-04-19 13:29:13 +02:00