Only elide label of hyperlink inset if target and not name given

Richard Kimberly Heck rikiheck at lyx.org
Tue Mar 24 15:36:42 UTC 2020


On 3/24/20 7:35 AM, Pavel Sanda wrote:
> On Mon, Mar 23, 2020 at 12:36:58PM +0100, Pavel Sanda wrote:
>> On Sun, Mar 22, 2020 at 08:26:47PM -0400, Richard Kimberly Heck wrote:
>>> On 3/22/20 5:51 PM, Pavel Sanda wrote:
>>>> On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland wrote:
>>>>> When I add a URL as a hyperlink inset and give it a name, I normally would
>>>>> like to see the full text of the name in the label. This way, it can to a
>>>>> greater extent be part of the surrounding text.
>>>>>
>>>>> The patch is simple; it only moves the eliding part up where its only the
>>>>> target that is set, not the name:
>>>> Makes sense. I can commit later if there are no objections. 
>>> Seems sensible to me, too.
>> Actually I am not sure anymore about arbitrary lengths. If someone hyperlinks whole
>> paragraph, do we really want inset overlaping width of lyx window?
>> Wouldn't be enough to make restriction of 'name' case just somewhat longer?
>> (Say 80 chars approximating single line in the output.) 
> Like this.

It might help some to replace "Hyperlink:" with 🔗, the Unicode
hyperlink character = U+1F517. Though I'm not sure how many fonts have that.

Riki




More information about the lyx-devel mailing list