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, Redo, Replace, Rope, RopeExt, RopeLines, Search,
35    SelectAll, SelectToEnd, SelectToEndOfLine, SelectToNextWordEnd, SelectToPreviousWordStart,
36    SelectToStart, SelectToStartOfLine, Selection, ShowCharacterPalette, ShowDocumentHandler,
37    TabSize, TextDecoration, TextDecorationCollection, TextareaState, ToggleCodeActions, Undo,
38    WrappingIndent,
39};
40pub use gpui_base::input::{EditorMode, InputMode, InputModeKind, TextareaMode};
41#[doc(hidden)]
42mod editor;
43mod group;
44mod state;
45mod textarea;
46pub use editor::Editor;
47pub use gpui_base::input::{
48    AutoClosingPair, BracketPair, IndentationRules, LanguageProvider, SyntaxContext,
49    SyntaxContextProvider, set_language_config, set_language_provider,
50};
51pub use group::*;
52pub use input::*;
53pub use lsp_types::Position;
54pub use number_input::{NumberInput, NumberInputEvent, NumberStep, StepAction};
55pub use otp_input::*;
56pub use state::AnyInputState;
57pub use textarea::Textarea;
58
59pub(crate) fn init(cx: &mut gpui::App) {
60    language_config::init(cx);
61}