use fzf to select file and launch editor
0
0
1
| 1 | #!/usr/bin/env zsh |
| 2 | |
| 3 | # Use fzf and open file in text editor |
| 4 | |
| 5 | vd() { |
| 6 | # folder, default to current directory |
| 7 | # depth, default to 1 |
| 8 | local dir=${1:-.} |
| 9 | local depth=${2:-1} |
| 10 | local selected_file |