fix F1, F2: append at the end, trim
fix F6: trim edited text
fix F7: revert edit on ESC press
refactor use tabs instead of spaces
Update README status of tests
formatting