hyperbole-users
[Top][All Lists]
Advanced

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

Re: Hyperbole for UUID


From: Robert Weiner
Subject: Re: Hyperbole for UUID
Date: Sat, 15 Oct 2022 18:52:16 -0400

Hi Jean:

Yes, UUID linking is a good idea that we are just starting to work with in Hyperbole.  We are developing a note-oriented subsystem atop HyRolo that will include UUIDs in each note, just as the Koutliner includes local idstamps in each cell today.

Of course, as you note, UUIDs can be useful as implicit link buttons that lookup database keys and retrieve associated values and creating your own implicit button types is a fine way to approach that.  In the future, there will be Hyperbole functions that work with UUIDs that you will be able to leverage as well.

With regard to defil-defined button types flashing when activated, this is a feature that was left out.  I have added it into the latest git master tip which you can access as an Emacs package tomorrow from the elpa-devel package archives (unreleased packages under development).

And for highlighting such buttons, this is a feature yet to be added that we will add to the feature request/todo list.

-- Bob

On Sat, Oct 15, 2022 at 8:53 AM Mats Lidell <mats.lidell@lidells.se> wrote:
Hi Jean,

> Jean Louis writes:
> I would like to have Hyperbole acting on UUIDs. Best would be to have
> implicit button, and I found way to do it.
[...]
> Hyperbole makes the UUID generally accessible in any text.

Yes. UUIDs are easy to identify in any text and are good candidates for an implicit button. To make use of them you need to do something like you have done by putting a meaning to them in your environment. Not sure if it makes sense to put some extra support for that in Hyperbole since you need to be on the elisp level to use that anyway, but interesting. Thanks for sharing.

> How to make defil for UUID?

defil needs a start and stop pattern so could look something like this:

    (defil link-to-uuid "((uuid:" "))" ".*" #'my-do-something-with-uuid)

Using "((uuid:" as start pattern and using a function as LINK-EXPR that will get the uuid to work with. So a link could look like this:

    ((uuid:850df3e0-91be-4871-b8ef-b9e62be4c843))

> I also wish to have hyperlink flashing or highlighting, how to do that?

Hmm... that is strange. Implicit buttons defined by a defib should flash I think. What are your settings for hproperty:but-flash-time-seconds and hproperty:flash-face?

Yours
--
%% Mats


reply via email to

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