zsh:alias: Add duration that formats seconds

This commit is contained in:
2024-09-20 16:27:58 +02:00
parent c273c3ac52
commit 9d756c2748
2 changed files with 8 additions and 0 deletions

View File

@@ -268,6 +268,8 @@ augroup END
nnoremap <leader>utc ciw<C-r>=strftime("%F %T", @")<CR><Esc>
vnoremap <leader>utc <Cmd>s/\v(^\|[^0-9])\zs[0-9]{10}\ze([^0-9]\|$)/\=strftime("%F %T",submatch(0))/g<CR>
" TODO: <leader>sec that uses the `duration` alias from zsh
" Relax mappings that jump to opening braces on first column: Just make sure
" they are on an unindented line. This is useful for files that use a different
" coding style guide than the kernel and similar.