File Editor: Support Native Copy/Paste in Companion App on Mobile Devices

In recent years, the YAML editors for things like Automations, Scripts, even the template page under Developer Tools have implemented support for native select, cut, copy and paste on mobile devices (at least on Android) yet the File Editor add-on has not. It seems odd that it hasn’t since the add-on supports native cut/paste/etc. on desktop devices in browser.

On my phone, I can select text in the file editor in an almost native way but then the small menu with three dots has to be picked to do anything with the selected text. As I have a condition called essential tremors it is nearly impossible for me to pick that three-dot menu and even when my hands are pretty steady it is still not something I’ve had much success doing. In contrast, I can easily cut/paste/etc. on my phone in the other YAML editors that support those features natively.

Overall, the companion app is incredibly easy to use, even for development activities, but for this one issue.

Illustrative screenshots:


Selecting text in File Editor


The copy paste menu in File Editor


Copy paste feature in Automation yaml editor

For anyone else who edits using the File Editor on Android, I just discovered that the Google Keyboard provides a custom select/copy/paste feature that can help unless/until this feature request is fulfilled.

Pressing the grid icon at top left of keyboard shows a set of alternative keyboards. Pick the one called Text Editing.

You can then use this keyboard’s arrows and function buttons for moving around, selecting, copy, paste, etc.