diff --git a/src/main/java/com/obiscr/chatgpt/core/loader/OfficialLoader.java b/src/main/java/com/obiscr/chatgpt/core/loader/OfficialLoader.java deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/java/com/obiscr/chatgpt/settings/CustomActionsPanel.java b/src/main/java/com/obiscr/chatgpt/settings/CustomActionsPanel.java index b568693..455d592 100644 --- a/src/main/java/com/obiscr/chatgpt/settings/CustomActionsPanel.java +++ b/src/main/java/com/obiscr/chatgpt/settings/CustomActionsPanel.java @@ -65,7 +65,7 @@ public void dispose() { @Override public String getDisplayName() { - return "Custom Actions"; + return "Custom Prompt"; } @Override @@ -161,7 +161,7 @@ public void reset() { private void createUIComponents() { customActionsTitledBorderBox = new JPanel(new BorderLayout()); - TitledSeparator tsUrl = new TitledSeparator("Custom Actions Settings"); + TitledSeparator tsUrl = new TitledSeparator("Custom Prompt Settings"); customActionsTitledBorderBox.add(tsUrl,BorderLayout.CENTER); myMainPanel = new JPanel(new BorderLayout()); diff --git a/src/main/java/com/obiscr/chatgpt/ui/action/editor/AddCustomAction.java b/src/main/java/com/obiscr/chatgpt/ui/action/editor/AddCustomAction.java index 716fd1d..ffbd17d 100644 --- a/src/main/java/com/obiscr/chatgpt/ui/action/editor/AddCustomAction.java +++ b/src/main/java/com/obiscr/chatgpt/ui/action/editor/AddCustomAction.java @@ -43,7 +43,7 @@ public class AddCustomAction extends AnAction { private final Runnable runnable; public AddCustomAction(Runnable runnable) { - super(() -> "Add Custom Action", AllIcons.ToolbarDecorator.AddLink); + super(() -> "Add Custom Prompt", AllIcons.Actions.AddList); this.runnable = runnable; } @Override @@ -72,7 +72,7 @@ static class CustomActionDialog extends DialogWrapper { public CustomActionDialog(@Nullable Project project, Runnable runnable) { super(project); this.project = project; - setTitle("New Custom Action"); + setTitle("New Custom Prompt"); setResizable(false); init(); setOKActionEnabled(true); @@ -146,6 +146,9 @@ private JPanel createItemPanel() { JPanel namePanel = new JPanel(new BorderLayout()); JBLabel promptNameLabel = new JBLabel("Prompt name: "); + promptNameLabel.setIcon(AllIcons.General.ContextHelp); + promptNameLabel.setHorizontalTextPosition(SwingConstants.LEFT); + promptNameLabel.setToolTipText("The name displayed in the menu, and it should be as short as possible."); promptNameLabel.setBorder(JBUI.Borders.emptyBottom(5)); namePanel.add(promptNameLabel, BorderLayout.NORTH); nameField.getEmptyText().setText("Type prompt name here, if empty, the prompt value will be used"); @@ -153,9 +156,12 @@ private JPanel createItemPanel() { JPanel valuePanel = new JPanel(new BorderLayout()); JBLabel promptValueLabel = new JBLabel("Prompt value: "); + promptValueLabel.setIcon(AllIcons.General.ContextHelp); + promptValueLabel.setHorizontalTextPosition(SwingConstants.LEFT); + promptValueLabel.setToolTipText("When asking a question, the prompt content sent to AI."); promptValueLabel.setBorder(JBUI.Borders.emptyBottom(5)); valuePanel.add(promptValueLabel,BorderLayout.NORTH); - valueField.getEmptyText().setText("Type new custom action here"); + valueField.getEmptyText().setText("Type new custom prompt here"); valueField.setFont(nameField.getFont()); valuePanel.add(valueField,BorderLayout.CENTER); diff --git a/src/main/java/com/obiscr/chatgpt/ui/action/editor/CustomAction.java b/src/main/java/com/obiscr/chatgpt/ui/action/editor/CustomAction.java index 4361af7..0b40b76 100644 --- a/src/main/java/com/obiscr/chatgpt/ui/action/editor/CustomAction.java +++ b/src/main/java/com/obiscr/chatgpt/ui/action/editor/CustomAction.java @@ -32,7 +32,7 @@ public void actionPerformed(@NotNull AnActionEvent e) { doActionPerformed(e); }; - ListPopup actionGroupPopup = JBPopupFactory.getInstance().createActionGroupPopup("Custom Action Popups", + ListPopup actionGroupPopup = JBPopupFactory.getInstance().createActionGroupPopup("Custom Prompt Popups", new CustomPrefixActionGroup(runnable), e.getDataContext(), true, null, Integer.MAX_VALUE); actionGroupPopup.showInBestPositionFor(e.getData(CommonDataKeys.EDITOR)); } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 2dfd072..ae7c8bd 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -26,7 +26,7 @@ displayName="GPT 3.5 Turbo"/> + displayName="Custom Prompt"/> diff --git a/src/main/resources/messages/ChatGPTBundle.properties b/src/main/resources/messages/ChatGPTBundle.properties index e5632c4..a083b14 100644 --- a/src/main/resources/messages/ChatGPTBundle.properties +++ b/src/main/resources/messages/ChatGPTBundle.properties @@ -11,7 +11,7 @@ action.code.optimize.menu=Optimize action.code.test.menu=Add Test Case action.code.wrong.menu=Find Bug action.code.explain.menu=Explain -action.code.custom.action=Custom Actions +action.code.custom.action=Custom Prompt toolwindows.content.search=Search toolwindows.content.online=Online ChatGPT