Support for narrowing and widening ((emacs)Narrowing) a buffer is supported. Mode specific narrowing behavior is supported for Org and prog-mode
derived buffers.
This menu can be modified ((transient)Modifying Existing Transients) to support narrowing in other modes, particularly those that are packaged with Emacs. For example, if one wanted narrowing support for Markdown (markdown-mode), the following initialization code can be used.
(transient-append-suffix 'casual-editkit-narrow-tmenu '(0 0) ["Markdown" :if (lambda () (derived-mode-p 'markdown-mode)) ("s" "Subtree" markdown-narrow-to-subtree) ("b" "Block" markdown-narrow-to-block) ("p" "Page" markdown-narrow-to-page)])