diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2016-02-17 15:28:25 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2016-02-17 15:28:25 +0100 |
| commit | 04774c1a12bf923ca39a69607c35df2c5350b985 (patch) | |
| tree | 1a1425efe6a887177ad87b16b3fee5748b230094 /functions/__mark_print_block.fish | |
| parent | caaceba9c4fa4c33843760256c4e147d8f01ae5a (diff) | |
| download | mark-04774c1a12bf923ca39a69607c35df2c5350b985.tar.gz mark-04774c1a12bf923ca39a69607c35df2c5350b985.zip | |
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
Diffstat (limited to 'functions/__mark_print_block.fish')
| -rw-r--r-- | functions/__mark_print_block.fish | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
