Skip to content

Editor refactoring mode#11

Closed
hleb-rubanau wants to merge 47 commits into
aldum:masterfrom
hleb-rubanau:features/editor_refactoring_mode
Closed

Editor refactoring mode#11
hleb-rubanau wants to merge 47 commits into
aldum:masterfrom
hleb-rubanau:features/editor_refactoring_mode

Conversation

@hleb-rubanau
Copy link
Copy Markdown
Collaborator

This change solves compy-toys#115 introducing "refactoring mode"

Some work is still pending -- going to add tests, and probably check the code against style conventions.

But the supposed logic can be reviewed already.

@hleb-rubanau hleb-rubanau marked this pull request as draft March 23, 2026 19:59
@hleb-rubanau hleb-rubanau force-pushed the features/editor_refactoring_mode branch from d48170e to 0534da2 Compare March 23, 2026 20:27
@hleb-rubanau hleb-rubanau marked this pull request as ready for review March 23, 2026 21:19
aldum and others added 5 commits April 7, 2026 23:01
…ng (#12)

* feat: add compy.graphics with bezier polygonization and shape rendering
* review: weak caches, shape2d under compy.graphics.shape2d

---------

Co-authored-by: Vadym <vadym@MacBook-Pro-Vadym.local>
* feat: enable stencil buffer for user canvas
Copy link
Copy Markdown
Owner

@aldum aldum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the number of conttributors is spiking, I'm rethinking the branching strategy. We will be working against dev, please rebase the PR against it.

Another thing I'd like see codebase-wide (meaning I need to clean up some of my older work too) is type annotations for all public classes and functions. In the case of this PR, EditorSession is a prominent example, it would aid in communicating intent to the reader immensely.

Other than that, good quality code, I really appreciate the usage of my table utilities :)

Comment thread src/controller/editorController.lua Outdated
Comment thread src/view/editor/bufferView.lua Outdated
Comment thread src/controller/editorController.lua
Comment thread src/controller/editorController.lua Outdated
Comment thread src/model/editor/bufferModel.lua Outdated
Comment thread tests/helpers/editor_session.lua Outdated
Comment thread tests/helpers/editor_session.lua Outdated
Comment thread tests/editor/editor_spec.lua
aldum and others added 21 commits April 23, 2026 00:26
Stricter check for actual presence of error lines in 'parsed error' container

Closes: compy-toys#131
…between non-empty pretty blocks if there is more than one block
All context variables need hard resets before each test
(sharing controller object without cleanup -> cursor chaos)
Conservatively setting col=65 to match editor's own conventions
@hleb-rubanau hleb-rubanau force-pushed the features/editor_refactoring_mode branch from 75f9103 to 930ce70 Compare May 18, 2026 14:22
@hleb-rubanau hleb-rubanau requested a review from aldum May 18, 2026 14:24
@hleb-rubanau
Copy link
Copy Markdown
Collaborator Author

All requested concerns addressed (lintering, annotations, function naming, etc.).

Plus few tweaks done addressing issues communicated beyond github:

  1. Stricter rejection behavior (no partial save, always reject when oversized block is present)
  2. Input cleared after successful insertion, in a same way as after succcesful replacement

@hleb-rubanau hleb-rubanau mentioned this pull request May 25, 2026
@aldum
Copy link
Copy Markdown
Owner

aldum commented May 25, 2026

Rebased and refactored for demonstration in #16, will merge that one.

@aldum aldum closed this May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants