In my org-agenda files, todos have a property called SWAY, which is an integer and it can be between 1 and 100 000. How can I normalize them to be between 1 and 100?;)
Normalizing would be a uniform distribution with a smaller range.
The reason I want this is because when I add higher priority tasks all the time, the highest priority task, which has the highest SWAY value become really large, so this would be a maintenance function that could be run each month. This would still keep the relative priority between todos, or close enough. w
org-map-entries
with anagenda
scope and aSWAY
property search will find all the relevant entries. All you need to do is write a function that will do the normalization for a single entry and then pass the function toorg-map-entries
.