Skip to content

rmk secret edit does not capture keyboard input on linux #8

Description

@ilya-zlobintsev

Description

When using rmk secret edit, the opened editor does not capture key presses - instead of passing keys to the terminal, it just overwrites whatever the terminal was showing before.

When using sops directly to edit the file this issue does not occur.

Video showcasing the problem:
https://github.com/edenlabllc/rmk/assets/22796665/614b78b5-57af-47ca-9274-ca08bdc00ab3

Extra info: this issue happens when using either nvim or nano as $EDITOR, but not with plain vim. vim works fine, but prints a warning: Vim: Warning: Output is not to a terminal.

Steps to reproduce

  • Be on Linux
  • Open secrets file in an editor with rmk secret edit
  • Try using the editor

System info

  • rmk version: 0.42.0
  • OS: Fedora 40
  • Shell: fish (also tried with zsh, the problem remains)
  • Terminal: alacritty ($TERM variable: xterm-256color)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions