[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Use prefix arg to control scope of org-narrow-to-subtree.
From: |
Karl Fogel |
Subject: |
[PATCH] Use prefix arg to control scope of org-narrow-to-subtree. |
Date: |
Sun, 01 Dec 2019 02:45:45 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
This is the enhancement to `org-narrow-to-subtree' that I suggested back in May
[1].
It allows you to choose what level subtree to narrow to. There are two ways to
specify the subtree: use repeated C-u's to select "upward" from the current
subtree, or use a direct numeric prefix arg to specify the subtree "downward"
from level 1. (This is a somewhat unusual prefix argument usage, but it's
useful to be able to choose from either direction, and the convenience of using
C-u to select upward is quite enormous -- I expect it to be the common case,
and it's pretty much the only way I use the feature.)
The prefix arg is optional, of course: if you don't pass it, then
`org-narrow-to-subtree' behaves the same way it has always behaved.
Best regards,
-Karl
[1] https://lists.gnu.org/archive/html/emacs-orgmode/2019-05/msg00225.html
0001-Use-prefix-arg-to-narrow-to-a-specific-subtree.patch
Description: Text Data