br0xen / boltbrowser

A CLI Browser for BoltDB Files
GNU General Public License v3.0
631 stars 91 forks source link

Values preview. #24

Closed cydside closed 6 years ago

cydside commented 6 years ago

Hi, here is what happen: boltbrowser_bytearray_vs_text

Values preview is in pure bytearray but editing it the text is showed! Any suggestions? Thanks.

cydside commented 6 years ago

I got it. If you break the value data in multiple line eg.: []byte({"usr_name":"danilo", "usr_pass":"", "usr_level":9, ....}) I guess the line feed char at the end of line makes the preview unreadable. Otherwise if you keep the value data in a single line eg.: []byte({"usr_name":"danilo","usr_pass":"","usr_level":9,...) the preview is readable like in the editing box.