keybase / keybase-issues

A single repo for managing publicly recognized issues with the keybase client, installer, and website.
902 stars 37 forks source link

cut lines when trying to read "inbox" from the command-line client #3120

Open gasche opened 6 years ago

gasche commented 6 years ago

I received an email yesterday saying that I had an encrypted message awaiting in my inbox. The keybase chat --help document is not very helpful in knowing how to read inbox messages, but keybase chat ls apparently tries to do the job:

$ keybase chat ls
[1] * chris [chris 2d] hey @gasche, you provisioned Keybase for linux (devi...
                       ​                                                    
                       This is easily fixed. Our key hasn't changed, but we...
                       ​                                                    
                       If you're not on a debian/ubuntu linux, you shouldn'...

This is the integral output. Notice that the lines are cut with ... added. I have found no way to read the message, that is to have the lines not be cut:

1.keybase chat ls | less or keybase chat ls | cat does not do the job, while they should work.

  1. There is no documentation about line length limits in keybase chat --help or anywere in the documentation that I could find. No documentation online either.
  2. This is terrible, terrible UI design, who would even want the content to be cut by default? Line wrapping makes sense, but I don't see any reason for cutting lines.
gasche commented 6 years ago

Looking through the code:

It seems that there is no reasonable way to override this setting, which means that the command-line client as of today is basically unusable to read messages.

ToxicFrog commented 5 years ago

You can use keybase chat read to read the entire message content; it will hard-wrap lines rather than hard-truncating them.

Related bug: https://github.com/keybase/client/issues/17249