You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on overhauling a package that uses a git repo to store every change you make in all buffers, so that you can restore your buffer to any previous state at any time (link: https://github.com/walseb/git-backup-ivy).
One major issue I'm facing is that whenever you revert to a previous state, the entire buffer gets overwritten and so all markers get messed up - the same issue this package solves for formatters.
Is there any way I could use this package to solve that problem?
I'd need a function that takes a string and changes the current buffer into that string, maintaining the markers as best it can. After reading the description of this package, it seems that it does exactly that, as well as running the actual formatter processes.
Thank you!
The text was updated successfully, but these errors were encountered:
You can probably use Apheleia for that. This would be, to my knowledge, the first usage of Apheleia as a library rather than a user-facing application. Bind apheleia-formatters to define an Elisp function formatter and then invoke apheleia-format-buffer. The Elisp function formatter can overwrite the buffer contents with your desired string. If that works, you can provide feedback on the usability from a library perspective and we can consider improvements to the interface.
Hello!
I'm working on overhauling a package that uses a git repo to store every change you make in all buffers, so that you can restore your buffer to any previous state at any time (link: https://github.com/walseb/git-backup-ivy).
One major issue I'm facing is that whenever you revert to a previous state, the entire buffer gets overwritten and so all markers get messed up - the same issue this package solves for formatters.
Is there any way I could use this package to solve that problem?
I'd need a function that takes a string and changes the current buffer into that string, maintaining the markers as best it can. After reading the description of this package, it seems that it does exactly that, as well as running the actual formatter processes.
Thank you!
The text was updated successfully, but these errors were encountered: