csv123 icon indicating copy to clipboard operation
csv123 copied to clipboard

Include a UI library to make editing/saving easier?

Open rossjones opened this issue 5 years ago • 2 comments

Would you take a PR which added https://github.com/achura/termboxUI so that it was possible to 'Enter' to edit a cell (in a popup editor) and CTRL-S to save (with a filename prompt) etc?

rossjones avatar Nov 21 '18 14:11 rossjones

I would really like to spend a little bit of time refactoring the current app a little bit. Ideally have separate files that handle both the underlying sheet data + functions to manipulate them, and a separate file that handles UI.

I did think a little bit about replacing all of termbox with a different TUI library. That should become a bit easier once that separation is done. It looks like termboxUI might also just help.

I do want use ENTER start editing, but instead of doing this with a pop-up, I want to use the top-most line to display both the current value of the cell (it might be truncated to 20 chars now) and as the input field.

evert avatar Nov 21 '18 21:11 evert

Here you can see the top line, it contains "Principal". It also matches how excel and google sheets work today =)

evert avatar Nov 21 '18 21:11 evert