Skip to content

Commit 5eb60fd

Browse files
committed
Fix default shortcuts being added for already customized shortcuts.
1 parent 590f327 commit 5eb60fd

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## [Unreleased]
4+
5+
- Fix default shortcuts being added for already customized shortcuts.
46

57
## 2.6.2
68

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fun properties(key: String) = project.findProperty(key).toString()
55
plugins {
66
id("org.jetbrains.kotlin.jvm") version "1.9.0"
77
id("dev.clojurephant.clojure") version "0.7.0"
8-
id("org.jetbrains.intellij") version "1.15.0"
8+
id("org.jetbrains.intellij") version "1.17.4"
99
id("org.jetbrains.changelog") version "1.3.1"
1010
id("org.jetbrains.grammarkit") version "2021.2.2"
1111
}
@@ -24,7 +24,7 @@ repositories {
2424

2525
dependencies {
2626
implementation ("org.clojure:clojure:1.11.1")
27-
implementation ("com.github.ericdallo:clj4intellij:0.5.2")
27+
implementation ("com.github.ericdallo:clj4intellij:0.5.3")
2828
implementation ("seesaw:seesaw:1.5.0")
2929
implementation ("camel-snake-kebab:camel-snake-kebab:0.4.3")
3030
implementation ("babashka:process:0.5.18")
@@ -138,7 +138,7 @@ tasks {
138138
// pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
139139
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
140140
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
141-
channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first()))
141+
channels.set(listOf("default"))
142142
}
143143

144144
buildSearchableOptions {

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:mvn/repos {"intellij-1" {:url "https://cache-redirector.jetbrains.com/intellij-dependencies"}
33
"intellij-2" {:url "https://www.jetbrains.com/intellij-repository/releases"}}
44
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
5-
com.github.ericdallo/clj4intellij {:mvn/version "0.5.2"}
5+
com.github.ericdallo/clj4intellij {:mvn/version "0.5.3"}
66
seesaw/seesaw {:mvn/version "1.5.0"}
77
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}
88
com.github.clojure-lsp/clojure-lsp {:mvn/version "2024.03.01-11.37.51"}

src/main/clojure/com/github/clojure_lsp/intellij/extension/register_actions_startup.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
{:name "thread-last" :text "Thread last expression" :description "Thread last expression"}
5757
{:name "unwind-all" :text "Unwind whole thread" :description "Unwind whole thread"}
5858
{:name "unwind-thread" :text "Unwind thread once" :description "Unwind thread once"}
59-
{:name "forward-slurp" :text "Slurp forward" :description "Slurp forward" :keyboard-shortcut {:first "alt CLOSE_BRACKET" :replace-all true}}
60-
{:name "forward-barf" :text "Barf forward" :description "Barf forward" :keyboard-shortcut {:first "alt OPEN_BRACKET" :replace-all true}}
61-
{:name "backward-slurp" :text "Slurp backward" :description "Slurp backward" :keyboard-shortcut {:first "alt shift CLOSE_BRACKET" :replace-all true}}
62-
{:name "backward-barf" :text "Barf backward" :description "Barf backward" :keyboard-shortcut {:first "alt shift OPEN_BRACKET" :replace-all true}}
63-
{:name "raise-sexp" :text "Raise sexpr" :description "Raise current sexpr" :keyboard-shortcut {:first "alt R" :replace-all true}}
64-
{:name "kill-sexp" :text "Kill sexpr" :description "Kill current sexpr" :keyboard-shortcut {:first "alt K" :replace-all true}}])
59+
{:name "forward-slurp" :text "Slurp forward" :description "Slurp forward (Paredit)" :keyboard-shortcut {:first "alt CLOSE_BRACKET" :replace-all true}}
60+
{:name "forward-barf" :text "Barf forward" :description "Barf forward (Paredit)" :keyboard-shortcut {:first "alt OPEN_BRACKET" :replace-all true}}
61+
{:name "backward-slurp" :text "Slurp backward" :description "Slurp backward (Paredit)" :keyboard-shortcut {:first "alt shift CLOSE_BRACKET" :replace-all true}}
62+
{:name "backward-barf" :text "Barf backward" :description "Barf backward (Paredit)" :keyboard-shortcut {:first "alt shift OPEN_BRACKET" :replace-all true}}
63+
{:name "raise-sexp" :text "Raise sexpr" :description "Raise current sexpr (Paredit)" :keyboard-shortcut {:first "alt R" :replace-all true}}
64+
{:name "kill-sexp" :text "Kill sexpr" :description "Kill current sexpr (Paredit)" :keyboard-shortcut {:first "alt K" :replace-all true}}])
6565

6666
(defn -runActivity [_this ^Project _project]
6767
(action/register-action! :id "ClojureLSP.FindReferences"

0 commit comments

Comments
 (0)