Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete line action, plus undo implemented for various commands #180

Merged
merged 64 commits into from
Jun 1, 2024

Conversation

machinewrapped
Copy link
Owner

  • Added delete line command, with an undo option.
  • Implemented undo stack.
  • Added support for multiple viewmodel updates in a command.
  • Fixed the viewmodel updates for several commands.
  • Implemented undo for several commands.
  • Use queued connections as much as possible to reduce deadlock danger

... I more or less trust the app not to mess up numbering now, so it shouldn't need forcing correct too often (can always reload the project)
+ selective line reparse and test fix
+ save minimal undo data
Reparse translation doesn't go well if the line numbers change
Note: this also implies that we can never implement line split
It may be inefficient but better than being surprising
@machinewrapped
Copy link
Owner Author

  • Added delete line command, with an undo option.
  • Implemented undo stack.
  • Added support for multiple viewmodel updates in a command.
  • Fixed the viewmodel updates for several commands.
  • Implemented undo for several commands.
  • Use queued connections as much as possible to reduce deadlock danger
  • Prevent renumbering of lines except when writing translated subs, so that reparse translation doesn't overwrite the wrong lines
  • Unit tests for all commands that support undo

@machinewrapped machinewrapped merged commit c06731d into main Jun 1, 2024
@machinewrapped machinewrapped deleted the delete-line branch June 1, 2024 10:39
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.

1 participant