Bug 124088 - Propose AutoText name and shortcut based on selected text
Summary: Propose AutoText name and shortcut based on selected text
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Andreas Heinisch
URL:
Whiteboard: target:7.6.0
Keywords:
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:


Attachments

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":

https://git.libreoffice.org/core/commit/fbabd959060655a77188447c9fc0112e0ab8474c

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:
https://wiki.documentfoundation.org/Testing_Daily_Builds

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