Skip to content

Commit 86574b3

Browse files
authored
Merge pull request #67 from tintinweb/feat/titleMenu
add title context menu to open .dot editor windows
2 parents 8ceecd5 + 6b23e6f commit 86574b3

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 0.1.2
4+
- new: active editor window: context menu -> Preview Graphviz / DOT (beside) - #67
5+
6+
<img width="517" alt="image" src="https://user-images.githubusercontent.com/2865694/154029863-7d7dd582-2b9a-480c-b0de-bcccb9136ae4.png">
7+
8+
- new: button for editor title - #67
9+
10+
<img width="496" alt="image" src="https://user-images.githubusercontent.com/27259/154139064-d1966c0b-afb5-4f71-beb1-1792ed3b6e8b.png">
11+
12+
313
## 0.1.1
414
- new: the extension now bundles dot language support, syntax highlighting, snippets from [vscode-graphviz](https://github.com/joaompinto/vscode-graphviz/) with permission from the author [@joaompinto](https://github.com/joaompinto) - #62
515
- new: completion provider - #62

package.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,30 @@
6262
"commands": [
6363
{
6464
"command": "graphviz-interactive-preview.preview.beside",
65-
"title": "preview (beside)",
66-
"category": "Graphviz Interactive"
65+
"title": "Preview Graphviz / Dot (beside)",
66+
"category": "Graphviz Interactive",
67+
"icon": {
68+
"dark": "images/icon.png",
69+
"light": "images/icon.png"
70+
}
6771
}
6872
],
73+
"menus": {
74+
"editor/title/context": [
75+
{
76+
"command": "graphviz-interactive-preview.preview.beside",
77+
"group": "graphviz",
78+
"when": "resourceLangId == dot"
79+
}
80+
],
81+
"editor/title": [
82+
{
83+
"command": "graphviz-interactive-preview.preview.beside",
84+
"group": "navigation@-99",
85+
"when": "resourceLangId == dot"
86+
}
87+
]
88+
},
6989
"configuration": {
7090
"title": "Graphviz Interactive Preview",
7191
"properties": {

0 commit comments

Comments
 (0)