Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive selection mode does not works on Mac Terminal #174

Open
chenzixin1 opened this issue Dec 26, 2022 · 3 comments
Open

Interactive selection mode does not works on Mac Terminal #174

chenzixin1 opened this issue Dec 26, 2022 · 3 comments

Comments

@chenzixin1
Copy link

I typed the comamdn with the parameter “-i”, but I can't interact with the termial , no > {光标位置} shown .

Here is the result.

➜ prometheus-2.41.0.darwin-arm64 z -i
8 /Users/chenzixin/Downloads/南京
11.5 /Users/chenzixin/Downloads
104 /Users/chenzixin/Downloads/prometheus-2.41.0.darwin-arm64
➜ prometheus-2.41.0.darwin-arm64

@skywind3000
Copy link
Owner

skywind3000 commented Dec 26, 2022

keywords are required, at least input a dot .

z -i something

or

z -i .

If you have fzf installed:

z -I something

or

z -I .

@chenzixin1
Copy link
Author

thanks for the reply

@ilyagr
Copy link
Contributor

ilyagr commented Dec 26, 2022

I recommend something like the following (for the fish shell):

function zi --wraps='z -i' --description 'alias zi=z -i and some smarts'
        if set -q argv[1]
            z -i $argv
        else
            z -i .
        end
end

The bash/zsh version would be something like (untested)

#!/bin/sh

zi() {
  if [ "$1"  = "" ]; then
    z -i .
  else
    z -i "$@"
  fi
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants