Skip to content

Commit

Permalink
add support for tab completion cycling be default
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Sep 3, 2023
1 parent af79eb2 commit 03d4f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/nu-cli/src/reedline_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ fn add_menu_keybindings(keybindings: &mut Keybindings) {
KeyCode::Tab,
ReedlineEvent::UntilFound(vec![
ReedlineEvent::Menu("completion_menu".to_string()),
ReedlineEvent::MenuNext,
ReedlineEvent::Edit(vec![EditCommand::Complete]),
]),
);
Expand Down
1 change: 1 addition & 0 deletions crates/nu-utils/src/sample_config/default_config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ $env.config = {
until: [
{ send: menu name: completion_menu }
{ send: menunext }
{ edit: complete }
]
}
}
Expand Down

0 comments on commit 03d4f74

Please sign in to comment.