Bug 124088 - Propose AutoText name and shortcut based on selected text
Summary: Propose AutoText name and shortcut based on selected text
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: medium enhancement
Assignee: Andreas Heinisch
Whiteboard: target:7.6.0
Depends on:
Blocks: AutoText
  Show dependency treegraph
Reported: 2019-03-15 03:11 UTC by Aron Budea
Modified: 2023-01-11 07:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2019-03-15 03:11:09 UTC
The AutoText dialog doesn't have great usability (see bug 52607).
A small improvement would be if the dialog pre-filled tha name and shortcut based on the selected text.

Name could be the first X words from the first line, no longer than 20-25 characters, and shortcut could be what it'd automatically add if the user entered that name themselves.

Also, upon the first click into Name or shortcut fields, pre-select field content, then entering a custom name is zero extra steps.

I'm not sure how useful it'd be in the end, but I think it's a nice touch having something there by default, without adding any overhead for the user.
Comment 1 V Stuart Foote 2019-03-15 04:57:08 UTC
Reasonable, but maybe word bounds rather than fixed 20-25 chars.
Comment 2 Aron Budea 2019-03-15 10:34:42 UTC
Yep, that's what I meant by "first X words from the first line, no longer than 20-25 characters".
Comment 3 Andreas Heinisch 2023-01-08 11:38:11 UTC
Proposed patch: https://gerrit.libreoffice.org/c/core/+/145175

Maybe some prior testing is needed in order to implement any further improvements regarding this change. UI test still pending.
Comment 4 Commit Notification 2023-01-11 06:59:38 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":


tdf#124088 - Propose AutoText and shortcut name based on selected text

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.