-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete for YAML editors #364
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This introduces a way to set page-local or widget-local variables to allow more complex scenarios in pages & custom widget development. Variables can be used using several methods: - the "variable" config parameter of oh-gauge (read-only), oh-input (new), oh-knob, oh-slider, oh-stepper, oh-toggle will accept a variable name and control it instead of sending commands to items if set. The "item" parameter can still be set to set the widget to the item's state, when the variable has no value. - the "vars" object available in expressions (for example `=vars.var1` will evaluate to the value of the variable `var1`. - the "variable" action allows to set an fixed or computed (using an expression) value to a variable. Variables set directly by widgets on a page will propagate to all components to the page, including personal widgets. However, variables set within a personal widget will be scoped to that personal widget only - except when there's already an inherited variable with the same name. oh-button & oh-link have a special parameter "clearVariable" which allows to unset a version when clicked, after performing the action. This is useful when "validating" a variable e.g. set a command to an item with the variable value then reset it. Allow oh-image to perform an action when clicked directly. Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Add some autocomplete ("hint" in CodeMirror jargon) logic to YAML editors for UI components and rules. Might be expanded to other entities in the future. Signed-off-by: Yannick Schaus <[email protected]>
Allow switching to run mode from Code tab in editors. More "aggressive" autocompletion (continue autocompleting after picking an entry, autocomplete after typing certain characters). Styling fixes in widget editor. Signed-off-by: Yannick Schaus <[email protected]>
Ensures the back button/gesture doesn't mess up navigation. Signed-off-by: Yannick Schaus <[email protected]>
Perform completions on chart, map, plan widgets Update media types according to AC discussions. Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
ghys
changed the title
[WIP] Autocomplete for YAML editors
Autocomplete for YAML editors
Oct 3, 2020
…widgets Closes openhab#340. Signed-off-by: Yannick Schaus <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add some autocomplete ("hint" in CodeMirror jargon) logic to YAML
editors for UI components and rules. Might be expanded to other entities
in the future.
Signed-off-by: Yannick Schaus [email protected]