Add more ledger keymaps

pull/2/head
Ensar Sarajčić 2021-10-16 17:36:16 +02:00
parent 5a12790717
commit 59092e12a2
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/sh
TEMPDIR=$(mktemp -d)
git clone $1 $TEMPDIR
cd $TEMPDIR
nvim .

View File

@ -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>