Gboard’s clipboard could soon preserve text formatting


gboard app with clipboard open on vivo x300 ultra

Akshay Gangwar / Android Authority

Add Android Authority on Google:

TL;DR

  • Gboard is working on a new toolbar shortcut that lets users paste text while retaining original formatting, including bold, italics, and others.
  • This toolbar option appears to be limited to the most recently copied text, and won’t apply to other items on the clipboard.
  • Android already offers a way to do this, but requires users to long-press the text field and manually pick an option from the context menu.

Gboard is comfortably among the best keyboards for Android phones, and it could soon gain an upgraded paste experience for copied text. Right now, Gboard’s toolbar automatically pulls up the clipboard shortcut so you can paste text instantly. However, there’s no option to preserve the original text formatting, with the keyboard defaulting to plain text. It now looks like Gboard is working on changing this in a future update.

APK teardown

This reporting is based on work-in-progress code. These features may not ship.

We dug into version 18.8.0.10 beta of Gboard to activate an additional toolbar shortcut alongside the existing one, with first-time users seeing an introduction message that reads “Paste while preserving all formatting.”

Tapping the original clipboard shortcut on the toolbar retains all text formatting while pasting, whereas the second option, denoted by what appears to be the letter T with a backslash overlaid on top of it, removes all formatting from text.

This suggests Gboard wants to offer both options side by side, which would be a logical move. The second screenshot above illustrates how the existing clipboard button retains all formatting when pasting text, while the other removes it.

Android already offers a way to paste text while retaining bold, italics, and other elements through the context menu. You can trigger it by long-pressing the text field, which displays options such as Paste, Select all, and Paste as plain text. So this isn’t exactly a groundbreaking inclusion, although it cuts a couple of steps from the process.

As for its limitations, we found that preserving text formatting is only possible for the most recently copied text, and it won’t work on older clipboard items, which will continue to paste as plain text. It’s unclear whether this will change when (or if) Gboard rolls out this toolbar option widely.

We hope this new shortcut is implemented soon, as it would offer a convenient alternative to using Android’s built-in paste option.



Source link