From 04774c1a12bf923ca39a69607c35df2c5350b985 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 17 Feb 2016 15:28:25 +0100 Subject: add function to plot a month + __mark_print_block: + function to print a specified block from the store file to stdout + arguments: block name, store location + __mark_print_month: + this functions use the output from cal and colors marked days + possible arguments: "-s=" store location, "-y= | -m=" year and month to print + if nothing is specified the current month is plotted --- functions/__mark_print_block.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 functions/__mark_print_block.fish (limited to 'functions/__mark_print_block.fish') diff --git a/functions/__mark_print_block.fish b/functions/__mark_print_block.fish new file mode 100644 index 0000000..761bcb5 --- /dev/null +++ b/functions/__mark_print_block.fish @@ -0,0 +1,5 @@ +function __mark_print_block -d "prints block from mark_store" -a block file + set c (string match -r "#$block#[^#]*" (echo (cat $file))) + set c (string replace "#$block#" "" $c) + echo (string trim $c) +end -- cgit v1.2.3