client-ts icon indicating copy to clipboard operation
client-ts copied to clipboard

Pasting breaks the CLI output

Open kostasb opened this issue 2 years ago • 4 comments

Describe the bug Pasting causes the CLI output to behave funny.

In the following example I copy cmd+C the word "table" and paste it cmd+V in the Name input.

paste-cli

kostasb avatar Feb 08 '23 13:02 kostasb

@richardgill i've seen some recent improvements to the CLI experience. Does your work address this one in particular?

alexfrancoeur avatar Jun 01 '23 16:06 alexfrancoeur

Confirmed it's still an issue with v0.11.19

kostasb avatar Jun 02 '23 07:06 kostasb

Alright, let's keep open. Maybe a good one for the next bug squashing rave 🎉

alexfrancoeur avatar Jun 02 '23 16:06 alexfrancoeur

It's quite difficult to fix this. We would need to re-implement the schema edit command. I've been looking into the enquirer library and even if they allow to subscribe to events, paste is not a recognized event. It seems the behaviour is attempting to restore the CLI output but we show weird state in the process.

SferaDev avatar Jun 09 '23 09:06 SferaDev