Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Trigger shortcuts only on . or /
Browse files Browse the repository at this point in the history
  • Loading branch information
juli1 committed May 30, 2022
1 parent 8868802 commit c6ca161
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginGroup = codiga.io.plugins
pluginName = codiga-jetbrains-plugin
pluginVersion = 1.6.2
pluginVersion = 1.6.3


pluginSinceBuild = 212.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ protected void addCompletions(@NotNull CompletionParameters parameters,
return;
}

// The keyword has to start with a . or a slash
if(!keyword.get().startsWith(".") && !keyword.get().startsWith("/")) {
return;
}

/**
* If the text entered is only a dot or slash, put no keyword so that we search all shortcuts
*/
Expand Down

0 comments on commit c6ca161

Please sign in to comment.