-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New search function;Fix Structure (Jump function is not available);Fi…
- Loading branch information
Showing
13 changed files
with
265 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
plugin_version = 1.9 | ||
plugin_version = 1.10 | ||
intellij_version = 2021.1 | ||
intellij_plugins = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/shuzijun/markdown/editor/SearchAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.shuzijun.markdown.editor; | ||
|
||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.fileEditor.FileEditorManager; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* @author shuzijun | ||
*/ | ||
public class SearchAction extends AnAction { | ||
@Override | ||
public void actionPerformed(@NotNull AnActionEvent e) { | ||
try { | ||
MarkdownPreviewFileEditor fileEditor = (MarkdownPreviewFileEditor) FileEditorManager.getInstance(e.getProject()).getSelectedEditor(); | ||
fileEditor.visibleToolbarPanel(true); | ||
}catch (Exception ignore){ | ||
|
||
} | ||
|
||
|
||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/shuzijun/markdown/editor/SearchVisibleAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.shuzijun.markdown.editor; | ||
|
||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.fileEditor.FileEditorManager; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* @author shuzijun | ||
*/ | ||
public class SearchVisibleAction extends AnAction { | ||
@Override | ||
public void actionPerformed(@NotNull AnActionEvent e) { | ||
try { | ||
MarkdownPreviewFileEditor fileEditor = (MarkdownPreviewFileEditor) FileEditorManager.getInstance(e.getProject()).getSelectedEditor(); | ||
fileEditor.visibleToolbarPanel(false); | ||
}catch (Exception ignore){ | ||
|
||
} | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.