Yes, there are many code editors out there. You mean by means of opening config files via samba…?
yes through sftp (ssh) or git using the droidedit pro version you can access yr local config remotely
I use QuickEdit and it works extremely well but I am taking about in the app or webview itself.
It is not quite perfect solution as it is not aware of HA services, entities, etc. and yaml functions, like ‘File editor’ and ‘Visual Studio Code’ add-ons are. This is just a workaround
I would agree that ‘File editor’ and ‘Visual Studio Code’ could be improved for use on mobile devices. However, I also know that this is something “extra” and not HA per se
Those add-ons are not HA but the code editors in the webview are and that’s my WTH, they suffer the same issue as all editors do in a webview on mobile, and to that I say WTH.
I don’t tend you use the code editors (such as editing Lovelace views, etc.) on mobile, but I do sometimes want to test out templates in the Developer Tools on mobile and the editor there is just as bad.
The thing I hate is not being able to easily delete multiple lines. Selecting all and pressing backspace does nothing. Holding down backspace will only allow you to delete a single line at a time as it doesn’t wrap onto the previous line. This is particularly bad for the template editor, as the first thing I usually want to do is delete the default example template.
I wrote up an issue a year ago about this. It’s CodeMirror and it’s a pile of poop on mobile devices. They (CodeMirror people) claim they are working on it, but it seems like it’s taking forever. So unless we move away from CodeMirror, we’ll be having these issues for some time it seems.
Underlying engine for VSCode:
https://microsoft.github.io/monaco-editor/
… and nope, that still goofs up on my Android tablet.
I have this issue every time I try to use the dev tools on mobile. The states and services tools are much less useful when I can’t copy and paste.
+1 I tried it a couple of times on an iPhone, gave up after a few minutes, even small edits (try copy pasting) are not working well at this moment.
Granted, I would use this only for very minor edits, not completely new stuff.
Any development with this issue? It’s really annoying I cannot tune my smart devices from the bath tube on my ipad
Yes! This was fixed for me on Android a couple releases ago, when the updated to code mirror 6. What release are you on and what device so you use?
I saw I said iPad, I saw a PR to fix an issue with safari but if you use Chrome or Firefox it works!
It does not work in my chrome, nor in the HA app. I have HA updated completely.
I’m sorry I don’t use iOS but it works perfectly for my on my Google Pixel4XL
Still having this issue on iOS for some reason. Can’t even copy and paste the whole text instead of typing it out. Any solutions?
The only solution, as mentioned before in this thread, is to wait for code mirror (An external library, not-managed by Home Assistant) to build in the functionality.
It’s not the best solution but it helps get the job done. I do most (90%) of my editing on my iPhone (which is by far the slowest way to edit yaml). I use an app called ‘paste keyboard’. I copy code and paste it into paste keyboard, make the edits I want and then using paste keyboard as the phones keyboard in home assistant app you can paste it in. You just have to toggle from paste keyboard and the standard keyboard to get stuff done. Still not the best solution but way better than typing a big chunk of code.
There are some fixes coming soon that I tested locally, they seem to stop the bug where the cursor jumps to the beginning of the block on every edit.