You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nano is my preferred editor I am also using it out of a habit for editing home assistant config files.
Unfortunately, the addon does not keep a custom .nanorc file persistently.
Since the standard config of nano in the addon is not really useful for editing homeassistant yaml files - especially missing options like set tabsize 2 and set tabstospaces - editing config files with nano is quite cumbersome.
Expected behavior
.nanorc to be persistent between restarts.
Actual behavior
.nanorc is removed on restart
Steps to reproduce
1 Open a terminal instance
2 Create ~/.nanorc (write from scratch or copying via scp)
3 Happily use nano
4 Restart addon
5 ~/.nanorc has disappeared sadly
Proposed changes
Maybe it would be possible to allow users to store customizations like .nanorc in addon_configs/{assh_foldername}/ and include them at startup.
Remark
If there is another trusted server in the network at hand this can be solved via the workaround I use at the moment:
Simply adding a init-command like scp [email protected]:~/.nanorc ~ after adding the ssh certificates to the other server once.
But this is not always possible i guess.
This discussion was converted from issue #674 on January 10, 2024 20:27.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem/Motivation
nano is my preferred editor I am also using it out of a habit for editing home assistant config files.
Unfortunately, the addon does not keep a custom .nanorc file persistently.
Since the standard config of nano in the addon is not really useful for editing homeassistant yaml files - especially missing options like
set tabsize 2
andset tabstospaces
- editing config files with nano is quite cumbersome.Expected behavior
.nanorc
to be persistent between restarts.Actual behavior
.nanorc
is removed on restartSteps to reproduce
1 Open a terminal instance
2 Create
~/.nanorc
(write from scratch or copying via scp)3 Happily use nano
4 Restart addon
5
~/.nanorc
has disappeared sadlyProposed changes
Maybe it would be possible to allow users to store customizations like
.nanorc
inaddon_configs/{assh_foldername}/
and include them at startup.Remark
If there is another trusted server in the network at hand this can be solved via the workaround I use at the moment:
Simply adding a init-command like
scp [email protected]:~/.nanorc ~
after adding the ssh certificates to the other server once.But this is not always possible i guess.
Beta Was this translation helpful? Give feedback.
All reactions