From 16ee529be06429129c6aa43b0fb9b3e9af103a67 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 10 Dec 2019 21:32:56 +0100 Subject: Add dot.case conversion --- src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java | 10 ++++++++++ src/main/resources/META-INF/plugin.xml | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java (limited to 'src') diff --git a/src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java b/src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java new file mode 100644 index 0000000..e49c42b --- /dev/null +++ b/src/main/java/me/laria/code/idea_caseconv/DotCaseAction.java @@ -0,0 +1,10 @@ +package me.laria.code.idea_caseconv; + +import java.util.Optional; + +public class DotCaseAction extends SelectionReplacerAction { + @Override + protected String replace(String s) { + return WordSplitConverter.convert(s, ".", (i, part) -> Optional.of(part.toLowerCase())); + } +} diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 9ab02a7..9f60c29 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -1,7 +1,7 @@ me.laria.code.idea_caseconv Case conversion - 0.5.1 + 0.5.2 Laria Chabowski @@ -17,11 +17,11 @@
  • lower case
  • fLIP cASE
  • Title Case
  • +
  • dot.case
  • ]]>
    - - +

    Version 0.5.2: Add Convert case: dot.case action

    ]]>
    @@ -76,6 +76,10 @@ text="Convert Case: Title Case"> + + +
    \ No newline at end of file -- cgit v1.2.3-70-g09d2