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

feat: operation transactions #631

Open
1 task done
DarkKronicle opened this issue Feb 5, 2024 · 0 comments
Open
1 task done

feat: operation transactions #631

DarkKronicle opened this issue Feb 5, 2024 · 0 comments
Labels
feature New feature request

Comments

@DarkKronicle
Copy link

DarkKronicle commented Feb 5, 2024

Is your feature request related to a problem? Please describe

This feature would allow the ability to queue certain operations on a stack, and then execute them consecutively. This would be implement undo for file operations. This would also add security for larger operations. My idea for this is similar to SQL transactions.

I see this mainly useful for moving/interacting with a large amount of files. Sometimes I accidentally move to the wrong folder, or I copy the wrong file from different harddrives.

Will you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

Allow the user to start a transaction with a keybinding, and then all operations from then on will be queued. At any time the user can bail out, or undo an operation. Once they are done, they can commit their changes and then all the actions will be taken.

On commit, the integrity and validity of the operations can be checked, to make sure nothing unexpected happens.

Describe alternatives you've considered

This would probably be the easiest way to implement undoing. I don't know how feasible this is to implement with the current task system, and would require some way to interact with plugins. I'd definitely being willing to write a PR if I could get some direction on how this should be implemented and if this would be a welcome feature.

Additional context

#404

@DarkKronicle DarkKronicle added the feature New feature request label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

1 participant