Add more ledger keymaps
parent
5a12790717
commit
59092e12a2
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
TEMPDIR=$(mktemp -d)
|
||||
|
||||
git clone $1 $TEMPDIR
|
||||
|
||||
cd $TEMPDIR
|
||||
|
||||
nvim .
|
|
@ -2,7 +2,12 @@
|
|||
" - Ledger file plugin -
|
||||
" -----------------------------------------------------------------------------
|
||||
|
||||
let g:ledger_date_format = '%Y-%m-%d'
|
||||
|
||||
augroup ledgerconf
|
||||
autocmd!
|
||||
autocmd BufWritePre <buffer> LedgerAlignBuffer
|
||||
augroup END
|
||||
|
||||
nnoremap <buffer> <leader>lx <cmd>call ledger#entry()<CR>
|
||||
noremap <silent><buffer> <leader>lc <cmd>call ledger#transaction_state_toggle(line('.'), ' *?!')<CR>
|
||||
|
|
Loading…
Reference in New Issue