Skip to content

Commit

Permalink
Allow multiple arguments for zoxide query
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoheiu committed Mar 2, 2024
1 parent 85bad8e commit ea4d1d3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,15 +746,7 @@ fn _run(mut state: State, session_path: PathBuf) -> Result<(), FxError> {
let commands = command
.split_whitespace()
.collect::<Vec<&str>>();
if commands.len() > 2 {
//Invalid argument.
print_warning(
"Invalid argument for zoxide.",
state.layout.y,
);
state.move_cursor(state.layout.y);
break 'zoxide;
} else if commands.len() == 1 {
if commands.len() == 1 {
//go to the home directory
let home_dir =
dirs::home_dir().ok_or_else(|| {
Expand Down

0 comments on commit ea4d1d3

Please sign in to comment.