mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
34489a2494
This commit adds the following: - Syntax builder scripts to make syntaxes easier to read and edit - Syntax highlight in single quote attributes - Syntax highlight for slot props - Basic syntax highlight for xpaths - Added `Switch Below` command This commit fixes the following: - Using `Switch Besides` or `Switch Below` does not open a new panel if one was already open - Fixed missing space in component's snippet indentation
31 lines
1.5 KiB
Markdown
31 lines
1.5 KiB
Markdown
# 🦉 Owl Vision 🕶️
|
|
|
|
Owl Vision is an extension for the amazing [Owl framework](https://github.com/odoo/owl) that complements your templates with beautiful colors and allows you to more easily navigate between components and templates.
|
|
|
|

|
|
|
|
This extension also adds:
|
|
- A basic component snippent.
|
|
- "Go to definition" providers for component tags in xml or in inline templates.
|
|
|
|
## Commands
|
|
|
|
* `Owl Vision: Find Template`:
|
|
- If the cursor is on a template name, finds the corresponding template.
|
|
- If the cursor is on a component, finds the template of the selected component.
|
|
* `Owl Vision: Find Component`: Finds the selected component definition.
|
|
* `Owl Vision: Switch`: Finds the corresponding template or component depending on the current file.
|
|
* `Owl Vision: Switch (Besides)`: Finds the corresponding template or component depending on the current file and opens it besides.
|
|
* `Owl Vision: Switch (Below)`: Finds the corresponding template or component depending on the current file and opens it below.
|
|
|
|
## Settings
|
|
|
|
* `owl-vision.include`: Glob filter for files to include while searching.
|
|
* `owl-vision.exclude`: Glob filter for files to exclude while searching.
|
|
|
|
## Troubleshooting
|
|
|
|
### *The extension cannot find my templates/components*
|
|
|
|
The include and exclude settings have default values that may not work with your project structure, try adapting them.
|