Skip to main content

gpui_component/input/
mod.rs

1mod clear_button;
2mod content_type;
3mod gutter_style;
4mod input;
5mod token;
6pub use gpui_base::input::{
7    ActivateToken, InlineToken, InlineTokenClickEvent, InlineTokenContext, InlineTokenError,
8    InlineTokenHoverEvent, InlineTokenSpan, InputContent,
9};
10pub use token::InputToken;
11pub mod language_config;
12mod list_popup;
13mod number_input;
14mod otp_input;
15mod overlay;
16pub(crate) mod popovers;
17mod search;
18mod syntax_context;
19
20pub(crate) use clear_button::*;
21pub use content_type::*;
22#[cfg(not(feature = "tree-sitter"))]
23pub struct Tree;
24pub use gpui_base::input::CursorBlink;
25/// The shared editing engine. Internal to the framework: components reach it
26/// through the concrete state of their control, never across the public API.
27pub(crate) use gpui_base::input::InputBaseState;
28pub use gpui_base::input::{
29    Backspace, BufferPoint, CodeActionItem, CodeActionProvider, CompletionHighlighter,
30    CompletionMenuOptions, CompletionProvider, Copy, Cut, DefinitionProvider, Delete,
31    DeleteToBeginningOfLine, DeleteToEndOfLine, DeleteToNextWordEnd, DeleteToPreviousWordStart,
32    DisplayMap, DisplayPoint, DocumentColorProvider, DocumentRangeSemanticTokensProvider,
33    EditorState, Enter, Escape, FoldRange, GoToDefinition, GutterDecoration,
34    GutterDecorationCollection, HighlightStyleResolver, HoverPopoverState, HoverProvider, Indent,
35    IndentInline, InputEdit, InputEditsEvent, InputEvent, InputHighlighter,
36    InputHighlighterFactory, InputState, Lsp, MaskPattern, MoveDown, MoveEnd, MoveHome, MoveLeft,
37    MovePageDown, MovePageUp, MoveRight, MoveToEnd, MoveToEndOfLine, MoveToNextWord,
38    MoveToPreviousWord, MoveToStart, MoveToStartOfLine, MoveUp, Outdent, OutdentInline,
39    OverviewRulerDecoration, OverviewRulerDecorationCollection, OverviewRulerLane, Paste, Point,
40    PrepaintCaretGeometry, RangeDecoration, RangeDecorationCollection, RangeDecorationStyle, Redo,
41    Replace, Rope, RopeExt, RopeLines, Search, SelectAll, SelectToEnd, SelectToEndOfLine,
42    SelectToNextWordEnd, SelectToPreviousWordStart, SelectToStart, SelectToStartOfLine, Selection,
43    ShowCharacterPalette, ShowCompletions, ShowDocumentHandler, TabSize, TextDecoration,
44    TextDecorationCollection, TextareaState, ToggleCodeActions, Undo, WrappingIndent,
45    highlight_characters, highlight_contains, highlight_prefix,
46};
47pub use gpui_base::input::{EditorMode, InputMode, InputModeKind, TextareaMode};
48pub use gutter_style::GutterStyle;
49#[doc(hidden)]
50mod editor;
51mod group;
52mod state;
53mod textarea;
54pub use editor::Editor;
55pub use gpui_base::input::{
56    AutoClosingPair, BracketPair, IndentationRules, LanguageProvider, SyntaxContext,
57    SyntaxContextProvider, set_language_config, set_language_provider,
58};
59pub use group::*;
60pub use input::*;
61pub use lsp_types::Position;
62pub use number_input::{NumberInput, NumberInputEvent, NumberStep, StepAction};
63pub use otp_input::*;
64pub use state::AnyInputState;
65pub use textarea::Textarea;
66
67pub(crate) fn init(cx: &mut gpui::App) {
68    language_config::init(cx);
69}