Giter Club home page Giter Club logo

config-editor-card's People

Contributors

htmltiger avatar junkfix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

config-editor-card's Issues

Compatibility ?

The current update has the following warning: "Not compatible with 2023.3"
Does this mean:
a) 2023.3.0
b) 2023.3.x
c) 2023.3 and all later versions

?

Current version of HA is 2023.4.1 Will it work?

ENHANCEMENT - Save and Search

2 features I was looking for today, and thought of sharing with you:

  • Search/Replace option

  • when changing the current editing file, confirm to save changes (if any only to avoid confusion). Autosave on mobile devices could be risky as changes might be made unintentionally while scrolling.

Installed using HACS; shows the files but can only ENTER, not type

I installed this and was able to open a config file. It displays the contents, but I cannot change a thing.
What I can do is add some empty lines by pressing enter, I can search for a file to edit, create a new one by selecting blank, and even save a file. But as soon as I enter some text, the show stops. I discovered this only applies to Safari..

ENHANCEMENT - Themes/font sizes

I have recently begun using the config editor card and find it both quicker and more convenient than the editor add-in. I have two related suggestions for new features. The first would be the ability to change the font size (it is a bit too small for me, but everyone's different). The second would be some provision for themes, as in the editor add-in, VSCode, and other programmer editors.

Unable to edit in Safari

Accessing my home assistant on a mac using Safari and am unable to edit and YAML files. It does pull them up and I am able to see them, but attempting to edit doesn't do anything (space seems to page down). It is working fine with Chrome on the same machine. Anything else I need to do for Safari?

Since v3, keeps failing to load

worked once then has failed since - just says "LIST LOADING"

  • installed by HACS on docker installation - subfolder has usual 3 files
  • configuration.yaml has config_editor:

User rights change for edited yaml file

This is wonderful integration, very useful for me, especially since I do not need to expose any special ports to edit any YAML file. I am using Docker on synology. The only issue I found is that once I save a YAML file, the user rights of that file are changed to root/root, which does not allow me to edit it back in VSCode, as it requires 1000/1000 user set on it.

How to add to sidebar

I have apparently managed to install ;

  1. Integrations
    image
    and
  2. Frontend
    image

But how do I add an icon to the sidebar to launch the editor?
The docs says:
image
But "create a new tab" is not a valid option under Configuration > Dashboards > + Add dashboard Instead, it requires a URL.
What URL should be added here?
type: custom:config-editor-card is not a valid URL syntax.

Please help.
(All my systems are updated to the latest version, including HA, HACS and the config-editor itself.)

Editor does still not work in Safari

The issue still exists, I hope you can fix this, because the plain text editor is only workaround for now. I would appreciate the color coding.

Seems like there was some hint to the issue:
#5 (comment)

Read/Write back in VSCode

I think I had raised it before, it was resolved in #1 , and now it came back with a different issue

if the file's permissions are set to the following, then I cannot use it back in VSCode
-rw-r--r-- 1 root root 7072 Apr 10 14:00 templates.yaml

The below examples work fine on both the card and VSCode

-rw-r--r-- 1 1000 1000 484 Dec 13 21:22 zones.yaml
-rw-rw-rw- 1 root root 556 Feb 11 17:04 panel_iframe.yaml
-rw-rw-rw- 1 1000 911 151 Sep 10 2021 hacs.json
-rw-rw-rw- 1 root root 165 Jan 15 01:03 mqtt.yaml
-rwxrwxrwx 1 1000 911 0 Oct 6 2021 groups.yaml

I not see config editor.

bad indentation of a mapping entry (1:36)

1 | type: custom:config-editor-cardtype: '' HA docker version 20240306.0

Fix location for filetype and plain text

Again, the file type drop down and plain text checkbox moves in accordance to the opened file code lines.

Could be more useful if fixed on top kr bottom regardless of file length

Screenshot_20220119-010255_Home Assistant
Screenshot_20220119-010219_Home Assistant
Screenshot_20220119-010235_Home Assistant
Screenshot_20220119-010340_Home Assistant

Ability to define file to open

Would be powerfull to be able to specify the file to open in the configuration for a specific instance..
for exaple:

type: custom:config-editor-card
options: 
  file: myfile.yaml            # File to load (optional)
  file-type: yaml              # Define file type, hides file type selector (optional)
  file-selector: false        # Hide file selector when false (optional)
  read-only: false            # Remove save button when false
  basic-editor: false        # Set basic editor mode

Security Issue

I installed this HACS Integration, and it works well, really apreciated. However I would rather that it did not pull my !secrets.yaml file into the UI without at least ensuring I am the admin (I don't think it does by quick scan of the code), or even better asking for a password to be set/entered. Is there a way I can accomplish this? Thanks

ENHANCEMENT Screen Orientation

When rotating mobile phone, the view doesn't expand to fill up the full orientation. It would be more convenient if it does specifically if a lpng code line to be seen

Screenshot_20220130-001316_Home Assistant

Enhancement - Files list location

You are doing really a great improvements on this wonderful card.

I just wanted to suggest if you can fix the location of files list at the bottom as it is moveable depending on the file content. Bit disturbing when opening files to move sight amd finger up and down and mid way.
Screenshot_20220111-135422_Home Assistant
Screenshot_20220111-135433_Home Assistant
Screenshot_20220111-135452_Home Assistant

Suggestion/Enchancement

Is is possible for the list of the files that are accessible to be static and to be refreshed at hawk?
By doing that you won't need to wait every time for the list to update.

Mobile view

When using on movile device (I have Samsung A52 5G), when ever I select the first of the line, the whole view is moved (shifted) to the left side by at least 3 to 3 columns which I cannot see if I select the correct position or not. I have to move the view to the right to check.

Bit annoying if trying to comment several lines by #

Folder selector only 1 level deep

I do have quite a lot of automations, and decided to split them apart. The config-editor-card becomes very handy, because the build-in editor doesn't support splitting the automation files. However, I discovered that I could not see all of my automations because I have a folder structure that is 3 levels deep.. That would not be a problem if I could configure the 'root' folder for the config-editor-card. Would it be possible to have such a feature?

Yaml files in appdaemon not showing

Hey, really nice feature helped me a lot. From the readme of the repo I understand that I should be able to edit all the .yaml files including those in subfolders, any idea why apps.yaml from appdaemon subfolder is not showing up in the list? Is this intended or a limitation?

Full screen width

Is there a way that the config edit is wider so that it can use my whole window width?
See below

image

cannot type using Safari 15.2

I can edit file in the sense of deleting lines and pressing return. Typing letters is not working.
Using Edge everything works as expected.
I am using MacOS BigSur as the underlying platform.

Installation Issue

I have successfully installed through hacs the config editor but after I add it in my configuration.yaml the config_editor line I am getting an error saying
Integration error: config_editor - Integration 'config_editor' not found.

Any thoughts?

Waring after upgrade to home assistant 2024.03

After the upgrade to Home Assistant 2024.3 I am getting the following:

Detected that custom integration 'config_editor' accesses hass.components.websocket_api. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from websocket_api directly at custom_components/config_editor/init.py, line 12: hass.components.websocket_api.async_register_command(websocket_create), please create a bug report at https://github.com/htmltiger/config-editor/issues

Ability to list hidden files

Is there a way to view hidden files/search in hidden folders like .storage etc? If not, would it be possible to allow for this (maybe as a tickbox option to do it for those who don't want to see those files?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.