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