Skip to content

Commit

Permalink
feat: migrate part of the terminal code into the module and add short…
Browse files Browse the repository at this point in the history
…cut key support
  • Loading branch information
BroKun authored and sunshinesmilelk committed Jan 5, 2024
1 parent 851da11 commit 27fec8b
Show file tree
Hide file tree
Showing 19 changed files with 448 additions and 317 deletions.
2 changes: 1 addition & 1 deletion packages/libro-jupyter/src/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const Location: React.FC = () => (
id="2.0-kernel-启动前"
transform="translate(-738.000000, -80.000000)"
fill="#7B7B7B"
fillRule="nonzero"
// fillRule="nonzero"
>
<g id="编组-24" transform="translate(637.000000, 80.000000)">
<g id="location" transform="translate(99.000000, 0.000000)">
Expand Down
4 changes: 4 additions & 0 deletions packages/libro-lab/src/command/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from './menu-bar-view.js';
export * from './lab-command.js';
export * from './lab-menu-contribution.js';
export * from './module.js';
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export const MenuCommands = {
export const LabCommands = {
About: {
id: 'libro-lab-header-menu-help-about',
label: '关于',
},
OpenTerminal: {
id: 'libro-lab-header-menu-terminal-open',
label: '新建终端',
},
// OpenTerminal: {
// id: 'libro-lab-header-menu-terminal-open',
// label: '新建终端',
// },
Save: {
id: 'libro-lab-header-menu-file-save',
label: '保存',
Expand Down Expand Up @@ -135,4 +135,8 @@ export const MenuCommands = {
id: 'libro-lab-header-menu-run-cell-and-select-next',
label: `执行并选中下一个单元格`,
},
ToggleBottom: {
id: 'libro-lab-toggle-bottom',
label: `切换底部面板`,
},
};
Loading

0 comments on commit 27fec8b

Please sign in to comment.