Skip to content

Commit

Permalink
start menu refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Jan 25, 2024
1 parent 3f0dd62 commit 62726f2
Show file tree
Hide file tree
Showing 9 changed files with 312 additions and 431 deletions.
2 changes: 1 addition & 1 deletion examples/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use reedline::{
default_emacs_keybindings, ColumnarMenu, DefaultCompleter, DefaultPrompt, EditCommand, Emacs,
KeyCode, KeyModifiers, Keybindings, Reedline, ReedlineEvent, ReedlineMenu, Signal,
KeyCode, KeyModifiers, Keybindings, MenuBuilder, Reedline, ReedlineEvent, ReedlineMenu, Signal,
};
use std::io;

Expand Down
4 changes: 2 additions & 2 deletions examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use {
reedline::{
default_emacs_keybindings, default_vi_insert_keybindings, default_vi_normal_keybindings,
ColumnarMenu, DefaultCompleter, DefaultHinter, DefaultPrompt, DefaultValidator,
EditCommand, EditMode, Emacs, ExampleHighlighter, Keybindings, ListMenu, Reedline,
ReedlineEvent, ReedlineMenu, Signal, Vi,
EditCommand, EditMode, Emacs, ExampleHighlighter, Keybindings, ListMenu, MenuBuilder,
Reedline, ReedlineEvent, ReedlineMenu, Signal, Vi,
},
};

Expand Down
4 changes: 2 additions & 2 deletions examples/ide_completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use reedline::{
default_emacs_keybindings, DefaultCompleter, DefaultPrompt, DescriptionMode, EditCommand,
Emacs, IdeMenu, KeyCode, KeyModifiers, Keybindings, Reedline, ReedlineEvent, ReedlineMenu,
Signal,
Emacs, IdeMenu, KeyCode, KeyModifiers, Keybindings, MenuBuilder, Reedline, ReedlineEvent,
ReedlineMenu, Signal,
};
use std::io;

Expand Down
2 changes: 1 addition & 1 deletion examples/transient_prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use nu_ansi_term::{Color, Style};
use reedline::SqliteBackedHistory;
use reedline::{
default_emacs_keybindings, ColumnarMenu, DefaultCompleter, DefaultHinter, DefaultPrompt, Emacs,
ExampleHighlighter, KeyCode, KeyModifiers, Keybindings, Prompt, PromptEditMode,
ExampleHighlighter, KeyCode, KeyModifiers, Keybindings, MenuBuilder, Prompt, PromptEditMode,
PromptHistorySearch, PromptHistorySearchStatus, Reedline, ReedlineEvent, ReedlineMenu, Signal,
ValidationResult, Validator,
};
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ pub use validator::{DefaultValidator, ValidationResult, Validator};

mod menu;
pub use menu::{
menu_functions, ColumnarMenu, DescriptionMode, IdeMenu, ListMenu, Menu, MenuEvent,
menu_functions, ColumnarMenu, DescriptionMode, IdeMenu, ListMenu, Menu, MenuBuilder, MenuEvent,
MenuTextStyle, ReedlineMenu,
};

Expand Down
Loading

0 comments on commit 62726f2

Please sign in to comment.