federicotdn / verb

Organize and send HTTP requests from Emacs
https://melpa.org/#/verb
GNU General Public License v3.0
540 stars 20 forks source link

Support org-narrow-to-subtree #34

Closed ananthakumaran closed 3 years ago

ananthakumaran commented 3 years ago

It's useful to focus on a single request using C-x n s. But verb currently doesn't handle it properly, as it's not checking whether it's inside a narrowed region and ignoring values from the parent heading. This is typically handled by wrapping the operation with save-restriction/widen, similar to save-excursion.

(save-restriction
  (widen)
  (perform-action))
federicotdn commented 3 years ago

Fixed in https://github.com/federicotdn/verb/commit/f8252021af7e6980af6fb47d0c6af992316db12a. Please check if it works as it should! Thanks