hyperbole-users
[Top][All Lists]
Advanced

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

Re: [Hyperbole-users] Thoughts on how to implement a TODO system on top


From: Robert Weiner
Subject: Re: [Hyperbole-users] Thoughts on how to implement a TODO system on top of Koutliner
Date: Sat, 13 Aug 2016 09:37:31 -0400

On Fri, Aug 12, 2016 at 4:40 PM, Nikolai Weibull <address@hidden> wrote:
On Thu, Aug 4, 2016 at 3:26 PM, Robert Weiner <address@hidden> wrote:
>
> On Thu, Aug 4, 2016 at 8:59 AM, Robert Weiner <address@hidden> wrote:
>>
>> For now, I would create a command that you can bind to a key and invoke
>> that when you want the highlighting applied unless you want to try using
>> something like pre-command-hook.
>
> I meant post-command-hook.  We could also look at adding pre- and post-
> hooks to the Koutliner knode:set-attr and knode:remove-attr functions.

Hi!

Sorry for not replying earlier.  I’ve been on vacation.

I suppose one could advice the functions as well.  The problem,
however, is that there doesn’t seem to be a way to get the location of
a knode/kcell from the knode/kcell itself.

​Because this is part of the kview of the outline.  Use kcell-view:label and kcell-view:level which take a buffer position and return the appropriate information.

 
  Also,
kfile:insert-attributes-v3 would have to make sure that such a
function where this information was available was called, to make sure
that initialization was correctly performed.

​If the info is stored as an attribute, this will happen.

Bob


reply via email to

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