refactorize command hooks
refactorize command hooks

jkonecny12/kakoune,occivink/kakoune,alexherbo2/kakoune,jjthrash/kakoune,alexherbo2/kakoune,ekie/kakoune,lenormf/kakoune,lenormf/kakoune,ekie/kakoune,mawww/kakoune,casimir/kakoune,jkonecny12/kakoune,Somasis/kakoune,danr/kakoune,occivink/kakoune,occivink/kakoune,Somasis/kakoune,mawww/kakoune,lenormf/kakoune,ekie/kakoune,alexherbo2/kakoune,ekie/kakoune,alexherbo2/kakoune,jjthrash/kakoune,flavius/kakoune,flavius/kakoune,lenormf/kakoune,Somasis/kakoune,jkonecny12/kakoune,Somasis/kakoune,danr/kakoune,mawww/kakoune,occivink/kakoune,flavius/kakoune,flavius/kakoune,casimir/kakoune,danr/kakoune,casimir/kakoune,danr/kakoune,jkonecny12/kakoune,mawww/kakoune,jjthrash/kakoune,casimir/kakoune,jjthrash/kakoune