<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Autotext-like cross-reference insertion"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141859#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Autotext-like cross-reference insertion"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141859">bug 141859</a>
from <span class="vcard"><a class="email" href="mailto:eyalroz1@gmx.com" title="Eyal Rozenberg <eyalroz1@gmx.com>"> <span class="fn">Eyal Rozenberg</span></a>
</span></b>
<pre>(In reply to Heiko Tietze from <a href="show_bug.cgi?id=141859#c1">comment #1</a>)
<span class="quote">> "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. </span >
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.
<span class="quote">> 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.</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>