shortcut cmdwin hjkl, sh add generic extract func