Skip to content

Actions that require a tty when tv's stdout isn't connected to one #697

@CheariX

Description

@CheariX

Description
A description of what the bug is.

Example

Use "tv files" with actions.edit on an arbitrary file.

Pressing F12 on a file works if I'm on bash.

In fish shell, the shell simply hangs.

Expected behavior
Editing the file should work in all shells, not only bash.

Environment

  • OS: Mac
  • TV version: 0.13.2
  • shell: [bash, fish(4.0.2)]
  • terminal: Alacritty

Additional context

If I change the action to vim instead of nvim, like this:

[actions.edit]
description = "Opens the selected entries with the default editor (falls back to vim)"
command = "vim {}"
mode = "execute"

Then I can see the following error:

Vim: Warning: Output is not to a terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions