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    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;
22/// The shared editing engine. Internal to the framework: components reach it
23/// through the concrete state of their control, never across the public API.
24pub(crate) use gpui_base::input::InputBaseState;
25pub use gpui_base::input::{
26    Backspace, BufferPoint, CodeActionItem, CodeActionProvider, CompletionMenuOptions,
27    CompletionProvider, Copy, Cut, DefinitionProvider, Delete, DeleteToBeginningOfLine,
28    DeleteToEndOfLine, DeleteToNextWordEnd, DeleteToPreviousWordStart, DisplayMap, DisplayPoint,
29    DocumentColorProvider, DocumentRangeSemanticTokensProvider, EditorState, Enter, Escape,
30    FoldRange, GoToDefinition, HighlightStyleResolver, HoverPopoverState, HoverProvider, Indent,
31    IndentInline, InputEdit, InputEvent, InputHighlighter, InputHighlighterFactory, InputState,
32    Lsp, MaskPattern, MoveDown, MoveEnd, MoveHome, MoveLeft, MovePageDown, MovePageUp, MoveRight,
33    MoveToEnd, MoveToEndOfLine, MoveToNextWord, MoveToPreviousWord, MoveToStart, MoveToStartOfLine,
34    MoveUp, Outdent, OutdentInline, Paste, Point, RangeDecoration, RangeDecorationCollection,
35    RangeDecorationStyle, Redo, Replace, Rope, RopeExt, RopeLines, Search, SelectAll, SelectToEnd,
36    SelectToEndOfLine, SelectToNextWordEnd, SelectToPreviousWordStart, SelectToStart,
37    SelectToStartOfLine, Selection, ShowCharacterPalette, ShowDocumentHandler, TabSize,
38    TextDecoration, TextDecorationCollection, TextareaState, ToggleCodeActions, Undo,
39    WrappingIndent,
40};
41pub use gpui_base::input::{EditorMode, InputMode, InputModeKind, TextareaMode};
42#[doc(hidden)]
43mod editor;
44mod group;
45mod state;
46mod textarea;
47pub use editor::Editor;
48pub use gpui_base::input::{
49    AutoClosingPair, BracketPair, IndentationRules, LanguageProvider, SyntaxContext,
50    SyntaxContextProvider, set_language_config, set_language_provider,
51};
52pub use group::*;
53pub use input::*;
54pub use lsp_types::Position;
55pub use number_input::{NumberInput, NumberInputEvent, NumberStep, StepAction};
56pub use otp_input::*;
57pub use state::AnyInputState;
58pub use textarea::Textarea;
59
60pub(crate) fn init(cx: &mut gpui::App) {
61    language_config::init(cx);
62}