gpui-component/crates/story/examples
Jason Lee 5658db42c7
input: Add CodeEditor mode. (#863)
## TODO

- [x] Cache highlight result.
- [x] Add a `code-editor` example with more languages test.
- [x] Support setup font to Input (Base on window scope text style).
- [x] Line number
- [x] Change font size and font family.
- [x] Enter newline to keep indent.
- [x] Height with flex_1
- [x] Add to support press `up`, `down` to move cursor to start or end
of the selection, if there is selected.
- [x] Add `Tab`, `Shift-Tab` to indent or outdent for cursor and
selection.
- [x] Double click to select at least 1 char.


https://github.com/user-attachments/assets/af74862d-15a9-4802-b4b4-2aeb606227ec
2025-05-20 15:51:00 +08:00
..
accordion.rs accordion: Fix toggle accordion item. (#749) 2025-03-27 14:22:00 +08:00
alert.rs input: Add Esc to clean. (#803) 2025-04-20 10:24:47 +08:00
button.rs toggle: Add Toggle and ToggleGroup. (#691) 2025-03-06 19:10:28 +08:00
code-editor.rs input: Add CodeEditor mode. (#863) 2025-05-20 15:51:00 +08:00
description_list.rs description_list: Fix incorrect align items for horizontal layout (#730) 2025-03-24 17:15:46 +08:00
dock.rs dock: Show keybinding for ToggleZoom menu and button. (#861) 2025-05-17 22:23:45 +08:00
form.rs chore: Upgrade GPUI 2025/03/07 (#697) 2025-03-07 20:22:58 +08:00
html.html text_view: Fix HTML render to support blockquote. (#703) 2025-03-10 22:53:53 +08:00
html.rs input: Add CodeEditor mode. (#863) 2025-05-20 15:51:00 +08:00
input.rs chore: Upgrade GPUI 3 (#587) 2025-01-27 03:58:48 +08:00
list.rs chore: Upgrade GPUI 3 (#587) 2025-01-27 03:58:48 +08:00
markdown.md text_view: Add syntax highlight to CodeBlock. (#684) 2025-03-04 21:50:50 +08:00
markdown.rs input: Add CodeEditor mode. (#863) 2025-05-20 15:51:00 +08:00
modal.rs example: Add modal example. (#625) 2025-02-14 14:44:26 +08:00
popover.rs gallery: Redesign the gallery. (#797) 2025-04-17 17:12:48 +08:00
scrollable.rs theme: Add to support always show scrollbar mode and default to match with system style. (#621) 2025-02-12 15:15:33 +08:00
sidebar.rs sidebar: Fix sidebar example and add right side example. (#626) 2025-02-14 15:06:37 +08:00
switch.rs text_view: Update Switch, Checkbox, Radio to let label method support TextView. (#649) 2025-02-24 15:49:54 +08:00
table.rs chore: Upgrade GPUI 3 (#587) 2025-01-27 03:58:48 +08:00
tabs.rs tab: Add Pill, Segmented, Underline style Tab and complete the Tab API. (#676) 2025-03-03 17:09:52 +08:00
text.rs gallery: Redesign the gallery. (#797) 2025-04-17 17:12:48 +08:00
tiles.rs input: Refactor Input, Picker as stateless mode. (#858) 2025-05-16 23:41:26 +08:00
toggle.rs toggle: Add Toggle and ToggleGroup. (#691) 2025-03-06 19:10:28 +08:00
tooltip.rs tooltip: Add KeyBinding to tooltip and Button. (#783) 2025-04-14 16:40:40 +08:00
webview.rs webview: Let webview as a feature and not default enable. (#648) 2025-02-24 14:24:22 +08:00