xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
584 stars 274 forks source link

X.P.OrgMode: Add orgPromptRefile[To] #760

Closed slotThe closed 1 year ago

slotThe commented 1 year ago

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 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.

Checklist