This is still a bit WIP in the sense that documentation and other fluff is missing, but it at least seems complete feature-wise. This should now be ready to review. Since someone asked me whether I could implement this, I figured it was best to open this to "public testing" as soon as possible.
Commit Summary
X.U.Run: Add list, saveExcursion
X.U.Run: Don't use elispFun in progn
This is already taken care of by execute and eval, so forcing it in progn only hampers composability.
X.P.OrgMode: Add mkOrgCfg
This ensures that we always immediately expand the file path upon constructing an OrgMode record. We thus do not have to do this in mkOrgPrompt anymore.
X.P.OrgMode: Return "exitCode" mkOrgPrompt
More formally, return whether the user cancelled the prompt or not. This is useful in case we want to do things only after a "successful" input.
X.P.OrgMode: Add orgPromptRefile[To]
Add orgPromptRefile and orgPromptRefileTo in order to refile entries after insertion.
[x] I've considered how to best test these changes (property, unit,
manually, ...) and concluded: tested manually; seems to work. Probably best to write some property tests for the file parsing at some point in the future.
Description
This is still a bit WIP in the sense that documentation and other fluff is missing, but it at least seems complete feature-wise.This should now be ready to review. Since someone asked me whether I could implement this, I figured it was best to open this to "public testing" as soon as possible.Commit Summary
X.U.Run: Add list, saveExcursion
X.U.Run: Don't use elispFun in progn
This is already taken care of by execute and eval, so forcing it in progn only hampers composability.
X.P.OrgMode: Add mkOrgCfg
This ensures that we always immediately expand the file path upon constructing an
OrgMode
record. We thus do not have to do this inmkOrgPrompt
anymore.X.P.OrgMode: Return "exitCode" mkOrgPrompt
More formally, return whether the user cancelled the prompt or not. This is useful in case we want to do things only after a "successful" input.
X.P.OrgMode: Add orgPromptRefile[To]
Add orgPromptRefile and orgPromptRefileTo in order to refile entries after insertion.
Checklist
[x] I've read CONTRIBUTING.md
[x] I've considered how to best test these changes (property, unit, manually, ...) and concluded: tested manually; seems to work. Probably best to write some property tests for the file parsing at some point in the future.
[x] I updated the
CHANGES.md
file