Skip to content

Commit

Permalink
Merge pull request #16 from Antimonit/readme
Browse files Browse the repository at this point in the history
Add README
  • Loading branch information
Antimonit authored Aug 26, 2022
2 parents 7b38539 + e1ce0ee commit a01e5b0
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Lowlighting
[![Jetbrains Plugin](https://img.shields.io/jetbrains/plugin/v/15206-lowlighting.svg)](https://plugins.jetbrains.com/plugin/15206-lowlighting)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/15206-lowlighting.svg)](https://plugins.jetbrains.com/plugin/15206-lowlighting)
[![Rating](https://img.shields.io/jetbrains/plugin/r/rating/15206-lowlighting.svg)](https://plugins.jetbrains.com/plugin/15206-lowlighting)

A plugin for IntelliJ IDEA and Android Studio.

Lowlights all calls to functions annotated with a custom annotation and allows
folding of all such calls at once.

<img src="images/lowlighting.png" />

## Usage

1) Declare an annotation. Can be declared either in Java or Kotlin.
```kotlin
package com.playground.analytics

@Retention(value = AnnotationRetention.SOURCE)
annotation class Lowlight
```

2) Create a `.lowlighting` file in the root directory and add the fully qualified name of the annotation.
```text
com.playground.analytics.Lowlight
```

3) Annotate a function with the annotation.
```kotlin
@Lowlight
fun logEvent(
firebaseEventName: String? = null,
firebaseParameterName: String? = null,
firebaseParameterValue: String? = null,
firebaseParameterMap: Map<String, String?>? = null,
)
```

4) All invocations of the annotated function will be lowlighted.

## Installation

1) Access the Plugins page in IDE settings
* On Windows:
- `File` >
`Settings` (<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>S</kbd>) >
`Plugins`
* On MacOs:
- `Preferences` (<kbd></kbd> <kbd>,</kbd>) >
`Plugins`

2) Install plugin
- Conveniently from within IDE:
- `Plugins` >
`Marketplace` >
`Search for "Lowlighting"` >
`Install`
- Or download the [latest release](https://plugins.jetbrains.com/plugin/15206-lowlighting) and install it manually using:
- `Plugins` >
`⚙️` >
`Install plugin from disk...`


## License
[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)
Binary file added images/lowlighting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a01e5b0

Please sign in to comment.