I want to convert the timestamps in a .zsh_history
file to their readable equivalents.
Does query-replace-regex
or some other function provide the ability to replace the match with the value of a function like something like (format-time-string (match 1))
?
: 1568128379:0;cp -a ~/.zshrc.pre-oh-my-zsh ~/.zshrc
: 1568128381:0;exit
UPDATE:
See my solution to this particular problem - https://emacs.stackexchange.com/a/79254/15477