flutter_ecommerce_app icon indicating copy to clipboard operation
flutter_ecommerce_app copied to clipboard

Interactive selection mode does not works on Mac Terminal

Open chenzixin1 opened this issue 2 years ago • 3 comments

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

chenzixin1 avatar Dec 26 '22 02:12 chenzixin1

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 .

skywind3000 avatar Dec 26 '22 04:12 skywind3000

thanks for the reply

chenzixin1 avatar Dec 26 '22 12:12 chenzixin1

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
}

ilyagr avatar Dec 26 '22 22:12 ilyagr