Skip to content

Commit

Permalink
🎨 快捷键添加 langText
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed May 8, 2024
1 parent b505f53 commit 2ca92aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [2024-05-08] v1.6.2: 快捷键

- 🎨 设置快捷键的 langText


## [2024-05-05] v1.6.1: 优化了为过去日记补充文档属性对话框的界面和交互

- ✨ feat: 允许用户手动设置最开始的日期 [#182](https://github.com/frostime/siyuan-dailynote-today/issues/182)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siyuan-dailynote-today",
"version": "1.6.1",
"version": "1.6.2",
"description": "",
"main": ".src/index.js",
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"en_US": "Daily Note Today"
},
"url": "https://github.com/frostime/siyuan-dailynote-today",
"version": "1.6.1",
"version": "1.6.2",
"minAppVersion": "3.0.0",
"description": {
"zh_CN": "自动创建日记 + 快速打开日记 + 日程 TODO 管理 + 移动块功能",
Expand Down
15 changes: 8 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import notebooks from './global-notebooks';

import { eventBus } from './event-bus';

import { changelog } from 'sy-plugin-changelog';
// import { changelog } from 'sy-plugin-changelog';

import "./index.scss";

Expand Down Expand Up @@ -71,17 +71,18 @@ export default class DailyNoteTodayPlugin extends Plugin {
let end = performance.now();
console.debug(`启动耗时: ${end - start} ms`);

let ans = await changelog(this, 'i18n/CHANGELOG.md');
if (ans?.Dialog) {
let dialog = ans.Dialog;
dialog.setSize({ width: '50rem', height: '35rem' });
dialog.setFont('1.1rem');
}
// let ans = await changelog(this, 'i18n/CHANGELOG.md');
// if (ans?.Dialog) {
// let dialog = ans.Dialog;
// dialog.setSize({ width: '50rem', height: '35rem' });
// dialog.setFont('1.1rem');
// }
}

private initPluginUI() {
this.addCommand({
langKey: 'reserve',
langText: `${this.i18n.ReserveMenu.name}/${this.i18n.DeReserveMenu.name}`,
hotkey: '⌥⇧R',
editorCallback: async () => {
let block: HTMLElement = getFocusedBlock();
Expand Down

0 comments on commit 2ca92aa

Please sign in to comment.