features #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dikka/tag!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "paste-and-undo-redo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request introduces two major features: an undo/redo system for managing application state and Windows API integrations for clipboard and window positioning functionality. These changes enhance the application's usability by providing state management and platform-specific utilities.
Undo/Redo System (
src/undo_redo.zig):StateSnapshotstruct for managing application state snapshots, including methods for initialization, setting data, and checking emptiness.UndoStackwith configurable capacity, supporting operations likepush,pop, andclear.UndoRedoSystemstruct to manage undo and redo stacks, with methods for pushing snapshots, performing undo/redo operations, and clearing history.createSnapshotto simplify the creation of state snapshots.Windows API Integrations (
src/windows_api.zig):getClipboardTextandcopyToClipboardfor interacting with the clipboard.calculateDesiredWindowPositionto determine the best position for a window andpositionWindowto move a window to a specified position.