fhem and nano (text editor) issue

Begonnen von gevard, 29 Dezember 2018, 21:23:15

Vorheriges Thema - Nächstes Thema

gevard

Hello everyone

Just wanted to inform you that there is an issue with the use of nano as a text editor.
Some ZWAVE attributes in the fhem.cfg file are too long to be handled by that text editor.
The line are truncated and the last parameter are lost and replaced by a "$" symbol.

This is really annoying, and I think fhem should split the line that contain too much caracters.
Hope it help.


rudolfkoenig

If you know what you are doing (i.e. editing fhem.cfg), then you should use an editor, which deserves its name, nano obviously doesnt.
For everybody else please do not edit fhem.cfg directly, but only through FHEMWEB or the telnet interface.

SlrG

AFAIK nano doesn't wrap long lines by default if they exeed the visible area. But it doesn't truncate them either. You just have to scroll right and you will get to see the rest of the line and your missing parameters.

While @rudolfkoenig is absolutely right in his recommendation to use FHEMWEB to edit the fhem.cfg, nano IMHO is a capable text editor and not responsible for this "issue".