Textended Update 2
The textended editor faced following progress last week:
- It got keyboard bindings. Bindings are grouped into modes. The bindings are applied when a mode is in use. The input is no longer an one big function, so additional keybindings are easier to introduce.
- Python to t+ translation layer. All the python files in my project can be translated to .t+ using the python-to-t+ -script. Some constructs might have better translation once I get to doing the translation to another direction.
- Few optimizations. After the translation, I had large enough files to test layouting. On larger files the layouter started to slug down. After profiling it out I decided to optimize mouse picking and tree redraw. It sped up the editor noticeably.
- Added mapping nodes between document and box nodes. Every node has an identified annotated to it, but for layouting another document over it you need to know where every node stays on the screen.
The translated python files look like this for now:
Next week I will improve the layouting and rendering. Some other, various small improvements may be needed as I will try to have some longer coding sessions inside the editor.