Bug 156404 - No hotkey to apply cloned formatting
Summary: No hotkey to apply cloned formatting
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 157719 (view as bug list)
Depends on:
Blocks: UNO-Command-New Clone-Formatting
  Show dependency treegraph
 
Reported: 2023-07-20 19:04 UTC by Sergii Pylypenko
Modified: 2023-11-17 08:04 UTC (History)
5 users (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 Sergii Pylypenko 2023-07-20 19:04:05 UTC
I can set a hotkey to Clone Formatting action (a paintbrush button).
But there is no possibility to set a hotkey to apply cloned formatting.
Pressing the same hotkey again simply cancels Clone Formatting action instead of applying the formatting to a different paragraph.
The only way to apply cloned formatting is to click left mouse button. Enter, Space, or other keyboard keys do not apply cloned formatting.
In the old version of LibreOffice there was a possibility to paste formatting only using Ctrl-Shift-V key combination, but currently it can only paste text, with or without formatting, there is no option to paste formatting without text.

For now I am using a hotkey to apply a specific paragraph style.
Comment 1 Dieter 2023-08-04 16:41:43 UTC
I confirm it with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 42f0422d19c4d0a2fb09654fb6d1d92e50f6dd5c
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Double click on clone formatting icon alters behaviour, but there is no possibility to get this behaviour with a short key.

But I would see it as enhancement request
=> NEW, but let's check it by the design-team
Comment 2 Heiko Tietze 2023-08-15 11:43:15 UTC
But this is the workflow: enable, select, apply, (toggle off - clone can become sticky for multi-applications via double-click). If you mean this sticky cloning I would not implement a special command / shortcut for it.
Comment 3 Heiko Tietze 2023-08-24 12:27:30 UTC
The topic was on the agenda of the design meeting but didn't receive further input.

The command .uno:FormatPaintbrush does not suit a keyboard-only workflow, and using a shortcut is pointless. So we should remove that possibility to customize it.
Comment 4 Commit Notification 2023-08-25 09:11:00 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/05f7ab11bec87b706f598ae4e81d1f20cd4f1312

Resolves tdf#156404 - No hotkey to apply cloned formatting

It will be available in 24.2.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.
Comment 5 Heiko Tietze 2023-08-25 09:11:46 UTC
The patch disallows the customization of a shortcut but is not effective due to bug 147411.
Comment 6 Heiko Tietze 2023-10-20 08:25:16 UTC
*** Bug 157719 has been marked as a duplicate of this bug. ***
Comment 7 Amin Irgaliev 2023-10-20 15:02:42 UTC
If it is forbidden to implement hotkeys for a brush, then maybe there is some other way? Perhaps support for copying only styles could be added  to the "Paste Special" selector by writing a new method that would do this.

To use the brush you need a mouse, and some users find it more convenient and faster to use only the keyboard and hotkeys. Microsoft Office Word implements copying styles using "ctrl+shift+v", but LO does not have such a function.
Comment 8 Dieter 2023-11-05 12:45:42 UTC
VERIFIED with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c0c8cffd3541e3cd616c96791b04e7ebf2b2ed03
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

It's no longer possible to assign shortcut to Clone Formatting command

Heiko, thanks for fixing it!
Comment 9 Heiko Tietze 2023-11-17 08:04:26 UTC
We discussed the topic again in the design meeting.

Clone formatting is a complex interaction with single click to apply once and double to apply until escaped (and ctrl+click for PS). This complexity cannot be done with a single UNO command but could if we create something new. Microsoft Word allows to copy per ctrl+shift+C and paste the formatting from this buffer at any time later per ctrl+shift+V. While this makes a lot of sense we do have Repeat (shift+ctrl+Y), which applies the formatting again. Although it does not work if some other action is done in between.

Reopening the ticket.