Skip to main content

gpui_component/input/
mod.rs

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