Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature editor title menu #1366

Merged
merged 3 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"command": "markdown.extension.editing.toggleCodeSpan",
"enablement": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"title": "%command.editing.toggleCodeSpan.title%",
"icon":"$(code)",
"category": "Markdown All in One"
},
{
Expand All @@ -130,13 +131,42 @@
"command": "markdown.extension.editing.toggleList",
"enablement": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"title": "%command.editing.toggleList.title%",
"icon":"$(list-unordered)",
"category": "Markdown All in One"
},
{
"command": "markdown.extension.editing.toggleCodeBlock",
"enablement": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"title": "%command.editing.toggleCodeBlock.title%",
"category": "Markdown All in One"
},
{
"command": "markdown.extension.editing.toggleBold",
"enablement": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"title": "%command.editing.toggleBold%",
"icon":"$(bold)",
"category": "Markdown All in One"
},
{
"command": "markdown.extension.editing.toggleItalic",
"enablement": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"title": "%command.editing.toggleItalic%",
"icon":"$(italic)",
"category": "Markdown All in One"
},
{
"command": "markdown.extension.editing.toggleStrikethrough",
"enablement": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"title": "%command.editing.toggleStrikethrough%",
"icon":"$(question)",
yzhang-gh marked this conversation as resolved.
Show resolved Hide resolved
"category": "Markdown All in One"
},
{
"command": "markdown.extension.checkTaskList",
"enablement": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"title": "%command.checkTaskList%",
"icon":"$(tasklist)",
"category": "Markdown All in One"
}
],
"menus": {
Expand All @@ -151,6 +181,38 @@
"when": "editorLangId =~ /^markdown$|^rmd$|^quarto$/ && workspaceFolderCount >= 1",
"group": "markdown.print@2"
}
],
"editor/title": [
{
"when": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"command": "markdown.extension.editing.toggleBold",
"group": "navigation@1_1"
},
{
"when": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"command": "markdown.extension.editing.toggleItalic",
"group": "navigation@1_2"
},
{
"when": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"command": "markdown.extension.editing.toggleStrikethrough",
"group": "navigation@1_3"
},
{
"when": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"command": "markdown.extension.checkTaskList",
"group": "navigation@1_4"
},
{
"when": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"command": "markdown.extension.editing.toggleCodeSpan",
"group": "navigation@1_5"
},
{
"when": "editorLangId =~ /^markdown$|^rmd$|^quarto$/",
"command": "markdown.extension.editing.toggleList",
"group": "navigation@1_6"
}
]
},
"keybindings": [
Expand Down
4 changes: 4 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"command.editing.toggleMathReverse.title": "Toggle math environment (in reverse order)",
"command.editing.toggleList.title": "Toggle list",
"command.editing.toggleCodeBlock.title": "Toggle code block",
"command.editing.toggleBold": "Toggle Bold",
"command.editing.toggleItalic": "Toggle Italic",
"command.editing.toggleStrikethrough": "Toggle Strikethrough",
"command.checkTaskList": "Toggle TaskList",
"config.title": "Markdown All in One",
"config.completion.enabled": "Whether to enable auto-completion.",
"config.completion.respectVscodeSearchExclude": "Whether to exclude files from auto-completion using VS Code's `#search.exclude#` setting. (`node_modules`, `bower_components` and `*.code-search` are **always excluded**, not affected by this option.)",
Expand Down
Loading