mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
If $EDITOR is null, set it to vim
@@ -416,7 +416,7 @@ ftags() {
|
|||||||
line=$(
|
line=$(
|
||||||
awk 'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}' tags |
|
awk 'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}' tags |
|
||||||
cut -c1-80 | fzf --nth=1,2
|
cut -c1-80 | fzf --nth=1,2
|
||||||
) && $EDITOR $(cut -f3 <<< "$line") -c "set nocst" \
|
) && ${EDITOR:-vim} $(cut -f3 <<< "$line") -c "set nocst" \
|
||||||
-c "silent tag $(cut -f2 <<< "$line")"
|
-c "silent tag $(cut -f2 <<< "$line")"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user