verb
verb copied to clipboard
verb-send-request-on-point doesn't correctly work for source blocks
verb-send-request-on-point
works for both - tree-structured and source-block approaches. But it doesn't seem to correctly detect the source block at point, when there are multiple within the same heading, i.e.,
* Testing requests :verb:
template https://api.thecatapi.com/v1
** subheading
#+begin_src verb :wrap src json :op send get-body
GET /breeds
#+end_src
#+begin_src verb :wrap src json :op send get-body
GET /sources
#+end_src
when the cursor is at the second source code, running
verb-send-request-on-point
should work for the second one, currently, it sends the request for the first source block. That basically makes problematic to keep multiple source blocks within the same heading.
verb-export-request-on-point-curl
, as it looks like, also has the same issue, it doesn't correctly detect the source block at point.