[Libreoffice-ux-advise] [Bug 141859] Autotext-like cross-reference insertion

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 4 18:03:41 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141859

--- Comment #2 from Eyal Rozenberg <eyalroz1 at gmx.com> ---
(In reply to Heiko Tietze from comment #1)
> "B.1.5" could be anything, a heading, a figure caption, a bookmark...
> This reverse reference search would not work unless the term is very
> specific. 

Ok, fair point. Well, two options:

1. Unless the search string is unambiguous, don't create the reference.
Easy-peasy, and in real life, if you have a B.1.5 heading, you are unlikely to
have anything else with that exact number.

2. If multiple results match that string, open a context menu with the
different options. More robust, but more work.

The neat thing here is that option (1) is easily upgradeable to option (2) with
essentially nothing thrown away.

> Another shortcoming might be that you remember the chapter name
> "Foo" but not the number. And you want to insert the page number to this
> chapter.

Again, several options:

1. Just the number, no fancier search capability. Open the dialog if you like

2. Allow a slightly fuzzier match, i.e. try to match both the number and the
name; insert reference on exact match only, otherwise do nothing.

3. Allow a slightly fuzzier match, i.e. try to match both the number and the
name. If there are multiple matches, open a context menu to select from among
them.

4. Allow a very fuzzy match - substring, "sounds like" etc. If there are
multiple matches, open a context menu to select from among them.


And again, we could start with option (1) and upgrade later.

Notes:

* Continued typing could update the menu with the better-filtered search
results, so that you can type until there's a single match or no match.
* It might be a good idea to indicate a single match has been found rather than
no matches found.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list