| 1 | mod clear_button; |
| 2 | mod content_type; |
| 3 | mod input; |
| 4 | mod token; |
| 5 | pub use gpui_base::input::{ |
| 6 | ActivateToken, InlineToken, InlineTokenClickEvent, InlineTokenContext, InlineTokenError, |
| 7 | InlineTokenHoverEvent, InlineTokenSpan, InputContent, |
| 8 | }; |
| 9 | pub use token::InputToken; |
| 10 | pub mod language_config; |
| 11 | mod number_input; |
| 12 | mod otp_input; |
| 13 | mod overlay; |
| 14 | pub(crate) mod popovers; |
| 15 | mod search; |
| 16 | mod syntax_context; |
| 17 | |
| 18 | pub(crate) use clear_button::*; |
| 19 | pub use content_type::*; |
| 20 | #[cfg(not(feature = "tree-sitter"))] |
| 21 | pub 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. |
| 24 | pub(crate) use gpui_base::input::InputBaseState; |
| 25 | pub 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 | }; |
| 41 | pub use gpui_base::input::{EditorMode, InputMode, InputModeKind, TextareaMode}; |
| 42 | #[doc(hidden)] |
| 43 | mod editor; |
| 44 | mod group; |
| 45 | mod state; |
| 46 | mod textarea; |
| 47 | pub use editor::Editor; |
| 48 | pub use gpui_base::input::{ |
| 49 | AutoClosingPair, BracketPair, IndentationRules, LanguageProvider, SyntaxContext, |
| 50 | SyntaxContextProvider, set_language_config, set_language_provider, |
| 51 | }; |
| 52 | pub use group::*; |
| 53 | pub use input::*; |
| 54 | pub use lsp_types::Position; |
| 55 | pub use number_input::{NumberInput, NumberInputEvent, NumberStep, StepAction}; |
| 56 | pub use otp_input::*; |
| 57 | pub use state::AnyInputState; |
| 58 | pub use textarea::Textarea; |
| 59 | |
| 60 | pub(crate) fn init(cx: &mut gpui::App) { |
| 61 | language_config::init(cx); |
| 62 | } |