From 59092e12a2c95a51351188f847db6422c799187c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sat, 16 Oct 2021 17:36:16 +0200 Subject: [PATCH] Add more ledger keymaps --- symlinks/bin/git-explore-local | 9 +++++++++ symlinks/config/nvim/after/ftplugin/ledger.vim | 5 +++++ 2 files changed, 14 insertions(+) create mode 100755 symlinks/bin/git-explore-local diff --git a/symlinks/bin/git-explore-local b/symlinks/bin/git-explore-local new file mode 100755 index 0000000..efbfdad --- /dev/null +++ b/symlinks/bin/git-explore-local @@ -0,0 +1,9 @@ +#!/bin/sh + +TEMPDIR=$(mktemp -d) + +git clone $1 $TEMPDIR + +cd $TEMPDIR + +nvim . diff --git a/symlinks/config/nvim/after/ftplugin/ledger.vim b/symlinks/config/nvim/after/ftplugin/ledger.vim index 569d7eb..06595d6 100644 --- a/symlinks/config/nvim/after/ftplugin/ledger.vim +++ b/symlinks/config/nvim/after/ftplugin/ledger.vim @@ -2,7 +2,12 @@ " - Ledger file plugin - " ----------------------------------------------------------------------------- +let g:ledger_date_format = '%Y-%m-%d' + augroup ledgerconf autocmd! autocmd BufWritePre LedgerAlignBuffer augroup END + +nnoremap lx call ledger#entry() +noremap lc call ledger#transaction_state_toggle(line('.'), ' *?!')