emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PROPOSAL] Use prefix arg to control scope of org-narrow-to-subt


From: Nicolas Goaziou
Subject: Re: [O] [PROPOSAL] Use prefix arg to control scope of org-narrow-to-subtree.
Date: Thu, 25 Apr 2019 10:42:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Hello,

Karl Fogel <address@hidden> writes:

> My proposal is for each raw prefix arg (each `C-u' prefix) to expand
> the narrowing level outward/upward by one.  So in the above situation:

I suggest to use a numeric argument for that. M-1 for one level, M-2 for
two levels, maybe M-0 equivalent to current behaviour. C-u can be
a shortcut for M-1.

> If you offer too many `C-u's, such that the narrowing would be wider than the 
> current surrounding first-level subtree, then there are two possible ways we 
> could handle it:
>
> 1) Extra `C-u's are ignored -- just narrow to surrounding 1st-level subtree.
>
> 2) Throw an error.
>
> I prefer (1), because it would be the more useful behavior, even
> though (2) would be easier to implement (since `org-back-to-heading'
> already throws the error).  However, I'd welcome others' feedback on
> that question, or on any other aspect of this proposal.

1 sounds good.

I think it is a good idea.

Thank you.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]