How to rename history item
To set a custom title (rename) for a history item you can press ⌘R or select Rename… from the Commands menu.
The item in the history list will be switched to the edit mode and you can type a new title. Press ↵ to save the changes or Esc to cancel.
The following video demonstrates the whole process: