Skip to content
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

Add README #16

Merged
merged 1 commit into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.