feat(editor): add Open file button to canvas tab bar
In canvas panel mode the '+' tab button was hardcoded to create a new Markdown file. The 'Open' option only appeared in the empty-state screen and in the modal-mode header dropdown (via installHeaderNewMenu) which is not mounted when the editor runs as a canvas surface. Adds a folder_open icon button immediately before the '+' button in the tab bar. It calls the existing runNewMenuAction('open') -> openFileBrowser() pipeline so no logic changes are needed. Users can now open an existing file at any time without first closing all tabs.
Agent Zero committed
Jun 17, 2026 at 07:42 UTC
b6097bbae6bc72981ab40b1126ee79e50e039eb4
1 file changed
+10
plugins/_editor/webui/editor-panel.html
+10
@@ -38,6 +38,16 @@
38
</button>
39
</div>
40
</template>
41
+ <button
42
+ type="button"
43
+ class="editor-new-tab"
44
+ title="Open file"
45
+ aria-label="Open file"
46
+ :disabled="$store.editor.loading || $store.editor.saving"
47
+ @click="$store.editor.runNewMenuAction('open')"
48
+ >
49
+ <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
50
+ </button>
51
<button
52
type="button"
53
class="editor-new-tab"