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

(#10) Add change tracking in the hooks folder #31

Draft
wants to merge 5 commits into
base: v0.1.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add RxKotlin library
  • Loading branch information
y0ung3r committed Jan 24, 2024
commit 4ff6cbdcd5d45272267e149e068080865abf230b
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

# Changelog

## [Unreleased]
## [0.1.0]
### Added
- Detect changes in the Git hooks folder

### Changed
- Make the main tool window immediately available during project reindexing

## [0.0.2]
### Fixed
Expand All @@ -13,4 +18,5 @@
- Git version handling

## [0.0.1]
### Added
- Initial release
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ repositories {
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
dependencies {
// implementation(libs.annotations)
implementation(libs.rxkotlin)
}

// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[versions]
# libraries
annotations = "24.1.0"
rxkotlin = "3.0.1"

# plugins
kotlin = "1.9.21"
Expand All @@ -11,6 +12,7 @@ kover = "0.7.5"

[libraries]
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" }
rxkotlin = { group = "io.reactivex.rxjava3", name = "rxkotlin", version.ref = "rxkotlin" }

[plugins]
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.intellij.ui.dsl.builder.Align
import com.intellij.ui.dsl.builder.panel
import javax.swing.JComponent

class GitGlobalHooksLocatorWindow(toolWindow: ToolWindow) {
class LocatorWindow(toolWindow: ToolWindow) {
private val hooksFolder: HooksFolder
= HooksFolder(Git.instance)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.github.y0ung3r.gitglobalhookslocator.ui.toolWindow

import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowFactory
import com.intellij.ui.content.ContentFactory

class GitGlobalHooksLocatorWindowFactory : ToolWindowFactory {
class LocatorWindowFactory : ToolWindowFactory, DumbAware {
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
val locatorWindow = GitGlobalHooksLocatorWindow(toolWindow)
val locatorWindow = LocatorWindow(toolWindow)

val content = ContentFactory
.getInstance()
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<resource-bundle>messages.LocatorBundle</resource-bundle>

<extensions defaultExtensionNs="com.intellij">
<toolWindow factoryClass="com.github.y0ung3r.gitglobalhookslocator.ui.toolWindow.GitGlobalHooksLocatorWindowFactory" id="Git Global Hooks Locator" icon="AllIcons.General.Locate" />
<toolWindow factoryClass="com.github.y0ung3r.gitglobalhookslocator.ui.toolWindow.LocatorWindowFactory" id="Git Global Hooks Locator" icon="AllIcons.General.Locate" />
</extensions>
</idea-plugin>