Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/typedb-osi/typeql-plugin-jetbrains
TypeQL plugin for JetBrains
https://github.com/typedb-osi/typeql-plugin-jetbrains
Last synced: 3 months ago
JSON representation
TypeQL plugin for JetBrains
- Host: GitHub
- URL: https://github.com/typedb-osi/typeql-plugin-jetbrains
- Owner: typedb-osi
- License: mit
- Created: 2021-05-08T17:10:35.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T17:43:34.000Z (4 months ago)
- Last Synced: 2024-03-16T03:42:55.178Z (4 months ago)
- Language: Kotlin
- Homepage:
- Size: 1.75 MB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Lists
- typedb-awesome - `JetBrains / IntelliJ - TypeQL Plugin`
README
# TypeQL Plugin for JetBrains
Basic support for the [TypeQL language](https://github.com/vaticle/typeql) on JetBrains-based IDEs.
## Installation
This plugin is published on the [JetBrains Plugin Repository](https://plugins.jetbrains.com/plugin/17912-typeql):
Preferences → Plugins → Browse Repositories → Search for "TypeQL"
### From Source
Clone this repository:
```bash
$ git clone https://github.com/typedb-osi/typeql-plugin-jetbrains
$ cd typeql-plugin-jetbrains
```Build the plugin zip file:
```bash
$ ./gradlew buildPlugin
```Install the plugin from `./build/distributions/typeql-plugin-jetbrains-*.zip`:
Preferences → Plugins → Install plugin from disk
## Development
Execute an IntelliJ IDEA instance with the plugin you're developing installed:
```bash
$ ./gradlew runIde
```Run the tests:
```bash
$ ./gradlew test
```## Supported features
- Syntax highlighting and colouring (JetBrains and TypeDB color schemes) based on the official TypeQL grammar.
- Find Usages, Go To Declaration.
- Rename (currently excluding [references to relations in "plays" constraints](https://github.com/typedb-osi/typeql-plugin-jetbrains/issues/15)).
- Code completion.### Temporarily disabled features
- Unused, Invalid and Duplicated items inspections.
## Syntax highlighting and colouring
JetBrains Color Scheme-based syntax highlighting automatically works out of the box. However, it is possible to import TypeDB-specific color schemes used in [TypeDB Studio](https://typedb.com/docs/typedb/connecting/studio) by downloading the needed color scheme files from the corresponding [resource directory](https://github.com/typedb-osi/typeql-plugin-jetbrains/tree/master/src/main/resources) and importing it in the IDE via `Preferences → Editor → Color Scheme → Import Scheme`.
## Information
For more information about how this plugin works and how to add additional functionality please see:
- https://github.com/JetBrains/intellij-platform-plugin-template
- https://www.jetbrains.org/intellij/sdk/docs/basics.html
- https://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support_tutorial.html