Skip to content

Commit

Permalink
Merge pull request kyoheiu#285 from kyoheiu/fix/z-query
Browse files Browse the repository at this point in the history
Allow multiple arguments for zoxide query
  • Loading branch information
kyoheiu authored Mar 2, 2024
2 parents 85bad8e + ea4d1d3 commit 8c3ece7
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 8c3ece7

Please sign in to comment.