hyperbole-users
[Top][All Lists]
Advanced

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

Hyperbole for UUID


From: Jean Louis
Subject: Hyperbole for UUID
Date: Sat, 15 Oct 2022 10:11:00 +0300

I use:  Editor:      GNU Emacs 29.0.50
        Hyperbole:   8.0.0
        Sys Type:    x86_64-pc-linux-gnu
        OS Type:     gnu/linux
        Window Sys:  x
        News Reader: Gnus v5.13
        Install:     elpa, 8.0.0

I would like to have Hyperbole acting on UUIDs. Best would be to have
implicit button, and I found way to do it.

But I could have also explicit one.

Complete guide to Universal Unique Identifiers (UUID) | UUIDTools.com:
https://www.uuidtools.com/what-is-uuid

RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace:
https://www.rfc-editor.org/rfc/rfc4122

(defib rcd-db-uuid ()
  "Jump to database people or hyperdocuments by UUID."
  (let ((uuid (thing-at-point 'uuid)))
    (hact 'rcd-db-uuid-link uuid)))

(defact rcd-db-uuid-link (uuid)
  "Open people or Hyperdocument object by UUID."
  (let ((people-id (cf-people-by-uuid uuid))
        (hyperdocument-id (hyperscope-by-uuid uuid)))
    (cond (people-id (cf-people-by-id people-id))
          (hyperdocument-id (hyperscope id))
          (t (rcd-message "Cannot find UUID: %s" uuid)))))

That is great, as now I can act on UUID, and just as UUID is
universal, that becomes universal link. I need not have separate link
for people, and separate link for hyperdocuments, it may be just one
link. 

850df3e0-91be-4871-b8ef-b9e62be4c843

In my database, all people have UUID and local ID. All Hyperscope
hyperdocuments have their UUID and local ID. Then other objects may
have UUIDs, so this serves to universal jump to database objects.

Like when I active above link, I get RWS information.

It opens the door to universal hyperlinking to database objects or
unification of different tables or types of objects so that they
may be universally referenced.

Link may look like this: 850df3e0-91be-4871-b8ef-b9e62be4c843

Then for Org mode I can make universal link that will open various
objects when necessary, like people, hyperdocuments, specific email
record, or accounting entry or similar.

Hyperbole makes the UUID generally accessible in any text.

How to make defil for UUID?

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

--
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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