aboutsummaryrefslogtreecommitdiff
path: root/functions/__mark_print_block.fish
diff options
context:
space:
mode:
Diffstat (limited to 'functions/__mark_print_block.fish')
-rw-r--r--functions/__mark_print_block.fish5
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