mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 06:07:42 +00:00
Show error message when failed to start preview command (#1810)
Fix #1637
This commit is contained in:
parent
f7b26b34cb
commit
f246fb2fc2
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ doc/tags
|
|||||||
vendor
|
vendor
|
||||||
gopath
|
gopath
|
||||||
*.zwc
|
*.zwc
|
||||||
|
fzf
|
||||||
|
@ -480,7 +480,8 @@ See *KEY BINDINGS* section of the man page for details.
|
|||||||
### Preview window
|
### Preview window
|
||||||
|
|
||||||
When `--preview` option is set, fzf automatically starts an external process with
|
When `--preview` option is set, fzf automatically starts an external process with
|
||||||
the current line as the argument and shows the result in the split window.
|
the current line as the argument and shows the result in the split window. Your
|
||||||
|
`$SHELL` is used to execute the command with `$SHELL -c COMMAND`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# {} is replaced to the single-quoted string of the focused line
|
# {} is replaced to the single-quoted string of the focused line
|
||||||
|
@ -1576,7 +1576,10 @@ func (t *Terminal) Loop() {
|
|||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
cmd.Stdout = &out
|
cmd.Stdout = &out
|
||||||
cmd.Stderr = &out
|
cmd.Stderr = &out
|
||||||
cmd.Start()
|
err := cmd.Start()
|
||||||
|
if err != nil {
|
||||||
|
out.Write([]byte(err.Error()))
|
||||||
|
}
|
||||||
finishChan := make(chan bool, 1)
|
finishChan := make(chan bool, 1)
|
||||||
updateChan := make(chan bool)
|
updateChan := make(chan bool)
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user