Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def select-fenced-block \
- -docstring "Select the contents of a markdown fenced code block" %{
- evaluate-commands -draft %sh{
- pattern='```[^\s]+\n,```\n<ret>'
- echo "echo -debug \"Pattern: ${pattern}\""
- echo "exec \"[c${pattern}\""
- echo "exec \"]c${pattern}\""
- echo "exec -save-regs \"dquote\" \"y\""
- # Testing!
- echo "echo -debug \"START\""
- echo "echo -debug \"${kak_main_reg_dquote}\""
- echo "echo -debug \"END\""
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement