working on hledger

This commit is contained in:
Ingolf Wagner 2021-04-18 09:45:49 +02:00
parent 5f97d1414b
commit fcb6a5b05f
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 13 additions and 4 deletions

View file

@ -44,7 +44,8 @@ let
tags = [ "+junk" "-unread" "-inbox" ]; tags = [ "+junk" "-unread" "-inbox" ];
} }
{ {
query = "from:space-left.org OR to:space-left.org OR subject:/\[space-left\]/"; query =
"from:space-left.org OR to:space-left.org OR subject:/[space-left]/";
tags = [ "+spaceleft" "+list" "+space-left" ]; tags = [ "+spaceleft" "+list" "+space-left" ];
} }
{ {

View file

@ -106,12 +106,18 @@ let
borrow = pkgs.writers.writeDashBin "borrow" # sh borrow = pkgs.writers.writeDashBin "borrow" # sh
'' ''
${pkgs.hledger-ui}/bin/hledger-ui -f ~/finance/hledger-borrow "$@" TERM=xterm-mono ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/hledger-borrow "$@"
''; '';
bank = pkgs.writers.writeDashBin "bank" # sh bank = pkgs.writers.writeDashBin "bank" # sh
'' ''
${pkgs.hledger-ui}/bin/hledger-ui -f ~/finance/hledger-bank "$@" TERM=xterm-mono ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/hledger/`date +%Y`.journal "$@"
'';
bank-old = year:
pkgs.writers.writeDashBin "bank-${year}" # sh
''
TERM=xterm-mono ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/hledger/${year}.journal "$@"
''; '';
irc = pkgs.writers.writeDashBin "irc" # sh irc = pkgs.writers.writeDashBin "irc" # sh
@ -164,7 +170,6 @@ in {
in [ in [
uget uget
#zettlr #zettlr
#(library.desktopFile zettlr { longName = "Zettlr"; }) #(library.desktopFile zettlr { longName = "Zettlr"; })
joplin joplin
@ -193,6 +198,9 @@ in {
}) })
bank bank
(bank-old "2021")
(bank-old "2020")
(bank-old "2019")
borrow borrow
irc irc