edenlabllc / rmk

RMK CLI - Reduced Management for Kubernetes by Edenlab LLC.
https://edenlabllc.github.io/rmk/latest/
Apache License 2.0
52 stars 1 forks source link

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

Open ilya-zlobintsev opened 4 months ago

ilya-zlobintsev commented 4 months ago

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

System info