The pyzo chronicles: gui design

26 views
Skip to first unread message

Edward K. Ream

unread,
Aug 4, 2019, 8:07:16 AM8/4/19
to leo-editor
I mistakenly thought that pyzo's editors support code folding.  There is a codeFolding setting in config.ssdf, but it appears to be unused.  Indeed, pyzo issue #140 is still open.

Happily, pyzo's existing "Source Structure" (structure) tool could be repurposed as Leo's outline pane!  At present, selecting (clicking) an structure item selects the first line of the class/function/method in the corresponding source file.  Instead, we want the following:

1. To navigate through the structure pane with arrow keys, and have <return> switch to the source pane.
2. To be able change headlines in the structure pane.
3. (Maybe/optional) hide Leo sentinels, and show only the code between open/close node sentinels within each editor.

Moreover, when opening a .leo file, we want to do something similar with all the nodes of the file.  Leo's bridge will "deliver" those nodes.

Summary

Pyzo's Source Structure tool provides a good starting point for all aspects of Leo's gui within pyzo.

Edward
Reply all
Reply to author
Forward
0 new messages